This link:

http://msdn.microsoft.com/en-us/library/bb325654.aspx

recommends that you write a non-Administrator toolbar app (the Run key)  that 
starts and prompts the user, and then launches a requiresAdministrator 
manifested program with ShellExecute.  I don't think you can defeat the Vista 
security that prevents administrator code from launching automatically at logon 
(and that includes the Run registry key).

The RunOnce key probably won't help - it's intended for multi-part 
installations and won't get run if a non-administrator logs on.

Phil Wilson

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2008 5:25 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Making a program start on Windows startup?

Sorry I missed that you were just talking about running your installer at 
startup, presumably only once to complete an installation. In that case, the 
Run registry key (HKCU/Software/Microsoft/Windows/CurrentVersion/Run or 
something like that, off the top of my head) is probably your best bet. Good 
luck.

>From what I've read (but not verified), Vista still supports setting programs
that require elevation to run at startup--however they will start in a limbo
state that is not actually running and display some passive notification (in
the taskbar or system tray) indicating that the user must authorize them before
they will run, but the good thing is that they won't take over the desktop at
every boot, so can be theoretically ignored.

That said, it's still not the best design to do this at every startup. Although
I don't know much about them, Services might be a better option, which will run
at system startup if set to.


====
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

-------------------------------------------------------------------------
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

Reply via email to