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: Desktop icons get removed when Cancel button is hit.
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 22, 2009
11:43 AM
Desktop icons get removed when Cancel button is hit.
My project is an InstallShield MSI project.
I have about 5 custom dialogs in my project.
My project does an upgrade of our product that was written using InstallShield6.22 to InstallShield 2009 product.
First time, the product is upgraded, all the desktop icons get created as expected.
After the upgrade, the system is rebooted, and everything works as expected.
Now, when a re-install is initiatedd, and when the Cancel button is clicked on the first Custom dialog screen that is displayed, the desktop icons that were created when upgraded, gets deleted. There is no code on OnCancelling to delete these icons. The files and registries are not disturbed at this point.
Re-running the installer and finishing it completely will create the icon again. Thereafter, this scenario is not reproducible.
How is this happening magically?
Need help in fixing this issue.
Thanks,
Elizabeth.
I have about 5 custom dialogs in my project.
My project does an upgrade of our product that was written using InstallShield6.22 to InstallShield 2009 product.
First time, the product is upgraded, all the desktop icons get created as expected.
After the upgrade, the system is rebooted, and everything works as expected.
Now, when a re-install is initiatedd, and when the Cancel button is clicked on the first Custom dialog screen that is displayed, the desktop icons that were created when upgraded, gets deleted. There is no code on OnCancelling to delete these icons. The files and registries are not disturbed at this point.
Re-running the installer and finishing it completely will create the icon again. Thereafter, this scenario is not reproducible.
How is this happening magically?
Need help in fixing this issue.
Thanks,
Elizabeth.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 29, 2009
09:58 AM
I found the answer for this question by myself. So I thought I will share my knowledge I gained from this issue.
OnCancelling was calling abort, instead of exit. Thus InstallShield rolled back what ever was to be uninstalled, and thus cleaned up the desktop icons.
On using exit in the OnCancelling function, my problem is resolved.
OnCancelling was calling abort, instead of exit. Thus InstallShield rolled back what ever was to be uninstalled, and thus cleaned up the desktop icons.
On using exit in the OnCancelling function, my problem is resolved.