Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Basic MSI - copy file


2 replies to this topic

kxa

kxa
  • Full Members
  • 2 posts

Posted 18 March 2008 - 18:03

Hi, I need help with the following. I would like to be able to copy some config files from the location where the msi is being launched from to the [INSTALLDIR]

e.g The msi file is in c:\temp and the config file is also in c:\temp
The MSI needs to copy the config file to the [INSTALLDIR] location.

Inside my function, SourceDir is coming up as the temp location where the MSI expanded - C:\Documents and Settings\<user>\Local Settings\Temp\guid
The [INSTALLDIR] path is correct.

How do I get the location where the msi currently resides?
thanks.



KathyMorey

KathyMorey
  • Full Members
  • 111 posts

Posted 19 March 2008 - 13:11

You might want to look into the OriginalDatabase property.
Kathy Morey
Synergy Software Engineer
ProfitStars, a Jack Henry Company
kmorey@profitstars.com

kxa

kxa
  • Full Members
  • 2 posts

Posted 19 March 2008 - 14:52

Thanks Kathy..


I got it to work by creating a custom action to set the [SourceDir] property and then creating another custom action to call the function that uses this property.