lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Where is the user startup folder?

Hi,
I want to put a shortcut to a file in the user startup folder.
When I use the path to Application Data\Roaming\Microsoft\Windows\Start Menu\Programs\StartupIt puts the shortcut in the all users startup folder.
Any suggestions?
See attached is the screenshot of the path that I use.
Thanks!
http://www.sendspace.com/file/10q0lg
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Where is the user startup folder?

Hello,

Did you try placing it under Start Menu->Startup folder?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Where is the user startup folder?

Hi,
Yes I tried also that. See screenshots:
http://www.sendspace.com/file/s70de2
And
http://www.sendspace.com/file/fxc5nf

In addition, I sent to support at advancedinstaller my AIP file.

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

Re: Where is the user startup folder?

Hello,

The issue lies with the fact that your Install Parameters->Installation Type field is set to "Per machine if admin, per user otherwise". If you are installing it per-machine, the startup folder will evaluate to a per-machine location, which means the "all users" folder. A per-user installation will guarantee installation in the per-user startup folder. Perhaps setting your Installation Type to "Per-user with administrator privileges required" would be more appropriate, if your installer still needs elevation.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Where is the user startup folder?

Hi,
Now it doesn't put it in the All users startup folder. It puts both files in the User startup folder.

I want to put 1 file in the User startup folder and 1 file in the All Users folder.

Start Menu - Programs - Startup: Puts in the User startup folder
Start Menu - Startup: Doesn't put at all
Application Data - Microsoft - Windows - Start Menu - Programs - Startup: Puts in the User startup folder
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Where is the user startup folder?

Any help? Please!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Where is the user startup folder?

Hi,

Unfortunately this is not supported by Windows Installer directly. You cannot place files in both startup folders during the same install. However, you can try this:
- in "Install Parameters" page make your installation type "Per-machine"
- in "Files and Folders" page add the shortcut to "Start Menu\Startup"
- create a custom action which copies this shortcut into the current user startup folder

This way your installer will create the shortcut for all users and the custom action only for the current user.

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

Return to “Common Problems”