You are missing Impersonate="no" in your CustomAction element. On Vista, the
action runs impersonating the installing user, who (with UAC turned on) does
not have write permission under Program Files, since it is the user before the
elevation prompt.
If you set Impersonate="no", then the custom action will be called from SYSTEM,
which does have that right.
________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Benas [EMAIL PROTECTED]
Sent: Wednesday, October 17, 2007 11:33 AM
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