Thanks Sascha. 

I'll look into it.



________________________________
From: Sascha Beaumont <sascha.beaum...@gmail.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Wed, December 16, 2009 1:33:35 PM
Subject: Re: [WiX-users] How to launch application as Standard User while the 
installer ran as Admin

Check out http://blogs.msdn.com/rflaming/archive/2006/09/21/765665.aspx

You can probably use MSIREALADMINDETECTION to make the AdminUser
property behave as you require.


Sascha


On Thu, Dec 17, 2009 at 6:08 AM, little.forest <little.for...@ymail.com> wrote:
> Our installer needs Admin right to run. So a "Standard user" has to run the 
> installer "run as Admin". On the final page of the installer, we have a 
> "Launch application" option. So the user can check that option and launch the 
> application. Our application will ask a license key. The user inputs the 
> license key. But the key will be saved in "C:\Documents and 
> Settings\Administrator\Application Data" folder. Then the user exits the 
> application. And run the application again by using the normal "Standard 
> user" privilege. Then the application will ask the license key again, because 
> the license key wasn't saved in the right folder such as "C:\Documents and 
> Settings\JoeSmith\Application Data".
>
> How to resolve this problem?
>
> I'm thinking two options:
> 1. The user can "run as admin". But the application will be launched by using 
> "Standard user". This way, the license key input by the user will be saved in 
> the correct spot, namely, the users setting folder like "C:\Documents and 
> Settings\JoeSmith\Application Data". But how to do it?
> 2. If there is a way that the installer can detect this installation was from 
> "run as admin", then set a property. Then in the final page's launch 
> application option, we'll check this property. If it's set then we disable 
> the "launch application" option. This will stop the user "running the 
> application as admin" - they don't need to input license key two times. Is 
> there a way to detect if the installation "run as admin"?
>
> By the way, we're using the code example from Wix.chm "How To: Run the 
> Installed Application After Setup" section.
>
> Thanks in advance.
> /Brian
>
>
>      __________________________________________________________________
> Make your browsing faster, safer, and easier with the new Internet Explorer® 
> 8. Optimized for Yahoo! Get it Now for Free! at 
> http://downloads.yahoo.com/ca/internetexplorer/
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> 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 Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to