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: Creating Shortcuts
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 29, 2009
09:39 AM
Creating Shortcuts
Hi,
how can i create shortcuts while uninstalling (certainly depending on conditions)?
my shortcuts don't seem to be created...
mary
how can i create shortcuts while uninstalling (certainly depending on conditions)?
my shortcuts don't seem to be created...
mary
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
11:43 AM
maybe I am confused. Why would you need to create a shortcut while uninstalling? and what would the shortcut be pointing to since your application is not there anymore?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2009
02:32 AM
Lurean,
the situation is:
i am installing a "main" installation (server) and a "secondary" installation (client)
if both are on the same pc, i want on uninstall of the secondary setup a shortcut in programmenufolder which points to the setup.exe of the secondary installation in case one would want to reinstall the client (which is needed) again.
so my scope is to set a shortcut "on uninstall" of my client setup.
mary
the situation is:
i am installing a "main" installation (server) and a "secondary" installation (client)
if both are on the same pc, i want on uninstall of the secondary setup a shortcut in programmenufolder which points to the setup.exe of the secondary installation in case one would want to reinstall the client (which is needed) again.
so my scope is to set a shortcut "on uninstall" of my client setup.
mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
01:53 AM
Why don't you just always include the shortcut in your server install.
If, after installing your server, you want to install the client the user can install the client by just clicking the shortcut.
Of course, the client install already has to be on the system.
For your example where the server and client are installed on the same machine, clicking the shortcut will just open the setup (presumably) with the options Modify, Repair and Remove.
In case the client has already been removed, it will install the client again.
If this is a workable solution, you don't have to install the shortcut on uninstall.
If, after installing your server, you want to install the client the user can install the client by just clicking the shortcut.
Of course, the client install already has to be on the system.
For your example where the server and client are installed on the same machine, clicking the shortcut will just open the setup (presumably) with the options Modify, Repair and Remove.
In case the client has already been removed, it will install the client again.
If this is a workable solution, you don't have to install the shortcut on uninstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
03:19 AM
hi ericpaul,
thanks for this interesting approach - unfortunately it's a little bit more tricky (i omitted some information yet):
first, when the serverinstall runs successfully, a programmenufolder with a shortcut to the client setup.exe is created.
on step 2, you can click on this link to install the client AND the above mentioned link is deleted (other shortcuts are created)
step 3, if you uninstall the client setup, the whole programmenufolder is deleted
and that's the point where i wanted to create a new shortcut (without knowing as user where to search in the filesystem for the server setup.exe) because the originally installed server setup exists yet.
mary
thanks for this interesting approach - unfortunately it's a little bit more tricky (i omitted some information yet):
first, when the serverinstall runs successfully, a programmenufolder with a shortcut to the client setup.exe is created.
on step 2, you can click on this link to install the client AND the above mentioned link is deleted (other shortcuts are created)
step 3, if you uninstall the client setup, the whole programmenufolder is deleted
and that's the point where i wanted to create a new shortcut (without knowing as user where to search in the filesystem for the server setup.exe) because the originally installed server setup exists yet.
mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
07:56 AM
Putting to one side that this feels a little nasty and you may want to rethink your design....
You won't be able to do that using standard out of the box functionality. The reason being is that the shortcuts are linked to components. If you install a component with a related shortcut it will create the shortcut, if you uninstall a component the shortcut gets removed.
So what you would need to do is install a component during uninstall... Obviously no can do!
Therefore the only way you could get around your situation is to manually create a custom action that will create a shortcut for you that is conditioned to run on uninstall.
But again... please reconsider this design in the first place.
You won't be able to do that using standard out of the box functionality. The reason being is that the shortcuts are linked to components. If you install a component with a related shortcut it will create the shortcut, if you uninstall a component the shortcut gets removed.
So what you would need to do is install a component during uninstall... Obviously no can do!
Therefore the only way you could get around your situation is to manually create a custom action that will create a shortcut for you that is conditioned to run on uninstall.
But again... please reconsider this design in the first place.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
08:33 AM
well, how would i manually create a shortcut - i didn't find a way...?
...and...
i already considered a redesign but have not found a better way for my "problem" (in fact, it's only for the convenience of our users).
who could give me another clue?
thanks for all your suggestions so far!
mary
...and...
i already considered a redesign but have not found a better way for my "problem" (in fact, it's only for the convenience of our users).
who could give me another clue?
thanks for all your suggestions so far!
mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
08:51 AM
When i say create a shortcut manually i meant using something like a vbscript custom action.
This website has some good code on this:
http://techtasks.com/code/viewbookcode/518
This website has some good code on this:
http://techtasks.com/code/viewbookcode/518
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
11:12 AM
another option would be to have the "server" Installation install a shortcut to the client installer instead of having an installer try to create a shortcut to itself at uninstall, which is essentially what you are suggesting.
Yes, this will mean the shortcut is there even when the client is installed, but running the install a second time will bring up the maintenance mode and not really cause any problems in most cases.
Yes, this will mean the shortcut is there even when the client is installed, but running the install a second time will bring up the maintenance mode and not really cause any problems in most cases.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)