Hi folks!
Doing some testing if Opsi could work for our company. Everything is set-up and done some initial testing with unattended winxppro installs with drivers and all. Now moving on to software installing.
Found the WinstScripts in the wiki and created the .opsi package for firefox... that did not work. After some more searching found on the forums that it was because the [ProductProperty] sections were missing from the control-file.
There are some more WinstScripts I would like to try, but can't seem to find the appropriate ProductProperties for them. Am i missing some documentation or is there some way to auto-generate them?! Any help appreciated.
Jester.
Product properties for WinstScripts in Opsi wiki
-
- Beiträge: 28
- Registriert: 11 Mai 2009, 10:52
- Wohnort: 47877 Willich
- Kontaktdaten:
Re: Product properties for WinstScripts in Opsi wiki
Hi Jester,
the following answer works on OPSI4.x-servers. I'm not sure if it works for OPSI 3.x-versions also. Anyway, here's my answer: After creating a new Product under OPSI by using "opsi-newprod" there should be a new folder with the name of your product, in your example "firefox" or so.
If you are using this method you will automatically be asked for any properties, you would like to set. But if you prefer to enter them manually afterward, you can also do this. Just edit the "control"-file which you can find in the subfolder "OPSI" of your product-folder.
That's it. There you can edit all the properties you like by hand. Be aware that you have to enter the properties one by one. Meaning: There is not one special [ProductProperty]-Section for all the options. Instead you will find a [ProductProperty]-Section for each of your parameters. An example taken out of a package we are using in order to make some machines join a domain:
Did that help?
Kind regards,
V. Sternemann
the following answer works on OPSI4.x-servers. I'm not sure if it works for OPSI 3.x-versions also. Anyway, here's my answer: After creating a new Product under OPSI by using "opsi-newprod" there should be a new folder with the name of your product, in your example "firefox" or so.
If you are using this method you will automatically be asked for any properties, you would like to set. But if you prefer to enter them manually afterward, you can also do this. Just edit the "control"-file which you can find in the subfolder "OPSI" of your product-folder.
That's it. There you can edit all the properties you like by hand. Be aware that you have to enter the properties one by one. Meaning: There is not one special [ProductProperty]-Section for all the options. Instead you will find a [ProductProperty]-Section for each of your parameters. An example taken out of a package we are using in order to make some machines join a domain:
Code: Alles auswählen
[ProductProperty]
type: unicode
name: domain
description: Domain to join
default: ["DOMAIN"]
[ProductProperty]
type: unicode
name: username
description: User account to use for the domain join
default: ["domjoin"]
[ProductProperty]
type: unicode
name: password
description: Password of the user account
default: ["joinit"]
Kind regards,
V. Sternemann
Re: Product properties for WinstScripts in Opsi wiki
Hi V. Sternemann,
Thanx for your reply. It's more or less what i found as well, but my problem is how do you know what properties to add ?
For example, i'm looking at the Office2007 WinstScript, but where do i find the properties i need to add to the control-file ?!
Regards.
Thanx for your reply. It's more or less what i found as well, but my problem is how do you know what properties to add ?
For example, i'm looking at the Office2007 WinstScript, but where do i find the properties i need to add to the control-file ?!
Regards.
Re: Product properties for WinstScripts in Opsi wiki
Hi,
there are two winst commands to read properties:
inivar() which is the old and deprecated one and
GetProductProperty() which is the new one.
You will find both variants in the scripts.
regards
d.oertel
there are two winst commands to read properties:
inivar() which is the old and deprecated one and
GetProductProperty() which is the new one.
You will find both variants in the scripts.
regards
d.oertel
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Re: Product properties for WinstScripts in Opsi wiki
Hello D. Oertel,
Thank you for your reply, you are interpreting my question to deep/complicated. I can find the scripts for installing Office2007 here in the wiki: http://www.opsi.org/opsi_wiki/Off2007, but where can i find the ProductProperties for Office2007 that i need to add to the control-file ? Are they in the wiki?
I'll "try" in German: Vielen Dank für Ihre Antwort, Sie Interpretieren meiner Frage aber zu tief. Ich kann die Skripte für die Installation von Office2007 hier im Wiki finden: http://www.opsi.org/opsi_wiki/Off2007, aber wo finde ich die ProductProperties für Office2007, den ich in die control-Datei hinfügen soll? Sind sie im Wiki?
Regards.
Thank you for your reply, you are interpreting my question to deep/complicated. I can find the scripts for installing Office2007 here in the wiki: http://www.opsi.org/opsi_wiki/Off2007, but where can i find the ProductProperties for Office2007 that i need to add to the control-file ? Are they in the wiki?
I'll "try" in German: Vielen Dank für Ihre Antwort, Sie Interpretieren meiner Frage aber zu tief. Ich kann die Skripte für die Installation von Office2007 hier im Wiki finden: http://www.opsi.org/opsi_wiki/Off2007, aber wo finde ich die ProductProperties für Office2007, den ich in die control-Datei hinfügen soll? Sind sie im Wiki?
Regards.
Re: Product properties for WinstScripts in Opsi wiki
Hi Jester,
the scripts in the wiki are templates (like some of the opsi-products in http://download.uib.de/opsi3.4/produkte/)
Reading the opsi-winst-manual
http://download.uib.de/opsi4.0/doc/winstdoc-en.pdf
you can see that the script
http://www.opsi.org/opsi_wiki/Off2007
uses the depricated Function inivar() checking a Property Property "access".
So the old template
http://www.opsi.org/opsi_wiki/Off2007
needs in the opsi-control file something like
Regards
Bardo Wolf
the scripts in the wiki are templates (like some of the opsi-products in http://download.uib.de/opsi3.4/produkte/)
Reading the opsi-winst-manual
http://download.uib.de/opsi4.0/doc/winstdoc-en.pdf
you can see that the script
http://www.opsi.org/opsi_wiki/Off2007
uses the depricated Function inivar() checking a Property Property "access".
So the old template
http://www.opsi.org/opsi_wiki/Off2007
needs in the opsi-control file something like
Code: Alles auswählen
...
[ProductProperty]
name: access
description: Der Schalter access=on installiert zusaetzlich Access
values: on, off
default: off
...
Bardo Wolf
Basisworkshop Mainz
08. - 12.12. 24
opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.
http://www.uib.de
Re: Product properties for WinstScripts in Opsi wiki
Hi Wolfbardo.
Okay, so i need to search the scripts for the inivar() or GetProductProperty() functions to find the variables i need to add as product-properties to the control file. But how do you know what the variables are for, and what the allowed/possible values are?! I guess you can find some allowed values in the scripts, but others that do not get evaluated in the scripts...
Is it also possible to register an account with the wiki so any information that can be found scattered over the forums or by searching can be added for others to find ?!
Kind regards.
Okay, so i need to search the scripts for the inivar() or GetProductProperty() functions to find the variables i need to add as product-properties to the control file. But how do you know what the variables are for, and what the allowed/possible values are?! I guess you can find some allowed values in the scripts, but others that do not get evaluated in the scripts...
Is it also possible to register an account with the wiki so any information that can be found scattered over the forums or by searching can be added for others to find ?!
Kind regards.