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

Reply via email to