Running Wix v 3.0.4721. I fire off my msi with my own bootstrapper code, and I would like to be able to have my installation go to a different drive (other than the system drive) via a commandline parameter that is passed to msiexec. Here is a snippet of the wxs code I’m currently using:
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="$(var.PrgmFilesFolder)"> <Directory Id="CompanyNameFolder" Name="!(loc.Property_CompanyName)"> <Directory Id="INSTALLLOCATION" Name="!(loc.Property_ProductName)"> <Directory Id="InstallBin" Name="Bin"> <!-- This next element merely creates empty folders and removes them on uninstall --> <Directory Id="MailfilesFolder" Name="Mailfiles"> </Directory> <Directory Id="WorkFolder" Name="Work"> </Directory> </Directory> <!-- This next element merely creates empty folders and removes them on uninstall --> <Directory Id="LogFolder" Name="Log"> </Directory> </Directory> </Directory> </Directory> <Directory Id="ProgramMenuFolder" Name="Programs"> <Directory Id="LSShortcutMenuDir1" Name="!(loc.Property_CompanyName)"> <Directory Id="LSShortcutMenuDir2" Name="!(loc.Property_ProductName)"/> </Directory> </Directory> <Directory Id="DesktopFolder" Name="Desktop"/> </Directory> I’ve tried passing TARGETDIR=X:\ (where ‘X’ is the desired drive letter) on the cmdline to msiexec, but it doesn’t change anything – everything still gets installed to ‘C:’. Next, I tried passing INSTALLLOCATION=X:\ on the cmdline, but that only managed to place the Bin and Work folders on drive ‘X’. My installation provides no UI at all; I want to have complete control over the directory structure created (as in X:\Program Files\MyCompany\MyProduct) but I do want to give the user the option of installing to a drive letter other than ‘C’. Is there an easy way to do this within Wix??? Thanks in advance. Rob Jones ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users