According to the Windows Installer documentation for the sourcedir property, it points to "the root directory containing the source file or source file of the installation package tree".
Thus, either you did not know that SourceDir is a predefined property of the Windows installer, or you are trying to copy an unpacked file from the installation media that contains msi. In the latter case, it would probably be wiser to install the file as a regular component so that it is deleted correctly.
Edit: I tested the "copy from installation media" script and it worked for me. In addition, I installed using
misexec /lvx* install.log /i mymsi.msi
and the log showed that the file is being copied. What does the magazine say in your case?
Edit2: While CopyFile worked for me, the best solution is to add uncompressed media to your wxs as follows:
<Media Id='2'/>
And then adapt the File element for the custom configuration file as follows:
<File Source='path\to\default\config.ini' Compressed='no' DiskId='2' />
This will force the installer to look for config.ini in the same folder as msi, combining the advantages of customization and clean uninstallation.
Wim coenen
source share