Archive: Create custom shortcut


Create custom shortcut
Hi
I am trying to find an installer which can do the following.

I want to prompt the user to browse and choose a file which will typically be on a server drive.
I then want to install a couple of files to programfiles\whatever and then finally create a shortcut that points to the file that the user chose in the browse part.

Can this be done? Could you post the necessary code?

Many thanks

Richard


Yes that should not be too difficult. When you say that the user should browse for a certain file do you mean that you need the user to find the location of a certain file which could be in a different location but is always the same file? If so then simply use the CreateShortcut command and point to the selected dir + filename.

Vytautas


Yes, it will always be the same filename but could be anywhere on the network.
So the browse for file is in addition to the regular "where to install" to question - this still installs files onto the users PC - they just need to end up with a shortcut to a server side application.

One more complication I need to be able to set the "Start In" part
of the shortcut to the folder where this server execuatble resides.

Still possible?


for this use a second install-dir page, or a custom page.

to set up the CreateShortcut command, simply read the docs.


I downloaded the install and had a look at some of the examples. To be honest I'm not sure where to start.

Any chance of a bit of help with the basics?

Thanks


Have you tried the tutorial?