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
- How can I install an MSI using python's subprocess, passing an install directory containing a space?
- Upgrading MSI throwing 'method not found' error
- Windows installer - run a subsequent time, select "modify" and run specific steps
- Single Package Authoring
- WiX - How to use a config file to decide which MSI to run?
- Want to create mysql user in installation with full Privileges In NSIS
- How to change Install button display text conditionally
- error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010
- Service dependencies are causing my wix msi to force a reboot on uninstall
- Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7
- Change the installation path with msi API
- After installation of website it changes Application Pool of web application that follows it.
- Getting strange errors when installing visual studio 2015 community rc
- Creating a silent installer for a MSI
- install msi with a product code through msiexec
Related Questions in INSTALLATION
- Bundle Multiple Xamarin apps in one pkg installer
- install a R package from directory
- Can I automate auto-app installation on my Android device?
- Stop the installshield installation if a file is not found in vb.net
- GVM: Issue when installing GVM in Ubuntu 14.04
- Not able to format namenode in hadoop-2.6.0 multi node installation
- How to install SFML in ubuntu?
- how to install packages from pypi to anaconda?
- What is PREFIX IN make PREFIX=$HOME/usr/local/OpenBLAS?
- WiX installer - change the install path
- First time app run action depending on how app was installed (Android)
- First time app run action depending on how app was installed (iOS)
- Error while installing HBase on windows
- Produce both versions x32 and x64 under PyInstaller
- Python: Trouble with dill installation
Related Questions in INSTALLSHIELD
- Stop the installshield installation if a file is not found in vb.net
- How can we add custom logic while installing exe created by installshield
- Windows installer - run a subsequent time, select "modify" and run specific steps
- InstallShield exclude files based on language selection
- After installation of website it changes Application Pool of web application that follows it.
- mshtml.dll not found by installshield
- Error 2602: The [2] table entry '[3]' has no associated entry in the Media table.The [2] table entry '[3]' has no associated entry in the Media table
- Installshield LE: Require Office 2007 or greater doesn't work
- How do you uninstall a topshelf service with an MSI package?
- How to convert a relative path to an absolute path in InstallShield?
- Potential problems when we are migrating from Installshield to WIX 4
- DISM fails after SQL Silent install
- VS2012 and InstallShield 2014 Premier Issue
- Add two xml entries with the same name - InstallShield
- How can I use installscript to detect Excel.exe running?
Related Questions in INSTALLSHIELD-2014
- VS2012 and InstallShield 2014 Premier Issue
- How do you set "InstallShield Prerequisites Location"?
- How to sequence a custom action script after a specific dialog?
- Installshield 2014 Basic MSI Hide features dynamically not installing features
- ISDEV : fatal error -1501 couldn't compress file
- Wrong/Different Publisher Name
- How to run custom actions while running the MSI installer in silent mode
- 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
- Silent Install of SQL Server 2008 R2 Still Shows UI to User - How do I keep the UI from showing?
- RedGate SQL Comparison SDK API Licensing Issue
- 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
- Pass property to ISCmdBld.exe
- Read a File in Installshield and fill a form
- 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 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.