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 it reinstall a desktop shortcut when running in modify mode
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
Nov 19, 2007
01:07 PM
How can it reinstall a desktop shortcut when running in modify mode
I've added a desktop shortcut by following several hints I found here and it's working fine when I initially run the install.
Basically I created the Component, associated it to a feature, then added a checkbox to the Install Ready dialog that controls it. The problem is that if I delete the desktop shortcut and then rerun the install setup it gives me the Maintenance dialog with the Modify/Repair/Remove options and then I pick Modify and then the Features dialog and then the Ready to Install with my checkboxes but when it runs through it doesn't create the new desktop shortcut to replace the old one.
Only if I recompile it with a new minor build number will it then add a new shortcut. Any way to force it to always update or add the shortcuts?
Basically I created the Component, associated it to a feature, then added a checkbox to the Install Ready dialog that controls it. The problem is that if I delete the desktop shortcut and then rerun the install setup it gives me the Maintenance dialog with the Modify/Repair/Remove options and then I pick Modify and then the Features dialog and then the Ready to Install with my checkboxes but when it runs through it doesn't create the new desktop shortcut to replace the old one.
Only if I recompile it with a new minor build number will it then add a new shortcut. Any way to force it to always update or add the shortcuts?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 28, 2007
06:42 PM
I presume that "added a checkbox to the Install Ready dialog that controls it" means setting a property which is used as component condition. Since user's selection made in a fresh install is lost during maintenance, you will need to maintain it yourself. You can write the value to registry, and, during maintenance, have the install read from registry and act accordingly. You will need to set component to reevaluate condition.