How to NOT hardcode a shortcut path & point it to user p - 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!

srikat
Posts: 4
Joined: Thu Aug 03, 2006 7:37 am

How to NOT hardcode a shortcut path & point it to user p

Hello,

I have created a .msi file using Advanced Installer. I've hard-coded the 'Application Folder' of 'Install Parameters' to:

Code: Select all

C:\Program Files\SAP\Demos\Executive Demos\Insurance Management Cockpit\
The installer will place a file called Demo.vdl under the above folder\Demo\TBSystem

It will also place a desktop shortcut with a target of

Code: Select all

"C:\Program Files\SAP\Demos\Executive Demos\Insurance Management Cockpit\Demo\TBSystem\Demo.vdl"
All is fine and the installer works good. Now if the person installing changes the installation path from the default one, the desktop shortcut doesn't hold good any more. So my question is: How do I make the shortcut to point to wherever the user chose to install? i.e., how to make it dynamic?

Thanks for any replies.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Create a shortcut to an external file. Edit the "Shortcut Target" field with this line:

Code: Select all

[APPDIR]Demo\TBSystem\Demo.vdl
Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
srikat
Posts: 4
Joined: Thu Aug 03, 2006 7:37 am

gigi,

Thanks so much. That did the trick.

Return to “Common Problems”