Hello! I want to set the InstallFolder variable depending if the actual System is 32 or 64 bit.
I have a Bootstrapper which installs several MSI and Exe Files depending if they are 32 or 64 bit (For this I use the attribute Installcondition="NOT VersionNT64"). I use the HyperlinkLicense -UI with the Options-Page where you can choose the Installdirectory. If the user doesn't enter a path, I want to set the InstallFolder to ProgramFilesFolder if the actual system is 32bit or to ProgramFiles64Folder if the actual system is 64bit. I thought I could handle this with a condition like in Exe/MSI-Packages, but there doesn't exist such an attribute for the element variable. Do you know a way to do this? My Bootstrapper looks like this: <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> <bal:WixStandardBootstrapperApplication ThemeFile="D:\thm.xml" LocalizationFile="D:\thm.wxl" LicenseUrl="" ShowVersion="yes" /> </BootstrapperApplicationRef> <Variable Name="InstallFolder" Type="string" Value="[ProgramFiles64Folder]" /> <Chain> <--!Some Exe/MSI-Packages...--> <MsiPackage Id="mySetup_32bit" SourceFile="$(var.my Setup_32bit.TargetPath)" Vital="yes" Permanent="no" Compressed="yes" Cache="yes" InstallCondition="NOT VersionNT64"> <MsiProperty Name="INSTALLDIR" Value="[InstallFolder]" /> </MsiPackage> <MsiPackage Id="mySetup_64bit" SourceFile="$(var.my Setup_64bit.TargetPath)" Vital="yes" Permanent="no" Compressed="yes" Cache="yes" InstallCondition="VersionNT64" > <MsiProperty Name="INSTALLDIR" Value="[InstallFolder]" /> </MsiPackage> </Chain> -- Infosim Germany - Singapore - North America Friedrich-Bergius-Ring 15, 97076 Wuerzburg, Germany Tel: +49 (0) 931 205 92 200 http://www.infosim.net -- Infosim GmbH & Co. KG - trade register Wuerzburg HRA 5400 / CEO Dr. Stefan K?hler Infosim Verwaltungs GmbH - trade register Wuerzburg HRB 8208 / CEO Dr. Stefan K?hler Check out the new StableNet(R) release 6.7.0! ------------------------------------------------------------------------------ "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