Shortcut for all user or current user - 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!

arnaud.humilier
Posts: 12
Joined: Wed May 19, 2010 10:19 am

Shortcut for all user or current user

Hello,

I was looking for an option to specify if a shortcut can be defined with the ption "for all user" or "for this user only".
I've seen that it's possible to define this option for all the installation process (per-user or per-machine) but this is not what I want to do. I need just this option for the desktop shortcut.

This is a common feature I saw many times on installers.

Could you help me ?

Many thanks,

Arnaud.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Shortcut for all user or current user

Hi Arnaud,

If you need a shortcut installed for a specific user account on the desktop, depending on what the user chooses at the install time of your setup, you should add a control on a custom or existing dialog that sets the install condition of your shortcut's component.

First you can try to add a shortcut in two locations( per-user and per-machine ) from the Files and Folder Page. For example on Windows Vista the location for the per-machine desktop is:

Code: Select all

C:\Users\Public\Desktop
and this location will be automatically resolved by Windows Installer in the Desktop folder on the Files and Folders page since your whole package is set per-machine.
You can add the per-user( e.g. Arnaud user also for Vista ) as a property based folder:

Code: Select all

C:\Users\Arnaud\Desktop
For more information on how to achieve this, please follow this article.
In the end you can add a radio button group who's public property is also set as "Condition" for each shortcut's component in the Organization Page. This way when a radio button is selected, its corresponding shortcut component will be installed in the specified location.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”