Snapin will not finish
-
are you running the msi installer with the msiexec -i command from within your snapin page?
-
No, like I said I am running it using the ShellExecute command within AutoIT. I know that I could do a default silent install using msiexec from within the snapin page, but that is not the point. What if there are non-command-line (non-switched) things that I want to change about the install?
I guess what it probably boils down to is that the snapins are being run as the System user because the FOG service is installed and run as System. If I try to change the user that the service is run as, the service no longer connects to the FOG server. For the ShellExecute command in AutoIT to work properly I’m taking a wild guess by saying it might need a user profile loaded in order to function correctly?
Just trying to understand why it would work logged in but not when deployed as a snapin. I’ve run into similar problems with non-MSI installers where they never finish unless it is run manually while logged in.Sorry if this is in the wrong section, please move it if there is a more appropriate place.
-
Hi bigjohn322,
your problem maybe due to the fact the autoit script is exiting before the msi completes but because the autoit script is “complete” by running the msi close and send the exit code to FOG. try ShellExecuteWait, this will wait for the msi to complete and then close the autoit script. if not try to run the msi using runwait.
Hope this help
-
Thanks for the suggestion Lee, but as the script needs to interact with the installer, the wait functions can’t be used. The script makes use of the WinWaitActive commands to wait for the next window with installation choices then enters the appropriate choices. If I just ran the MSI with ShellExecuteWait or RunWait, it would not change any of the installation options.
-
This post is deleted! -
oh, sorry didn’t realise you were controlling the script with WinWaitActive… do you see the install start at all? where is the msi located?
-
Yes, the install starts. The only way to “see” it is by logging on to the machine and checking the running processes and looking for msiexec.
The MSI is copied locally using FileInstall() (it is bundled as a part of the compiled executable). So it would be run from wherever the FOG service places the snap-in when it is downloaded.
-
This will be the problem then mate, I’m pretty sure WinWaitActive only works when there is an active session as it’s interactive.
-
I have other snap-ins that make use of WinWaitActive that run without issues, so I’m not sure that is the problem.
-
I’m having a similar problem, snapins that deploy and finish fine on windows XP are, well some install but then the task just stays there, and others don’t even deploy. But if I run the SFX manually it works fine. Hmm…