Help with run WInst script

Antworten
Shinigami.Ric
Beiträge: 2
Registriert: 20 Nov 2009, 07:39

Help with run WInst script

Beitrag von Shinigami.Ric »

Hi. maybe my question sounds very native, but: how run WInst script in client machine? In OPSI Manual at 3.5.3 write:

Code: Alles auswählen

method createLocalBootProduct <productId>, <name>, <productVersion>,
<packetVersion>, licenseRequired=0, setupScript="", uninstallScript="",
updateScript="", alwaysScript="", onceScript="", priority=10,
description="", advice="", productClassNames=('localBoot')
Creates a new localBoot product (wInst-Product).
This is right command to create a new package? Is this command right then i enter something like that:

Code: Alles auswählen

opsi-admin method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns.ins, priority=10 description=dns advice=once productClassNames='localBoot'
Result:
Traceback:
line 1447 in '<module>' in file '/usr/bin/opsi-admin'
line 434 in 'exit' in file '/usr/bin/opsi-admin'
==>>> Failed to execute 'method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns_efir.ins priority=10 description=dns advice=once productClassNames=localboot': 'NoneType' object has no attribute 'split'
ERROR: Failed to execute 'method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns_efir.ins priority=10 description=dns advice=once productClassNames=localboot': 'NoneType' object has no attribute 'split'
Please write me a small example for create new opsi package or tell me where i can see it. Thanks.
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: Help with run WInst script

Beitrag von matth46 »

RTFM (SCNR): http://sourceforge.net/projects/opsi/fi ... f/download

Page 95 et sequentes ("6.2.3. Creating an opsi package")

If you prefer to create a new localboot package through opsi-admin method calls, then you should do it right:
method createLocalBootProduct <productId>, <name>, <productVersion>, <packetVersion>, licenseRequired=0, setupScript="", uninstallScript="", updateScript="", alwaysScript="", onceScript="", priority=10, description="", advice="", productClassNames=('localBoot')
Also consider to use those double quotes... ;)


But I think it's much easier to create a new opsi package as mentioned in the manual.
Shinigami.Ric
Beiträge: 2
Registriert: 20 Nov 2009, 07:39

Re: Help with run WInst script

Beitrag von Shinigami.Ric »

Thanks a lot. All works.
Antworten