Using the start group is probably failing on Vista because your problem is
requesting to be run elevated. I think you will have the same problem even if
you use the Run key.
Neil
Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
________________________________
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Thu 20/11/2008 23:54
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Making a program start on Windows startup?
Use the Run registry key.
-----Original Message-----
From: Aaron Deadman [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2008 15:52
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Making a program start on Windows startup?
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users