I'm using a WiX setup project to build an MSI package.

I want the MSI, to do a copy of the given file during the installation to the installation folder from the one, where the .msi file is running from.

I read on WiX a bit, and what I found is the <CopyFile... /> element supposed to do that.

Appreciate your help.

有帮助吗?

解决方案

Actually I've figured out what the issue is. The problem is that the SourceDirectory of the CopyFile element supposed to point to the Directory tag id. Instead, I've used SourceProperty attribute of the CopyFlie tag, and also defined a Property separately, which made the use of the CopyFile element correct. So it worked.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top