Moving shortcut to different Feature - 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!

skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Moving shortcut to different Feature

Hi there...

I am using Advanced Installer 7.6 with Enterprise Licence.

I just had a quick question relating to shortcuts.

I have an MSI with 1 feature (FEATURE A)

I have a bunch of files in there and I have created Shortcuts to some of them by using "New Shortcut to -> Installed File" within Files and Folders.

That all works fine ... but now I want to make the installation of the Shortcuts optional.

So I created FEATURE B and then was hoping just to drag the shortcut within the Origanization view from one feature to the other... but that doesn't seem possible.

Would you be able to let me know how best to go about doing this?

Thanks!

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

Re: Moving shortcut to different Feature

Hi Jeff,

The issue is simple. Your shortcut is a shortcut to installed file. These can not be moved around. Simply create a shortcut to external file so it can be moved within the Organization page.

Please let me know if this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Moving shortcut to different Feature

Thank you for your reply Gabriel.

I went into File and folders and into Application Shortcut Folder and then New Shortcut To -> External File.

I set it with a name of "My Shortcut" and shortcut target of APPDIR\Myfile.exe and working directory of APPDIR.

Now I go into Organisation looking for my "My Shortcut" or similar so I can move it around... I couldn't find it. So I then went back to Files and Folders - right clicked on "My Shortcut' and chose Go to Component. This took me back to Organization but the Shortcut seems to have attached itself to a random dll in my list of files in my main feature.

I then try to drag my "My Shortcut" to my newly created feature - but because there are no files in that feature I am unable to drag it onto something.

Obviously I am doing something wrong here...

Could you please give me some more advice?

Thanks

Jeff
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Moving shortcut to different Feature

Hi again,

I did a bit more research and found the following in the help HowTOs

http://www.advancedinstaller.com/user-g ... tcuts.html

I followed the first half of the instructions from that article - that is create a registry entry (regA), put that in my feature, then create a shortcut to external file and add the shortcut to the registry component (regA).

When I run the MSI and select the new feature... the registry entries are created but the shortcuts don't get installed.

I thought I would rule out my existing package so I created a new MSI with just 2 registry entries and 2 features. I put reg1 in feature1 and reg2 in feature2. On install that is fine. I then created 2 new shortcut to external files - short1 and short2. I then went to the features and attached short1 to reg1 and short2 to reg2. I then installed the MSI but I still don't get the shortcuts. I get Folder created in th All Programs - but no shortcuts.

Any further guidance would be appreciated.

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

Re: Moving shortcut to different Feature

Hello,

Please send your .aip project file to support at advancedinstaller dot com so we can further investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Moving shortcut to different Feature

Hello,

I have received your .aip project file. It appears the shortcuts you created did not install themselves because their targets were invalid. The shortcuts need to have valid targets for them to be installed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Moving shortcut to different Feature

Thanks for that Gabriel.

I will investigate my .aip further and come back to you.
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Moving shortcut to different Feature

Hi Gabriel,

I added some files (2 x batch files) to that practice project and then changed the 2 shortcuts to point to the APPDIR\<new file name>. The 2 new files I created are installed and the registry entries are installed and the folder for the shortcuts in All programs is created but still no shortcuts are installed.

Obviously there is just something that I am missing - but can't seem to pin point it. I have tried moving the shortcuts arround and attaching them to other things such as the "SHORTCUTDIR" but no luck. I have sent the .aip though again if you could have another look I would appreciate that.

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

Re: Moving shortcut to different Feature

Hi Jeff,

The targets you specified in your .aip are still not valid:
instead of "APPDIR\myfile1.bat" which is your current setting, you will have to use "[APPDIR]myfile1.bat".

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Moving shortcut to different Feature

My Hero!

Thanks Gabriel. I was just copying that from the properties of a shortcut to Internal File - that is where I went wrong!

Thanks for getting to the bottom of this for me - very much appreciated.

Regards

Jeff

Return to “Common Problems”