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
FOLLOW US
Get the latest news in Application Packaging