Seite 1 von 1

Opsi winst manual

Verfasst: 25 Jul 2014, 16:10
von duda
...
6.2.4 opsi-winst Path and Directory

%ScriptDrive%: he drive where the just executed opsi-winst script is located (including the colon)."

...
Execept grammar fout he=the, is this really the notation to use for a drive where the script is located?
If I us this notation then happens this:
...
[4] [Jul 25 15:50:58:676] [test-subfunction] Warning: file not found :P::\windowsupdate\install.ins -retrying
...

If I run it as %ScriptDrive% , thus, without colon then is this the result:

...
[6] [Jul 25 15:58:29:481] [test-subfunction] ~~~~~~~ Start Sub ~~~~~~~ sub "P:\windowsupdate\install.ins"
[6] [Jul 25 15:58:29:481] [test-subfunction] Section ending since next line is starting with "["
[6] [Jul 25 15:58:29:481] [test-subfunction]
[6] [Jul 25 15:58:29:481] [test-subfunction] ~~~~~~~ End Sub ~~~~~~~ sub "P:\windowsupdate\install.ins"
...
The subfunction of windowsupdate\install.ins will not run.

I am trying to run just a simple test of executing a subsection, so to be able later to gather all install scripts for a pc installs according to a specific department needs.

...
[Actions]

requiredWinstVersion >= "4.10.8"

sub "%ScriptDrive%\windowsupdate\install.ins"
...

I have no"[" character in the script. Do you have any idea what this can be?

Thanks,

D. Tepsic

Re: Opsi winst manual

Verfasst: 29 Jul 2014, 10:39
von ritsovih
Yes, to your first question.

I'm guessing you probably want %ScriptPath%, because that expands to the path where your script is located (similar to ~%dp0 in batch scripting). But why not post what you want to achieve, your entire script and the layout of your opsi package?


Your layout may look like something like this, for instance:

Code: Alles auswählen

install.ins
    |
    |
     \
      \---Packages
              |
              |--setup.exe
              |--setup.conf

Re: Opsi winst manual

Verfasst: 11 Aug 2014, 13:52
von ueluekmen
Hi Duda,

please post your Script, otherwise we can't see what your problem is.