I'm trying to install an MSI file we wrote. The installation is a WIX installation and it copies a text file to C:\ProgramData\MyFolder, and then run a CustomAction - an exe file that writes in this file:
<CustomAction Id="Action1" FileKey="Action1.exe" ExeCommand="Action1"[INSTALLDIR]Prog" "Arg1"" Return="ignore" Execute="deferred" /> When I try to install the MSI with a user that is not "Administrator" user, the installation fails when it's trying to write to the file in ProgramData. I can write to this file manually using this user, only the MSI / exe fails. It works fine on Windows 7 and Windows XP, but not on Windows 8 and Server 2012R2. I can't always use Administrator user because I need to install the program on customer's computers and I can't access their Administrator user. So I need a solution without using Administrator user. What can I do? Can I change something in the WIX or EXE that will solve the problem? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/MSI-runs-an-EXE-and-it-cannot-write-to-a-file-in-programdata-folder-in-windows-8-tp7595915.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users