[user error; not a bug] Patching ini file with local running winst

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

[user error; not a bug] Patching ini file with local running winst

Beitrag von SisterOfMercy »

I'm building a new package, and because I want to run a preliminary test I'm installing it with a local opsi-winst script.

Code: Alles auswählen

DefVar $InstallDir32$
Set $InstallDir32$      = "%ProgramFiles32Dir%\Mitsubishi ASA"
Patches_europe "$InstallDir32$\ASAMAIN.ini"
One would expect a file in C:\Program Files (x86)\Mitsubishi ASA\, but no:

Code: Alles auswählen

Patching: c:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\$InstallDir32$\ASAMAIN.ini
Somehow I do not think this is supposed to happen.
Zuletzt geändert von SisterOfMercy am 12 Feb 2016, 00:01, insgesamt 1-mal geändert.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Patching ini file with local running winst

Beitrag von d.oertel »

Hi,

you are in a primary section and $installdir32 is a variable and not constant.
You may use variables as placeholders (like constants) only in secondary sections.
see:
http://download.uib.de/opsi_stable/doc/ ... n-sections
Try:

Code: Alles auswählen

setloglevel=7
DefVar $InstallDir32$
Set $InstallDir32$      = "%ProgramFiles32Dir%\Mitsubishi ASA"
Patches_europe $InstallDir32$+"\ASAMAIN.ini"
cheers
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: Patching ini file with local running winst

Beitrag von SisterOfMercy »

d.oertel hat geschrieben:

Code: Alles auswählen

Patches_europe $InstallDir32$+"\ASAMAIN.ini"
:cry: :oops: Argh, what a stupid mistake :-(
Maybe I shouldn't mess with opsiscripts when it's obviously too late in the evening :)
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten