Passing additional variables to the preloader?

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Passing additional variables to the preloader?

Beitragvon wardenik » 14 Nov 2008, 17:53

Hi,

Is it possible somehow to add some 'pre defined' parameters for an winnt script from OPSI configed?
I.e. I want to add the user to some groups automatically after installation, which can be done via a command line, but obviously the script has to know the username (and it has to be run with administrator privileges or before logging in).

Or do I have to extend the JAVA applet for this functionality?

Benutzeravatar
d.oertel
uib-Team
Beiträge: 3269
Registriert: 04 Jun 2008, 14:27

Re: Passing additional variables to the preloader?

Beitragvon d.oertel » 14 Nov 2008, 18:41

Hi,

you may define product properties wich can be edited client specific via opsi-configed.
Have for a example a look at our javavm product which have properties like java15=on/off.
These properties could also be free difined strings (like the product key in winxppro)
Have look at the opsi-manual Chapter 4.3.2.1 how to define these properties.
Use the opsi-winst command 'inivar' to read theses properties at runtime.

One other possible solution for your problem could be to create a ini-file
with a hash
client name=user name
and fetch the correct user name for the client while runtime with the opsi-winst command
GetvalueFromInifile

Does this help ?

regards
detlef oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: Passing additional variables to the preloader?

Beitragvon wardenik » 18 Nov 2008, 12:26

thanks!
the properties feature was exactly the thing I was looking for :)
great job!