I have a .msi installer that installs of a component of an application that my company develops. I am trying to automate the installation process.
I have found that the msi installs fine when I run it from the GUI, when I run the silent install commands from PowerShell, schedule the task to run as a user who is logged in but fails when I try to schedule it to run as a user that never logged in. In this situation I get the following error message:
*MSI (s) (B8:C8) [16:58:06:301]: Closing MSIHANDLE (498) of type 790542 for thread 3784
MSI (s) (B8:C8) [16:58:06:316]: Deferring clean up of packages/files, if any exist
MSI (s) (B8:C8) [16:58:06:316]: MainEngineThread is returning 1603
MSI (s) (B8:BC) [16:58:06:316]: RESTART MANAGER: Session closed.
MSI (s) (B8:BC) [16:58:06:316]: No System Restore sequence number for this installation.
=== Logging stopped: 7/5/2020 16:58:06 ===
MSI (s) (B8:BC) [16:58:06:316]: User policy value 'DisableRollback' is 0
MSI (s) (B8:BC) [16:58:06:316]: Machine policy value 'DisableRollback' is 0
MSI (s) (B8:BC) [16:58:06:316]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (B8:BC) [16:58:06:316]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (B8:BC) [16:58:06:316]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (B8:BC) [16:58:06:316]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (B8:BC) [16:58:06:316]: Destroying RemoteAPI object.
MSI (s) (B8:78) [16:58:06:316]: Custom Action Manager thread ending.
MSI (c) (A4:E8) [16:58:06:332]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (A4:E8) [16:58:06:332]: MainEngineThread is returning 1603
=== Verbose logging stopped: 7/5/2020 16:58:06 ===*
I need fix this issue because the application will be installed silently on a new server that no one has logged into.
I have scheduled the task to run whether the user is logged in or not and run with the highest privileges. Anyone have any ideas what maybe causing this and how I can get around it?
Thanks