[wix-users] Problem with Target Directory

sampat magi ssmcs060 at gmail.com
Wed Dec 9 01:28:38 PST 2015


Hi,
use this

msiexec /i MyProduct.msi INSTALLFOLDER="C:\Temp"

Regards,
sampat

On Wed, Dec 9, 2015 at 1:27 PM, Marco Wittwer <marco at alphasoft.ch> wrote:

> 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
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list