Does it fail even if you run your setup elevated?  If you’re able to run your 
MSI non-elevated, it’s probably using the compatibility features to write to a 
mirror program files directory under the user profile, not the real one.  If 
you run your msi, does Windows ask if you want to elevate?  If not (and you 
want to force it), a simple way to do it would be to generate a 
bootstrapper-one of the checks that the OS does to determine if you need 
elevation is to check if the app is named “setup.exe”.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benas
Sent: Wednesday, October 17, 2007 2:33 PM
To: WiX-users
Subject: [WiX-users] WIX2 Windows Vista

 

Hello,

I have custom action in C++ dll that opens installed file and modifies it.
But in Windows Vista if file needs admin rights(for example if file is under 
Program Files tree) opening file for writing fails.

I'm trying to use
<CustomAction Id="SettingUpConfigFile" BinaryKey="InstallHelper" 
DllEntry="SetUpConfig" Execute='deferred'/>

<Custom Action="SettingUpConfigFile" After="PublishProduct">NOT 
Installed</Custom> 


Any ideas how to solve this problem?



Thanks for helping,
Benas 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to