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
- :
- Installscript MSI Start Menu Group
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
‎Jan 27, 2010
10:10 AM
Installscript MSI Start Menu Group
I have more than one install that installs applications to the same start menu program group. I'm finding that on uninstall of one of the applications the group is being deleted along with the other applications shortcuts.
How do I get the start menu group to remain?
I've tried marking the component for one of the shortcuts as permanent but it still gets uninstalled during uninstall.
I've tried updating the Direct Editor/ Component/ Attributes for this component to 16 to not remove on uninstall and it still removes the group and all shortcuts.
Can someone tell me how to get a program group to remain during uninstall?
I would have thought that it wouldn't uninstall the group because another application's shortcuts are in there but it just removes them all.
I was thinking of just creating the group in script and then copying the shortcuts over but the target for the shortcuts is dynamic based on user selection of INSTALLDIR..so that won't work.
Can someone help?:confused:
How do I get the start menu group to remain?
I've tried marking the component for one of the shortcuts as permanent but it still gets uninstalled during uninstall.
I've tried updating the Direct Editor/ Component/ Attributes for this component to 16 to not remove on uninstall and it still removes the group and all shortcuts.
Can someone tell me how to get a program group to remain during uninstall?
I would have thought that it wouldn't uninstall the group because another application's shortcuts are in there but it just removes them all.
I was thinking of just creating the group in script and then copying the shortcuts over but the target for the shortcuts is dynamic based on user selection of INSTALLDIR..so that won't work.
Can someone help?:confused:
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2010
12:57 PM
btw when I set the component to permanent in components view, then look into the direct editor it's set the attribute value to 24 instead of 16.
From what I can tell there is no valid attribute value of 24 and it's meaningless which is probably why it keeps uninstalling it anyway.
From what I can tell there is no valid attribute value of 24 and it's meaningless which is probably why it keeps uninstalling it anyway.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2010
01:36 PM
setting it as permanent just toggles a bit in the attribute column. in other words "16" is "1 0000" whereas "24" is "1 1000". the 4th bit is the "permanent" bit.
you should export the component that contains this program group from one installation into the other. this way, they both have the same component code (important for your problem!!!) and contain the same information (maintenance hazard otherwise). you'll also want to make sure the component is marked as "shared."
I'm not sure why "Permanent" isn't working for you, but it sounds like the intent of the "permanent" bit doesn't exactly match your needs. you still want the start menu items to be removed if neither of the products that use it are installed. your actual intent is that as long as the component is installed by at least one product, it should persist. this should be achievable by literally using the same component in both your projects (and marking it as shared.)
you should export the component that contains this program group from one installation into the other. this way, they both have the same component code (important for your problem!!!) and contain the same information (maintenance hazard otherwise). you'll also want to make sure the component is marked as "shared."
I'm not sure why "Permanent" isn't working for you, but it sounds like the intent of the "permanent" bit doesn't exactly match your needs. you still want the start menu items to be removed if neither of the products that use it are installed. your actual intent is that as long as the component is installed by at least one product, it should persist. this should be achievable by literally using the same component in both your projects (and marking it as shared.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2010
02:16 PM
I'll give it a shot, thanks for the help!