[WINST] Is there a way from Winst to install a package only at shutdown ?

Antworten
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

[WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von nicolaslebrun »

Hi,

I want a localboot package to be installed only at shutdown...

Is there a way to ask the service if it is running at shutdown ?

Does anybody have an idea on the way to do it ?

Thanks,

Regards,

Nico
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von n.wenselowski »

Hi Nico,

we are planning such a feature for the future.


Kind regards

Niko

Code: Alles auswählen

import OPSI
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von nicolaslebrun »

Thanks, Niko

Any idea to do it now ? ... On Windows, is there a way to know that a shutdown is going ?

Regards

Nico
Lai
Beiträge: 12
Registriert: 20 Sep 2012, 10:36

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von Lai »

Hello
I have a quick and dirty solution for Windows7:

returns errorlevel 3 or 4 depending if opsi is started on shutdown or start

(works because the gpsvc task is marked to stop 3 before the opsi client is started on shutdown)

[DosBatch_Install]
for /F "tokens=1,2,3" %%i IN ('sc query gpsvc') do if "%%i"=="STATE" exit %%k
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von ueluekmen »

Hi,

yes this feature is in pending state for the next release. Please watch the news posts, we plan to release this in a few days.
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von nicolaslebrun »

Thanks Lai for the tip !

And thanks ueluekmen !

I'll wait !

Schöne Ferien !

Nico
nicolaslebrun
Beiträge: 107
Registriert: 18 Apr 2011, 11:43

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von nicolaslebrun »

Hi !
yes this feature is in pending state for the next release. Please watch the news posts, we plan to release this in a few days.
Is there news I missed ?

Greetings,

Nico
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: [WINST] Is there a way from Winst to install a package only at shutdown ?

Beitrag von n.wenselowski »

Hi Nico,

you can do so by using excludes or includes for product groups for the event execution.


Kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten