Thanks Neil, Do you know of any other ways that my user could edit these files and for them to be accessed via the MSI? I can propose a different solution if I am able to create it.
Natalie -----Original Message----- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: 24 August 2012 10:41 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] CopyFiles at the start oif installation If I understand correctly you are trying to copy files at install time from the same folder as the MSI - as far as I am aware this is not possible, there may be a way to find the MSI source folder but I don't know what it is (TARGETDIR is not the location of the MSI) and if you did find it it wouldn't work for upgrades or repairs. If this is a fixed requirement I would suggest Windows Installer is not appropriate. Neil -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 24 August 2012 10:29 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] CopyFiles at the start oif installation Hi, Majorly stuck on this issue. I have a INI and REG file stored in the same location as my MSI file which is TARGETDIR as far as I am aware. I have to copy these files to C:\TEMP at the start of the install, I know WIX can use INI and REG files but this is a requirement that I have to meet. I have tried CopyFile function, however I am aware that the directories are not set until InstallInitialize and this is too late. I then tried to create a C++ Custom Action to locate the file stored in TARGETDIR but again when I tried to run it at the beginning of installation it could not find the files because TARGETDIR has not been initialized yet. I would greatly appreciate it if someone could help me as I have been searching for methods and have come up with none. Kind Regards, Natalie Carr ---------------------------------------------------------------------------- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users