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
- :
- Re: Custom Uninstall Behavior
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 11, 2011
04:51 PM
Custom Uninstall Behavior
I added a checkbox to my ReadyToRemove dialog. If the checkbox is selected (this is the default behavior) I want to remove some user data from a location in programData. If not, I want to leave that data there. I assume I need to edit the Remove Event? My RemoveEvent now looks like this:
{Event:Remove, Argument: ALL, Condition: WILL_REMOVE_ROLLBACK}
I'm not sure what to put in argument and how to go from here to remove that data during my uninstall. WILL_REMOVE_ROLLBACK is the "property" value for my checkbox. Any insights would be much appreciated!
Danwize
{Event:Remove, Argument: ALL, Condition: WILL_REMOVE_ROLLBACK}
I'm not sure what to put in argument and how to go from here to remove that data during my uninstall. WILL_REMOVE_ROLLBACK is the "property" value for my checkbox. Any insights would be much appreciated!
Danwize
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2011
05:28 PM
BTW, this is a basic MSI project. I guess I need to add custom actions and sequences to delete the directories I need to get rid of? How do I call/execute custom actions based on the remove event from the GUI?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2011
06:32 PM
You will want to familiarize yourself with Remove ControlEvent.
danwize wrote:If you have not, please refer to REMOVE Property.
{Event:Remove, Argument: ALL, Condition: WILL_REMOVE_ROLLBACK}
I'm not sure what to put in argument and how to go from here to remove that data during my uninstall.
danwize wrote:
I guess I need to add custom actions and sequences to delete the directories I need to get rid of? How do I call/execute custom actions based on the remove event from the GUI?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2011
10:17 AM
Thanks for the suggestion!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2011
11:50 AM
I've got the custom actions working during a GUI uninstall, but now I can't quite get it to work during a silent install.
I have a public property called WILLREMOVEROLLBACKS in my basic installshield projet. I also have a check box called REMOVEROLLBACKBOX. The checkbox is selected by default and the property of that check box is WILLREMOVEROLLBACKS. If WILLREOMVEROLLBACKS is true, then the rollbacks folder is deleted by VBScript during the uninstall of my product. During a silent install, how do I set WILLREMOVEROLLBACKS to false, in case the user does not want to remove the rollback data? I pass the parameter, but it seems that my command is being ignored. Any ideas?
This is the command line I am using:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACKS=False
I also tried:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACKS=0
I have a public property called WILLREMOVEROLLBACKS in my basic installshield projet. I also have a check box called REMOVEROLLBACKBOX. The checkbox is selected by default and the property of that check box is WILLREMOVEROLLBACKS. If WILLREOMVEROLLBACKS is true, then the rollbacks folder is deleted by VBScript during the uninstall of my product. During a silent install, how do I set WILLREMOVEROLLBACKS to false, in case the user does not want to remove the rollback data? I pass the parameter, but it seems that my command is being ignored. Any ideas?
This is the command line I am using:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACKS=False
I also tried:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACKS=0
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2011
04:02 PM
I've got this to work, kind of. I had to do some weird things to make my checkbox to remove rollback data. I couldn't just set the default to false in the dialog dialog editor, that didn't do what I expected it to (See the first image below). Look here to see how to get around that problem:
http://community.installshield.com/showthread.php?t=195739&highlight=default+checkbox
Now here is another weird thing. Since I made the default to be not to remove rollback data, I can just leave that argument off my parameters. However, even if I set WILLREMOVEROLLBACK to false, or 0, the installer still removes the rollback data. Here are the commands I tried:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=0
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=False
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=True
All of these commands cause the rollback data to be removed. Do I need to change the conditions on my custom action (See the second image below)? The only way I can get the uninstaller to not remove rollback data is to leave off the WILLREMOVEROLLBACK parameter off.
http://community.installshield.com/showthread.php?t=195739&highlight=default+checkbox
Now here is another weird thing. Since I made the default to be not to remove rollback data, I can just leave that argument off my parameters. However, even if I set WILLREMOVEROLLBACK to false, or 0, the installer still removes the rollback data. Here are the commands I tried:
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=0
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=False
msiexec /x JVDI.msi /qn WILLREMOVEROLLBACK=True
All of these commands cause the rollback data to be removed. Do I need to change the conditions on my custom action (See the second image below)? The only way I can get the uninstaller to not remove rollback data is to leave off the WILLREMOVEROLLBACK parameter off.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 23, 2011
06:45 PM
According to CheckBox Control, "unselected state sets the property to null."