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
- :
- Userinteraction during uninstall
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
‎Sep 11, 2009
10:49 AM
Userinteraction during uninstall
Hi,
what's the best way to do the following things:
Uninstall starts -> Ask the user if he wants to continue the setup, including the uninstallation of the installed SQL instance -> if the users chooses "cancel" the uninstallprocess will abort and the applikations remains fully functional on the system / if the user chooses "ok", the uninstallatio will continue an a custom action will run at the end of the uninstallationprocess, running the uninstaller for the SQL Instance.
Thank you for you help 🙂
P.S.: I'm using a Basic MSI Install Project.
what's the best way to do the following things:
Uninstall starts -> Ask the user if he wants to continue the setup, including the uninstallation of the installed SQL instance -> if the users chooses "cancel" the uninstallprocess will abort and the applikations remains fully functional on the system / if the user chooses "ok", the uninstallatio will continue an a custom action will run at the end of the uninstallationprocess, running the uninstaller for the SQL Instance.
Thank you for you help 🙂
P.S.: I'm using a Basic MSI Install Project.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 15, 2009
03:21 AM
Ok, I nearly solved my "problem".
Currently I'm using a Custom Action
(screenshot1)
to ask the user, if he wants to abort the uninstallation and run a backup using our application. I'm using a InstallScript Function to do this.
export prototype AskForBackup(HWND);
function AskForBackup(hMSI)
begin
// Display the AskYesNo dialog. The default is set to Yes.
if (AskYesNo("blablabla?\r\n" +
"blablabla.\r\n" +
"blablabla", YES) = YES)
then
Do(EXIT);
endif;
end;
If the user chooses YES, the setup aborts ( as wanted), but prompts the user again
(screenshot2)
for if he really wants to quit the (un)install process. Choosing yes, the Installer quits with an hard error 😞
(screenshot3).
Hopefully anybody can help me to prevent the last two messageboxes.
Thank you for your help in advance.
Greetings,
Gøran
Currently I'm using a Custom Action
(screenshot1)
to ask the user, if he wants to abort the uninstallation and run a backup using our application. I'm using a InstallScript Function to do this.
export prototype AskForBackup(HWND);
function AskForBackup(hMSI)
begin
// Display the AskYesNo dialog. The default is set to Yes.
if (AskYesNo("blablabla?\r\n" +
"blablabla.\r\n" +
"blablabla", YES) = YES)
then
Do(EXIT);
endif;
end;
If the user chooses YES, the setup aborts ( as wanted), but prompts the user again
(screenshot2)
for if he really wants to quit the (un)install process. Choosing yes, the Installer quits with an hard error 😞
(screenshot3).
Hopefully anybody can help me to prevent the last two messageboxes.
Thank you for your help in advance.
Greetings,
Gøran
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 15, 2009
11:24 AM
To abort cleanly from a custom action, you can try either the abort; statement, but I would generally recommend returning the value 1602 (user canceled) or 1603 (failure) depending on the scenario. This scenario sounds like a time to return 1602.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 16, 2009
02:37 AM
Thank you for your help, I'll test your hint at once 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 16, 2009
03:45 AM
Yeah, it works great 🙂
Return Processing: Synchronous (check exit code)
and switching in the InstallScript from Do(EXIT); to return 1602;
THX a lot 🙂
Return Processing: Synchronous (check exit code)
and switching in the InstallScript from Do(EXIT); to return 1602;
THX a lot 🙂