This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- stop the procces when uninstalling it
Subscribe
- 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
‎May 12, 2011
09:18 AM
stop the procces when uninstalling it
Hi,
I am installing my software.
Now, I am trying to uninstall.
When the software is not running everything is OK.
When it is running the uninstall is stck for a moment but tells me the it is successful, but the EXE file is still running and still in on the hard drive in its directory.
How do I tell the InstallSheild to stop the proccess and then it will be uninstalled.
I am using Windows XP and Bsic MSI project.
Thanks.
I am installing my software.
Now, I am trying to uninstall.
When the software is not running everything is OK.
When it is running the uninstall is stck for a moment but tells me the it is successful, but the EXE file is still running and still in on the hard drive in its directory.
How do I tell the InstallSheild to stop the proccess and then it will be uninstalled.
I am using Windows XP and Bsic MSI project.
Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2011
05:24 AM
Hi,
Please let me know if you see any "File in use" dialog during uninstallation?
How r u uninstalling the application?? R u using Add\Remove, cmd line or what??
Please let me know if you see any "File in use" dialog during uninstallation?
How r u uninstalling the application?? R u using Add\Remove, cmd line or what??
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2011
10:13 AM
If you want to take a proactive approach AND you're familiar with inserting InstallScript code into your project (I don't do MSI, sorry), you could make use of the FILE_LOCKED function with something like this:
szQuestion = "Please verify that My Application has been shutdown before continuing. Do you want to continue?";
szMyExe = INSTALLDIR ^ "MyExe.exe";
ExeRunningLoop:
if ( Is ( FILE_LOCKED, szMyExe ) ) then
if ( AskYesNo ( szQuestion, NO ) = NO ) then
abort;
else
Delay ( 5 );
goto ExeRunningLoop;
endif;
endif;
szQuestion = "Please verify that My Application has been shutdown before continuing. Do you want to continue?";
szMyExe = INSTALLDIR ^ "MyExe.exe";
ExeRunningLoop:
if ( Is ( FILE_LOCKED, szMyExe ) ) then
if ( AskYesNo ( szQuestion, NO ) = NO ) then
abort;
else
Delay ( 5 );
goto ExeRunningLoop;
endif;
endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2011
02:24 PM
szCmdLine = "/im YourEXENameHere.exe /f";
LaunchAppAndWait("taskkill", szCmdLine, LAAW_OPTION_WAIT);
LaunchAppAndWait("taskkill", szCmdLine, LAAW_OPTION_WAIT);