I am facing the problem using installer generated by InstallShield. The issue is appearing during uninstall process. setup.exe file requires administrator privileges. When I try to uninstall application using setup.exe file everything works as expected. But when I try to uninstall application from windows programs and features then uninstall is executing .msi file. In this scenario the result is that uninstall process is not able to close opened applications and the error "the setup was unable to automatically close all requested applications (...)" is appearing. I have checked the problem on different operating systems. It seems that on Windows 7 and 10 the problem is appearing but on Windows Server 2012R2 it works like expected (uninstall is able to close required applications). Any idea how to solve the issue? I would be grateful for tips.
Uninstall using .msi file - not able to close all requested applications
1.1k Views Asked by Szerie At
2
There are 2 best solutions below
0
Bill
On
The easiest way is to kill the process before it gets to that point in the installer. You will want to put this earlier in the InstallExucute sequence so that in runs in silent mode.
For example, in vbscript
Dim oShell : Set oShell = CreateObject("WScript.Shell")
oShell.Run "taskkill /im exeprocessname.exe", , True
Related Questions in WINDOWS-INSTALLER
- Wix bundle of third party exe and new msi cant figure out detect conditions
- create MSI that can be installed in console per user and per machine
- Invoke-command works only when any user is logged (msi install)
- Windows installer silently skips over component marked as 'Local'
- Customizing the Behavior of the BrowseDlg in WiX to Use a Custom Dialog for Invalid Directories
- Unable to format string in desired format - WiX
- Creating a Desktop Version of a Web Application (NextJS TypeScript Golang Echo)
- wix toolset radio button condition
- Creating an Installer Wizard
- Using msiexec on unattend.xml as SynchronousCommand but it run as asynchronous
- How to protect MSI installer digital signature from tampering
- I finished writing the code for an Android application, and it was in Python kivy, and while converting it to exe, this problem appeared
- Windows Installer Issue: Files Not Replaced After Major Upgrade - Seeking Assistance and Clarification
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- 'The cabinet file media1.cab required for this installation is corrupted and cannot be used ' in dowloading Node.js
Related Questions in INSTALLATION
- INSTALL_FAILED_DUPLICATE_PERMISSION: Package
- How can i install pyaudio on MacOS
- Problem installing Manim on Windows 11. Error regarding the wrong "decorator" version
- 'No such file or directory' installing RTC-Tools through pip
- Install Postfix Mail Server
- Plugin with id 'com.android.application' not found in Github Winlator Project
- OSError: [WinError 5] Access is denied: 'c:\\python311\\scripts\\pip.exe' Consider using the `--user` option
- Installing the C compiler for LC3
- Why is installation of MySQL on my mac is always halted
- OS: Parrot OS (hashcat : Depends: libminizip1t64 but it is not installable)
- GROMACS 2024 with CP2K 9.1 BUILD
- After the installation process When the server is running, nothing is displayed on the page myddleware
- PHP php_mongodb.dll for 32bit
- A given package is installed but spyder won't see it
- I cant install libraries?
Related Questions in INSTALLSHIELD
- Windows registry dump in InstallShield prerequisite
- How to make a silent installation out of nested .exe InstallShields?
- InstallShield for Windows: Error Diasnosis
- Creating an Eclipse RCP application installer using InstallShield
- Patch executable is deleted by windows defender but the same was not deleted in earlier build patches
- How to read and update language MST file (1033.mst) which is part of MSI Package using C# windows application?
- How to update License Agreement(EULA) in MSI Package (support multiple language) using any external tool?
- Why does a non-advertised shortcut created within the startup folder, does not auto start the application upon reboot?
- Copyright details doesn't show Organization name
- Can we encrypt MSI property values so that user cannot open the MSI/MST to see the value?
- Managed Code custom action in .Net Core 6 or later
- Upgrade without UpgradeCode with MSI
- Cannot sign swidtag file with DigiCert Cloud HSM private key
- How to set Required Execution Level to Administrator for Basic MSI project type with MSI file
- How to match a pattern with VbScript regex in InstallShield?
Related Questions in INSTALLSHIELD-2014
- Restart Manager Dialog Localizing Partially for Wix Installer
- Wrong/Different Publisher Name
- Uninstall using .msi file - not able to close all requested applications
- Pass property to ISCmdBld.exe
- Unable to browse/refer a .net class library dll file (which is part of product deployment and dependency of an .Net exe file) from custom action
- Unable to set custom path(user defined path) of merge module file path in Basic MSI Project in InstallShiled?
- InstallShield CustomAction : How to load the unmanaged/native dependency assemblies during installation for p/invoke calls
- How to run custom actions while running the MSI installer in silent mode
- Installshield 2014 - show form optional by errorcode of batch script
- Installshield Suite Update URL prompt
- How to install Sql Server 2012 SP2 Cumlative update silently from installshield
- Database name in SQLLogin Dialog not getting updated in installshield basic MSI installer
- ISDEV : fatal error -1501 couldn't compress file
- RedGate SQL Comparison SDK API Licensing Issue
- Enable Windows Feature\Role through Installshield
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In meantime I found out accidentally that after changing UAC level and restarting the computer uninstall is able to close applications (previously I checked it without restart and there was no difference in behaviour so I thought it was not the issue). Thank you very much for your tip @PhilDW. I have changed UAC settings again and I tried to create logs and logs connected to the issue are presented below:
MSI (s) (B4:D0) [15:44:09:691]: RESTART MANAGER: Detected that application with id 15584, friendly name 'XYZ System Monitor', of type RmUnknownApp and status 1 holds file[s] in use. MSI (c) (4C:C8) [15:44:09:697]: RESTART MANAGER: Session opened. MSI (c) (4C:C8) [15:44:09:707]: RESTART MANAGER: Detected that application with id 15584, friendly name 'XYZ.Monitor.exe', of type RmCritical and status 1 holds file[s] in use. MSI (c) (4C:C8) [15:44:09:707]: Note: 1: 2262 2: ListBox 3: -2147287038 Action 15:44:31: ShutdownApplications. Shutting down applications MSI (s) (B4:D0) [15:44:32:071]: RESTART MANAGER: Successfully shut down all applications in the service's session that held files in use. MSI (c) (4C:C8) [15:44:32:071]: RESTART MANAGER: Successfully shut down all applications that held files in use. MSI (s) (B4:D0) [15:44:32:573]: Note: 1: 1611 The setup was unable to automatically close all requested applications. Please ensure that the applications holding files in use are closed before continuing with the installation.
I don't understand why logs claim that all applications were successfully shuted down and then log claims something opposite.