Create a directory with the ID set to the same as the MSIProperty name, i.e. INSTALLLOCATION. When the bootstrapper passes the property to the MSI, it overrides the directory's default path in the MSI
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="CompanyProgramsDir" Name="Company PLC"> <Directory Id="INSTALLLOCATION" Name="Productv1.0"> -----Original Message----- From: Sam Boman [mailto:s...@samb.se] Sent: 15 February 2013 10:32 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Passing Location from Bootstrapper to MSI I want to pass the Options Location in the Bootstrapper UI ( WixStandardBootstrapperApplication.RtfLicense) to the MSI: In Bundle: <Variable Name="InstallFolder" Type="string" Value="[ProgramFilesFolder]The Application"/> <Chain> <PackageGroupRef Id="NetFx40ClientRedist"/> <MsiPackage Id="MyApplication" SourceFile="$(var.MsiProject.TargetPath)"> <MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]"/> </MsiPackage> </Chain> How to pickup this property in the MSI (I go for a MSI without a UI, and let the bootstrapper be the only visible UI to the user)? ----------------------------------------------------------------------------- - Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users