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

Reply via email to