On install I want to optionally copy some .ini files from SOURCEDIR to TARGETDIR which means from the directory the .msi file is located to the destination folder the app is setup to.
I did <CopyFile Id="CopyIniFile" DestinationProperty="INSTALLDIR" SourceProperty="SOURCEDIR" SourceName="Dreem15.ini" Delete="no" />
but it seems it's not doing anything. The log file is not helping much.
I've been successful in doing a much more elaborate scenario with CopyFile and I'm baffeled by this simple one.
Edit: I have these rows in MoveFile table:
|FileKey |Component |SourceName |SourceFolder|DestFolder|Options |CopyIniFile |CoAppLicAndIni|Dreem15.ini |SOURCEDIR |INSTALLDIR|0 |MoveDataFile|CoAppLicAndIni|Dreem10_Personal.mdf|DB_DIR10 |INSTALLDIR|0
and the second one is working. DB_DIR10
is searched in registry like this
<Property Id="DB_DIR10"> <RegistrySearch Id='DbDirSearch10' Type='raw' Root='HKLM' Key='Software\$(var.CompanyName)\$(var.MsdeInstance)' Name='Dreem10_Personal' /> </Property>