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!

mbabcock
Posts: 2
Joined: Wed Oct 19, 2005 8:05 pm

Shortcut pointing to .exe on CD-ROM

Hi,

I would like to install a shortcut on the end-users desktop that points to an .exe file on the installation CD-ROM. I tried creating a "external file" shortcut. I didn't see any clear way to set the target path to the CD-ROM drive. Is this even possible? If so, how would I go about doing this?

Thanks,

MBabcock
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

This could be achieved through a custom action. If the MSI is installed from the CD-ROM you can retrieve it's location from the SourceDir property.

Then, you can use a custom action to set a property that you have defined to the desired path.

Example:

Code: Select all

Session.property("YourProperty") = Left(Session.property("SourceDir"), 3) + "Dir\somefile.txt"
This custom action extracts the drive letter of the CD-ROM and attaches to it a path to a file.

You can then use "YourProperty" to set the target for the shortcut.

Of course, this custom action should be placed before the "CreateShortcuts" standard action, for example on "BindImage".

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
mbabcock
Posts: 2
Joined: Wed Oct 19, 2005 8:05 pm

Thanks!

Return to “Common Problems”