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
- :
- Simple (maybe not) InstallScript (no MSI) uninstall question
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
Apr 10, 2009
02:08 PM
Simple (maybe not) InstallScript (no MSI) uninstall question
Hi,
I juste converted an old IS project to IS2009 InstallScript (no MSI).
Now I need to add a function at uninstall. The project uses shortcut to uninstall, Add/Remove panel buttons are hidden. The commandline for the uninstall shortcut is as following:
"C:\Program Files\InstallShield Installation Information\{PRODUCT_CODE_GUID}\setup.exe" -runfromtemp -l0x0009 -uninst -f
The uninstall only display a dialog with text "Do you want to completely remove the selected application and all of its features" - I think it's from InstallShield by default, let's call it uninstall dialog.
The only functions in setup.rul are OnSetUpdateMode() and OnShowUI(). Neither of them are proper for my function. The ideal position for the function is AFTER the uninstall dialog AND 'Yes' has been selected.
After reading some materials, I found OnUninistall() might be the choice, but once I added the (empty) function to setup.rul, the uninstall doesn't work because the empty function overwrite the default one.
Is there a way to have my function executed without adding OnUninstall() so I can keep the default OnUninstall()? If not, how can I get a default OnUninstall() with the default code? I just want my function to be appended to the existing (default) stuff.
Thanks,
Peter
I juste converted an old IS project to IS2009 InstallScript (no MSI).
Now I need to add a function at uninstall. The project uses shortcut to uninstall, Add/Remove panel buttons are hidden. The commandline for the uninstall shortcut is as following:
"C:\Program Files\InstallShield Installation Information\{PRODUCT_CODE_GUID}\setup.exe" -runfromtemp -l0x0009 -uninst -f
The uninstall only display a dialog with text "Do you want to completely remove the selected application and all of its features" - I think it's from InstallShield by default, let's call it uninstall dialog.
The only functions in setup.rul are OnSetUpdateMode() and OnShowUI(). Neither of them are proper for my function. The ideal position for the function is AFTER the uninstall dialog AND 'Yes' has been selected.
After reading some materials, I found OnUninistall() might be the choice, but once I added the (empty) function to setup.rul, the uninstall doesn't work because the empty function overwrite the default one.
Is there a way to have my function executed without adding OnUninstall() so I can keep the default OnUninstall()? If not, how can I get a default OnUninstall() with the default code? I just want my function to be appended to the existing (default) stuff.
Thanks,
Peter
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 10, 2009
02:33 PM
Found solution.
I attach my function (exported type) to the main feature as OnUninstalled.
Thanks to anybody who pay attention to the thread.'
I attach my function (exported type) to the main feature as OnUninstalled.
Thanks to anybody who pay attention to the thread.'