Re: [WiX-users] Custom action cannot find installed files

2011-11-21 Thread Wilson, Phil
Are you really specifying the entire path? It seems like you are not. There's 
no reason for Windows to change a fully specified path, but if you specify just 
a file name Windows will use the current directory and it obviously has no way 
of knowing that you mean the ProgramFiles folder.  It may be that something 
else is going on, maybe using a property you obtained in the UI sequence but 
didn't list in SecureCustomProperties, so it disappeared. 

Phil Wilson 


-Original Message-
From: Marcel Wouters [mailto:marcelwout...@msn.com] 
Sent: Saturday, November 19, 2011 3:00 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action cannot find installed files

I have made a custom action to update a xml file which is installed. I'm 
passing the path of the file to the custom action with CustomActionData. 
This works fine, but when I try to open the xml file in the custom action 
the action is looking in the wrong directory.





NOT 
Installed


For example the path of the xml file is: C:\Program 
Files(x86)\MyProgram\file.xml but the action is looking at 
C:\Windows\Installer\.TMP\C:\Program Files(x86)\MyProgram\file.xml

If I debug the custom action the value of the string is 'C:\Program 
Files(x86)\MyProgram\file.xml' but when opening the xml file with for 
example the XDocument.Load method the path is prefixed with 
C:\Windows\Installer\***.TMP\




--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom action cannot find installed files

2011-11-19 Thread Marcel Wouters
I have made a custom action to update a xml file which is installed. I'm 
passing the path of the file to the custom action with CustomActionData. 
This works fine, but when I try to open the xml file in the custom action 
the action is looking in the wrong directory.





NOT 
Installed


For example the path of the xml file is: C:\Program 
Files(x86)\MyProgram\file.xml but the action is looking at 
C:\Windows\Installer\.TMP\C:\Program Files(x86)\MyProgram\file.xml

If I debug the custom action the value of the string is 'C:\Program 
Files(x86)\MyProgram\file.xml' but when opening the xml file with for 
example the XDocument.Load method the path is prefixed with 
C:\Windows\Installer\***.TMP\




--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users