Silent install (opsi-winst script)

Sznefru
Beiträge: 35
Registriert: 11 Jan 2012, 11:59

Silent install (opsi-winst script)

Beitrag von Sznefru »

Hi,

I have a simple opsi-winst script, that only copy some files from the server to clients.
When the users power on their computers the opsi window appears and the script runs (if necessary).
But sometimes it will be very useful, that i can run this script in silent mode (the users won't see anything, because i don't like to disturb them).

Is it possible?


Thank you!

Best regards: S.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: Silent install (opsi-winst script)

Beitrag von d.oertel »

Hi,

in the new opsi-winst 4.11.3.2 (in testing right now) you will find the possibility to minimize the opsi-winst window by script:
http://download.uib.de/opsi4.0/testing/ ... tes-en.pdf

An other way may be to assign an other desktop than 'current' for example to the 'on_demand' event.
Have a look to the opsi-manual: opsi-client-agent / configuration.

But I assume the first approach is that what you are looking for.

regards

d.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


Sznefru
Beiträge: 35
Registriert: 11 Jan 2012, 11:59

Re: Silent install (opsi-winst script)

Beitrag von Sznefru »

Hi,

I have installed the new opsi-winst 4.11.3.3. I've red all of the opsi manuals (opsi Getting Started Installation and first steps, opsi Manual , opsi-winst Manual ), but i have no idea how can i use the silent install.
So, i have this short script:

[Initial]

ScriptErrorMessages=on

[Actions]
DefVar $ProductName$
DefVar $InterestingFile$
DefVar $ExitCode$

Set $ProductName$ = "KEB.INI"
set $InterestingFile$ = "%ScriptPath%\keb.ini"

Message "Copying KEB.INI..."
ShowBitmap "%scriptpath%\"+$ProductName$+".bmp" $ProductName$
SetLogLevel=9

if not (FileExists($InterestingFile$))
comment "A fajl nem letezik
isFatalError
Sub_check_exitcode

else
comment "A fajl(ok) masolasa..."
Files_copy


endif

Sub_check_exitcode




[Files_copy]
copy -se "%ScriptPath%\keb.ini" "c:\windows"

[Sub_check_exitcode]
set $ExitCode$ = getLastExitCode

if ($ExitCode$ = "0")
comment "OKE: setup program gives exitcode zero"
else
comment "NEM OKE: Setup program gives a exitcode unequal zero: " + $ExitCode$
isFatalError
endif



and i would like to run this script on every machines, but without the appearing opsi-winst window.

Thank yo!

Regards:

S.
Benutzeravatar
tobias
Beiträge: 1294
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Silent install (opsi-winst script)

Beitrag von tobias »

there is no way to run only this script in silent mode. the only way is to minimize the WINST windows with this command: IconizeWinst

another way is change the WINST mode to Silent permanently via hostparamter. But then every product action is silent.
Sznefru
Beiträge: 35
Registriert: 11 Jan 2012, 11:59

Re: Silent install (opsi-winst script)

Beitrag von Sznefru »

Ok, it is not problem, that the every product will be silent.
But i don't know where can I set it (to minimize the WINST with the IconizeWinst command), what is the method?
Benutzeravatar
tobias
Beiträge: 1294
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Silent install (opsi-winst script)

Beitrag von tobias »

Sznefru hat geschrieben:Ok, it is not problem, that the every product will be silent.
But i don't know where can I set it (to minimize the WINST with the IconizeWinst command), what is the method?
Hi,

for minimize the WINST Windows you must set the IconizeWinst command in the top of your script.

For Set the WINST permanently to the silent mode you must set a new HostParameter via Configed or Opsi-Admin.

Code: Alles auswählen

%action_processor.command% /sessionid %service_session% /silent
this is the actionprocessor command in the.

If you want to set only on_demand actions to silent you must set this:

Code: Alles auswählen

opsiclientd.on_demand.action_processor_command  %action_processor.command% /sessionid %service_session% /silent
If you want to set GUI_Startup setup actions to silent you must set this:

Code: Alles auswählen

opsiclientd.gui_startup.action_processor_command %action_processor.command% /sessionid %service_session% /silent
Zuletzt geändert von tobias am 23 Nov 2012, 13:18, insgesamt 1-mal geändert.
Sznefru
Beiträge: 35
Registriert: 11 Jan 2012, 11:59

Re: Silent install (opsi-winst script)

Beitrag von Sznefru »

Thank you again!

So all that i have to do:
1. Insert IconizeWinst to the script at the Initial section
2. Add to the host parameters (from the web broser) one of the code, that you post it.

Because i try it. But the window (opsi-winst get list of products) appears, and just after go to the taskbar.
Is there any way, that fully hide from users the whole process?
Benutzeravatar
tobias
Beiträge: 1294
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Silent install (opsi-winst script)

Beitrag von tobias »

Sznefru hat geschrieben:Thank you again!

So all that i have to do:
1. Insert IconizeWinst to the script at the Initial section
2. Add to the host parameters (from the web broser) one of the code, that you post it.

Because i try it. But the window (opsi-winst get list of products) appears, and just after go to the taskbar.
Is there any way, that fully hide from users the whole process?
You have to go only one of these ways. The first one only minimize the WINST window after loading the script.
The second one runs winst completely in silent mode.
If you changed it via hostparameter the opsi-client-agent ask the opsi-server for the new configuration file. After a reboot the new settings will work.
Sznefru
Beiträge: 35
Registriert: 11 Jan 2012, 11:59

Re: Silent install (opsi-winst script)

Beitrag von Sznefru »

I think the second one that i need.
But it is possible, i didn't set it well.

I go to the configed -> host parameters. Add standard configuration entry. Type a name(name of new configuration entry) e.g: Silent_install . Then I give a property value: opsiclientd.gui_startup.action_processor_command.%action_processor.command% /sessionid %service_session% /silent
and then i save it.
Is this correct?
Benutzeravatar
tobias
Beiträge: 1294
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Silent install (opsi-winst script)

Beitrag von tobias »

Hi,

no thats wrong. you must name it like that:
opsiclientd.gui_startup.action_processor_command
and the property of this parameter you must set this:
%action_processor.command% /sessionid %service_session% /silent
Antworten