I am trying to install GFI LanGuard Network Security Scanner via WPI. I had to repackage the installer because I couldn't get it to go silently and didn't want to use autoit. It installs fine, except that it needs a reboot to create a service. I have a .cmd file that accomplishes this via RunOnceEx. See below.
Followup.cmd
cmdow @ /HID @echo off IF EXIST D:\autorun.inf set CDROM=D: IF EXIST E:\autorun.inf set CDROM=E: IF EXIST F:\autorun.inf set CDROM=F: IF EXIST G:\autorun.inf set CDROM=G: IF EXIST H:\autorun.inf set CDROM=H: IF EXIST I:\autorun.inf set CDROM=I: IF EXIST J:\autorun.inf set CDROM=J: SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\001 /V 1 /D "%CDROM%\postinstall\Security\GFI\postinstall.cmd" /f shutdown -r -f -t 0
Postinstall.cmd
cmdow @ /HID @echo off net user LNSS_MONITOR_USR password sc config "GFI LANguard N.S.S. 7.0 Attendant Service" password= password
If I test this install all by itself on a fresh Windows install, it works just fine after reboot. But I am trying to have this happen through WPI and I have it set as a dependancy of the GFI application and have the install order set to 9999 so it the last thing in RunOnceEx. Postinstall.cmd gets added to RunOnceEX but it gets executed before the reboot. I thought that setting the shutdown command to happen immediately would prevent that, but it just doesn't seem to work the way I want it to. Can anyone give me any tips on how I can get this working.
Thanks.
This post has been edited by imthemp3king: 17 March 2006 - 08:07 AM



Help
Back to top









