I want my installer to make the program start on windows startup. At
the moment I'm just adding a shortcut to the program to the Startup
folder in the Start menu, which works fine on Windows XP but fails on
Vista.
Is there a "proper" way to do this? Or a work-around so that the
program will start on Vista startup?
The code in the wxs file is this:
<Directory Id="StartupFolder" Name="Startup">
<Component Id="StartupMenuItem" Guid="MYGUID">
<util:InternetShortcut Id="TrayIconStartupShortcut"
Name="AppName" Target="[INSTALLDIR]app.exe" Directory="StartupFolder"/>
<RemoveFolder Id="RemoveStartupItems" On="uninstall"/>
<RegistryKey Root="HKCU" Key="SOFTWARE\A\B
\StartupMenuitem">
<RegistryValue Type="string" Value="Default Value"/>
</RegistryKey>
</Component>
</Directory>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users