I have an MSI, which will be delivered through an external application. The external app has the ability to set install directory which will be translated to msiexec /i TARGETDIR="C:\abc". This works perfectly fine.
The issue I have is that, when the user wants the install to occur in the default location through the external app, then nothing is passed to msiexec and the installation occurs in C:\ drive or the drive with the largest volume. How do I change that to say C:\ProgramFiles\appName\abc? Here is my relevant Product.wxs <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFiles64Folder"> <Directory Id="Root" Name="appName"> </Directory> </Directory> Having this option ignores the external app and the msiexec's TARGETDIR param. So my question is, how can I do something like this in WiX: if TARGETDIR then use it if no TARGET DIR then <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFiles64Folder"> <Directory Id="Root" Name="appName"> </Directory> </Directory> Thanks in advance. -- ----------- Prashanth ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users