Passing additional variables to the preloader?

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

Passing additional variables to the preloader?

Beitrag von wardenik »

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: 3327
Registriert: 04 Jun 2008, 14:27

Re: Passing additional variables to the preloader?

Beitrag von d.oertel »

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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


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

Re: Passing additional variables to the preloader?

Beitrag von wardenik »

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