External shortcut issue - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

External shortcut issue

Im unable to set the working directory on my external shortcut to be the location of the exe

I have a "workstation installer" which is run from the programs folder on the server (this is shared as part of the installer) it uses the SETEXEDIR to create shortcuts onthe workstations to some exe's on the server

however, it seems that it is not currently possible to set the working directory on this shortcut to be the SETUPEXEDIR, and without this the applications cannot run correctly

is there a way that this can be acheived (or is there a chance to change the working directory to be editable, or have the SETUPEXEDIR listed in the properties, which it isnt at the moment)

Thanks in advance
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: External shortcut issue

Hi Fergus,

SETUPEXEDIR public property stores the location of the EXE bootstrapper (it is resolved when you launch the installation through the EXE bootstrapper). Why do you need to set the working directory for your application's external shortcut in this location?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: External shortcut issue

The External shortcuts are pointing to things that are in the same location SETUPEXEDIR

our installation looks a little like this
- install the "server" part (this part distributes all the main exe's and also includes the AI workstation installer, a configuration step then shares this folder on the network)
- on the workstation, we browse to the server "share" and run the workstation installer, this installer exe location is IN the same location as the .exe that we are going to create shortcuts to

We do this to simplify the workstation installers and removes the need for selection of the "server" during the workstation part of the install, and in this way they can be run unattended (with the /quiet) which is helpful for larger sites we have

Some of the applications installed, reference things in relative directories to the exe's and i think its this that causes the issue if you dont set the working directory, or it may just be the way that they were originally written

Is there a way to get the Working directory to default to the directory that the shortcutted exe exists in, perhaps through some special property?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: External shortcut issue

Hello Fergus,

You can try to add a property SETUPEXEDIR with any value in the Install Parameters page. This way you can choose it as a working directory for your external shortcut.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: External shortcut issue

Great, thanks Mihai

Creating the Variable in install parameters with value of [SETUPEXEDIR] works great

Thanks,
Fergus.

Return to “Common Problems”