For some reason, my WIX installer does not seem to work when I run this command:
msiexec.exe /i "C:\Users\XXX\XX-Debug-x64.msi" TARGETDIR="C:\Installation Test1" /qn
I get the Windows Installer help box showing what commands I can use. If I run the installer manually, I can change the destination path to whatever I want and it'll install correctly. I don't understand why this isn't happening through msiexec powershell? Using WIX 3.5 as an FYI.
I have tried TARGETDIR, INSTALLDIR, INSTALLPATH... nothing works
My wix fragment is here:
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- Start Menu Directory -->
<Directory Id="ProgramMenuFolder">
<Directory Id="InstallProgramMenuFolder" Name="!(loc.ProductName_Folder)"/>
</Directory>
<?if $(var.Platform)=x64?>
<!-- Program files folder -->
<Directory Id="ProgramFiles64Folder">
<Directory Id="APPLICATIONROOT" Name="!(loc.ProductName_RootFolder)">
<Directory Id="INSTALLFOLDER" Name="!(loc.ProductName_Folder)" />
</Directory>
</Directory>
<?else?>
<!-- Program files folder -->
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOT" Name="!(loc.ProductName_RootFolder)">
<Directory Id="INSTALLFOLDER" Name="!(loc.ProductName_Folder)" />
</Directory>
</Directory>
<?endif?>
</Directory>
All that happens is this gets brought up
Extra snipped from the log
MSI (s) (68:E8) [14:50:34:401]: Note: 1: 2205 2: 3: Condition
MSI (s) (68:E8) [14:50:34:401]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:\Installation Test'. Its new value: 'C:\Installation Test\'.
MSI (s) (68:E8) [14:50:34:401]: PROPERTY CHANGE: Adding InstallProgramMenuFolder property. Its value is 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Bob Bob\'.
MSI (s) (68:E8) [14:50:34:401]: PROPERTY CHANGE: Adding APPLICATIONROOT property. Its value is 'C:\Program Files\Bob\'.
MSI (s) (68:E8) [14:50:34:401]: PROPERTY CHANGE: Adding INSTALLFOLDER property. Its value is 'C:\Program Files\Bob\Bob Bob\'.
MSI (s) (68:E8) [14:50:34:401]: PROPERTY CHANGE: Adding dir0B6DC86EBAB610CFD56B476ECDD18AF2 property. Its value is 'C:\Program Files\Bob\Bob Bob\Config\'.
MSI (s) (68:E8) [14:50:34:401]: Target path resolution complete. Dumping Directory table...
MSI (s) (68:E8) [14:50:34:401]: Note: target paths subject to change (via custom actions or browsing)
MSI (s) (68:E8) [14:50:34:401]: Dir (target): Key: TARGETDIR , Object: C:\Installation Test\
MSI (s) (68:E8) [14:50:34:401]: Dir (target): Key: WindowsFolder , Object: C:\WINDOWS\
MSI (s) (68:E8) [14:50:34:401]: Dir (target): Key: ProgramMenuFolder , Object: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
MSI (s) (68:E8) [14:50:34:401]: Dir (target): Key: InstallProgramMenuFolder , Object: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Bob Bob\
MSI (s) (68:E8) [14:50:34:402]: Dir (target): Key: ProgramFiles64Folder , Object: C:\Program Files\
MSI (s) (68:E8) [14:50:34:402]: Dir (target): Key: APPLICATIONROOT , Object: C:\Program Files\Bob\
MSI (s) (68:E8) [14:50:34:402]: Dir (target): Key: INSTALLFOLDER , Object: C:\Program Files\Bob\Bob Bob\
MSI (s) (68:E8) [14:50:34:402]: Dir (target): Key: dir0B6DC86EBAB610CFD56B476ECDD18AF2 , Object: C:\Program Files\Bob\Bob Bob\Config\