- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: msiexec running uninstall causes main program to terminate
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Windows 2019, Install Shield 2019 with Installation Manager 1.9.1.4 (Java 8.0.6.20)
I have an number of applications which are installed with an Installation Manager (IM) application. The applications are created with InstallShield. IM acts as a wrapper and installs and configures the applications. The application are installed through a simple java program which executes silent installs of each component. This works fine.
But when I perform an uninstall using IM, which calls msiexec /x for each application using a java program, on one of the msiexec /x it causes the java program to terminate and Installation Manager as well. I use this msiexec command to uninstall:
C:\build\8.1.12.000\srv_install>"C:\windows\system32\msiexec.exe" /x {19D7EB7F-70F3-4FDF-A5EF-0C1AD14A83FC} RebootYesNo=\"No\" REBOOT=\"Suppress\" ALLUSERS=1 /qn /L*vx "C:\logs\tsm_server_uninstall.log"
I see these messages in the tsm_server_uninstall.log file NOTE: IBMIM is Installation Manager.
MSI (s) (94:00) [19:42:55:895]: Note: 1: 2727 2:
MSI (s) (94:00) [19:42:56:036]: RESTART MANAGER: Will attempt to shut down and restart applications in no UI modes.
MSI (s) (94:00) [19:42:56:036]: RESTART MANAGER: Detected that application with id 6032, friendly name 'IBMIM', of type RmUnknownApp and status 1 holds file[s] in use.
MSI (c) (D4:E0) [19:42:56:036]: RESTART MANAGER: Session opened.
MSI (s) (94:00) [19:42:56:130]: RESTART MANAGER: Successfully shut down all applications in the service's session that held files in use.
MSI (c) (D4:E0) [19:42:56:145]: RESTART MANAGER: Successfully shut down all applications that held files in use.
MSI (s) (94:00) [19:42:59:739]: Note: 1: 2727 2:
MSI (s) (94:00) [19:42:59:739]: Doing action: RemoveExistingProducts
And at the bottom of the log file
MSI (s) (94:00) [19:43:14:802]: Closing MSIHANDLE (3184) of type 790542 for thread 4608
MSI (s) (94:00) [19:43:14:802]: Deferring clean up of packages/files, if any exist
MSI (s) (94:00) [19:43:14:817]: MainEngineThread is returning 0
MSI (s) (94:F8) [19:43:14:817]: RESTART MANAGER: Previously shut down applications have been restarted.
MSI (s) (94:F8) [19:43:14:833]: RESTART MANAGER: Session closed.
MSI (s) (94:F8) [19:43:14:833]: No System Restore sequence number for this installation.
=== Logging stopped: 3/15/2021 19:43:14 ===
MSI (s) (94:F8) [19:43:14:833]: User policy value 'DisableRollback' is 0
MSI (s) (94:F8) [19:43:14:833]: Machine policy value 'DisableRollback' is 0
MSI (s) (94:F8) [19:43:14:833]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (94:F8) [19:43:14:833]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (94:F8) [19:43:14:849]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (94:F8) [19:43:14:849]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (94:F8) [19:43:14:849]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (94:F8) [19:43:14:849]: Post-install cleanup: removing installer file 'C:\windows\Installer\7def23fa.mst'
MSI (s) (94:F8) [19:43:14:849]: Post-install cleanup: removing installer folder 'C:\windows\Installer\' (if empty)
MSI (s) (94:F8) [19:43:14:849]: Post-install cleanup: removing installer file 'C:\windows\Installer\7def23f9.msi'
MSI (s) (94:F8) [19:43:14:865]: Post-install cleanup: removing installer file 'C:\windows\Installer\{19D7EB7F-70F3-4FDF-A5EF-0C1AD14A83FC}\ARPPRODUCTICON.exe'
MSI (s) (94:F8) [19:43:14:865]: Post-install cleanup: removing installer folder 'C:\windows\Installer\{19D7EB7F-70F3-4FDF-A5EF-0C1AD14A83FC}\' (if empty)
MSI (s) (94:F8) [19:43:14:865]: Note: 1: 2318 2:
MSI (s) (94:F8) [19:43:14:865]: Post-install cleanup: removing installer file 'C:\windows\Installer\{19D7EB7F-70F3-4FDF-A5EF-0C1AD14A83FC}\NewShortcut2_10F9B65E3DA24E9C9E2899737236CF4E.exe'
MSI (s) (94:F8) [19:43:14:865]: Post-install cleanup: removing installer folder 'C:\windows\Installer\{19D7EB7F-70F3-4FDF-A5EF-0C1AD14A83FC}\' (if empty)
MSI (s) (94:F8) [19:43:14:865]: Note: 1: 2318 2:
MSI (s) (94:F8) [19:43:14:865]: Destroying RemoteAPI object.
MSI (s) (94:A8) [19:43:14:865]: Custom Action Manager thread ending.
MSI (c) (D4:64) [19:43:14:865]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (D4:64) [19:43:14:880]: MainEngineThread is returning 0
MSI (c) (D4:E0) [19:43:14:896]: RESTART MANAGER: Previously shut down applications have been restarted.
MSI (c) (D4:E0) [19:43:14:896]: RESTART MANAGER: Session closed.
=== Verbose logging stopped: 3/15/2021 19:43:14 ===
How can I prevent msiexec /x from terminating the java and IM process?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Lee,
Try disabling the RESTART MANAGER and enabling the FilesInUse dialog, this may provide more information about what file IBMIM is holding in use.
Within your project you will need to use the Property Manager to add the MSIRESTARTMANAGERCONTROL property with a value of "Disable"
Information can be found here:
https://docs.microsoft.com/en-us/windows/win32/msi/msirestartmanagercontrol
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Lee,
Try disabling the RESTART MANAGER and enabling the FilesInUse dialog, this may provide more information about what file IBMIM is holding in use.
Within your project you will need to use the Property Manager to add the MSIRESTARTMANAGERCONTROL property with a value of "Disable"
Information can be found here:
https://docs.microsoft.com/en-us/windows/win32/msi/msirestartmanagercontrol
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Great 👍