Skip to content
⌘ NSIS Forum Archive

Create custom shortcut

6 posts

the-warriners#

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
Vytautas#
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
the-warriners#
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?
Comm@nder21#
for this use a second install-dir page, or a custom page.

to set up the CreateShortcut command, simply read the docs.
the-warriners#
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