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
- :
- How can I know if "Remove" button was pressed in add/remove program?
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
‎Jul 27, 2008
10:04 AM
How can I know if "Remove" button was pressed in add/remove program?
Hi All,
I'm using basic MSI project. When I'm pressing on remove button in add/remove program, not all the files are deleted. I've tried several methods - none worked.
Is there a way to know that the reove button was pressed (I'm planning to put a script that will delete the entire folder if he recognizes such action)?
Thanks,
Barak
I'm using basic MSI project. When I'm pressing on remove button in add/remove program, not all the files are deleted. I've tried several methods - none worked.
Is there a way to know that the reove button was pressed (I'm planning to put a script that will delete the entire folder if he recognizes such action)?
Thanks,
Barak
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 27, 2008
10:58 AM
I usually delete files at uninstall by -
1) Using removefile table, http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx
2) Using a custom action of filedelete script, condition it - REMOVE
Have you tried both ?
1) Using removefile table, http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx
2) Using a custom action of filedelete script, condition it - REMOVE
Have you tried both ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2008
02:49 AM
Hi, and thanks for replying,
Regarding your question:
1. I've inserted 2 files that weren't deleted to removeFile
table, gave them a value of 2 in installMode - but they
still remained around after I uninstalled the product.
2. Don't really know what do you mean, can you elaborate?
I've tried to create a script that would delete the entire
folder, and tried to use the condition if (REMOVE="ALL")
but whenever the program got to this section, it crashed.
(tried to use this condition in the "install exe condition"
in my custom condition - but the program never got
into my script
Regarding your question:
1. I've inserted 2 files that weren't deleted to removeFile
table, gave them a value of 2 in installMode - but they
still remained around after I uninstalled the product.
2. Don't really know what do you mean, can you elaborate?
I've tried to create a script that would delete the entire
folder, and tried to use the condition if (REMOVE="ALL")
but whenever the program got to this section, it crashed.
(tried to use this condition in the "install exe condition"
in my custom condition - but the program never got
into my script