[wix-users] Problem with Target Directory

Marco Wittwer marco at alphasoft.ch
Wed Dec 9 02:05:21 PST 2015


Ah, ok. Thank you.

-----Ursprüngliche Nachricht-----
Von: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Im Auftrag von sampat magi
Gesendet: Mittwoch, 9. Dezember 2015 10:29
An: WiX Toolset Users Mailing List
Betreff: Re: [wix-users] Problem with Target Directory

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/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list