[wix-users] Problem with Target Directory
Marco Wittwer
marco at alphasoft.ch
Tue Dec 8 23:57:55 PST 2015
Hello
I have a problem with the target directory. Here a part of my Product.wxs:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MySoftware">
<Component Id="ProductComponent" Guid=" CA05F0CD-42DB-4DF9-8750-EA91F40A9365">
<File Source="$(var.MySoftware.TargetDir)mysoftware.dll" />
When when I call the msi with the command
msiexec /i MyProduct.msi
it will be installed to C:\Program Files (x86)\MySoftware\
But when I call it via the command
msiexec TARGETDIR="C:\Temp" /i MyProduct.msi
it will not be installed to C:\Temp
What is the problem?
Thank you for helping me.
Marco
More information about the wix-users
mailing list