I am trying to silently uninstall a web server (allowing multiple instances) project silently and am running into an issue.
I store my app pool name and product code in the registry and then in a powershell script search for them and pass them into the uninstaller using msiexec. For example
Code: Select all
msiexec SITE_NAME="sitename", APP_POOL_NAME="apppool1" /x {product code I found in registry} /qn /L*V logname.log
So most of it seems to work but the uninstaller itself actually fails with a strange error.
Code: Select all
MSI (s) (E4:7C) [17:20:38:768]: Note: 1: 1725
MSI (s) (E4:7C) [17:20:38:768]: Product: Test Web Server -- Removal failed.
MSI (s) (E4:7C) [17:20:38:768]: Windows Installer removed the product. Product Name: Test Web Server. Product Version: 19.2.7.0. Product Language: 2057. Manufacturer: manufacturer_name. Removal success or error status: 1603.
MSI (s) (E4:7C) [17:20:38:768]: Attempting to delete file C:\WINDOWS\Installer\1947915c.mst
MSI (s) (E4:7C) [17:20:38:771]: Deferring clean up of packages/files, if any exist
MSI (s) (E4:7C) [17:20:38:771]: Attempting to delete file C:\WINDOWS\Installer\1947915c.mst
MSI (s) (E4:7C) [17:20:38:771]: Unable to delete the file outside of the engine. LastError = 2
MSI (s) (E4:7C) [17:20:38:771]: MainEngineThread is returning 1603
MSI (s) (E4:60) [17:20:38:773]: RESTART MANAGER: Session closed.
MSI (s) (E4:60) [17:20:38:773]: No System Restore sequence number for this installation.
=== Logging stopped: 28/10/2019 17:20:38 ===
MSI (s) (E4:60) [17:20:38:776]: User policy value 'DisableRollback' is 0
MSI (s) (E4:60) [17:20:38:776]: Machine policy value 'DisableRollback' is 0
MSI (s) (E4:60) [17:20:38:776]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (E4:60) [17:20:38:776]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (E4:60) [17:20:38:776]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (E4:60) [17:20:38:777]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (E4:60) [17:20:38:777]: Destroying RemoteAPI object.
MSI (s) (E4:C4) [17:20:38:777]: Custom Action Manager thread ending.
MSI (c) (1C:D8) [17:20:38:778]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (1C:D8) [17:20:38:779]: MainEngineThread is returning 1603
=== Verbose logging stopped: 28/10/2019 17:20:38 ===
Thanks.
Robert.