Unable to add Shortcuts to a File Copy file - 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!

Brian1
Posts: 8
Joined: Thu Sep 24, 2009 4:57 pm

Unable to add Shortcuts to a File Copy file

Hello. I am having troubles adding a Shortcut for the specific EXE I need.

I have AI v7.2 Pro. I have a series of files installed from the MSI into ProgramFiles directories. But the specific launching EXE file is copied into place using File Copy/Move. (I do this so that another developer may add the launching program onto the CD, without a rebuild of the MSI.)

When I include my launching program (an EXE) in the MSI, and then attempt to overwrite it using File Copy/Move from an external file I have on CD, the file from MSI wins. (Most likely the File Copy/Move external file is written before the MSI file installs it, so it gets overwritten.)

When I do NOT include my launching program in the MSI and only File Copy/Move externally, I seem to have no way to get the Shortcut put in place (as there's no Installed File nor External File to work with, that I see).

What might I do to resolve this?

I'd sure appreciate any help. Thanks in advance.

Brian1
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Unable to add Shortcuts to a File Copy file

Hi Brian,

From the Files and Folders page, you can right click and select "New Shortcut To"->"External File". In the "Edit Shortcut Properties" dialog, set the "Shortcut Target" field to something like:

Code: Select all

[APPDIR]yourexecutablename.exe
This will create a shortcut in your application folder with the target set to the path to your executable. It should work even if your executable is installed using the "File Copy/Move" operation.

If you need further help, do not hesitate to contact us.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Brian1
Posts: 8
Joined: Thu Sep 24, 2009 4:57 pm

Re: Unable to add Shortcuts to a File Copy file

Thank you Gabriel for you response. I dealt with it a different way for now. I soon hope to get back to trying this that you've mentioned.

It sounds promising. I'll let you know if I get it to work that way.

Thanks again,

Brian1

Return to “Common Problems”