pmunsey
Posts: 5
Joined: Thu Jun 22, 2006 9:18 pm

User specific startup capabilities needed

I need my installer to provide a Start Menu->Startup link for one user, but not all users. I don't see any way to accomplish this with Advanced Installer. If I put a shortcut in the Startup folder, all users get the automatic startup, including the administrator who really doesn't care about our application. Is there a way to do this; I'd expect it to be a common need?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: User specific startup capabilities needed

Hi,

Windows Installer handles the Startup folder like this:
* per-machine installations use the "All Users\Start Menu\Programs\Startup\" folder
* per-user installations use the Startup folder of the current user ("<username>\Start Menu\Programs\Startup\")

Therefore, you can try using a per-user installation to create the link only for the user which runs the package. If you need to create the link only for a specific user, you can try this approach:
- in the Install Parameters page create a custom property and name it STARTUP
- set its value to "C:\"
- in the "Files and Folders" page create a new property-based folder by using the STARTUP property
- add the shortcut in it
- in the Custom Actions page create a new "Property set with Formatted" custom action under "InstallExecuteSequence" -> "Begin"
- set the "Property Name" field to STARTUP
- set the "Formatted Text" field to:

Code: Select all

[WindowsVolume]Documents and Settings\username\Start Menu\Programs\Startup
where you replace "username" with the user you want to use the shortcut. Note that a similar custom action should be created for Vista, with "Users" instead of "Documents and Settings". These custom actions can be conditioned with the VersionNT property.

Please note that you can see the "Begin" standard action by using the "Show Standard Action" button on the toolbar of the "Custom Actions" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”