diff options
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Packaging/WiX/Swift.wxs | 32 | ||||
-rw-r--r-- | Swift/QtUI/SConscript | 2 |
2 files changed, 28 insertions, 6 deletions
diff --git a/Swift/Packaging/WiX/Swift.wxs b/Swift/Packaging/WiX/Swift.wxs index 782f425..6f689c8 100644 --- a/Swift/Packaging/WiX/Swift.wxs +++ b/Swift/Packaging/WiX/Swift.wxs @@ -14,7 +14,10 @@ <Directory Id='TARGETDIR' Name='SourceDir'> + <!-- Disabling CRT merge module, because it's not working + <Merge Id="CRT" DiskId="1" Language="0" SourceFile="$(var.VCCRTFile)"/> + --> + <Directory Id='ProgramFilesFolder' Name='PFiles'> <!--<Directory Id='INSTALLDIR' Name='Swift'> - </Directory>--> </Directory> @@ -31,13 +34,9 @@ <Directory Id="DesktopFolder" Name="Desktop" /> - - <Merge Id="CRT" DiskId="1" Language="1033" SourceFile="$(var.VCCRTFile)"/> </Directory> <Feature Id='Core' Level='1' Title='Swift' Description='All necessary Swift files' Display='expand' ConfigurableDirectory='INSTALLDIR' AllowAdvertise='no' Absent='disallow'> <ComponentGroupRef Id='Files' /> - <!--<ComponentRef Id='Manual' />--> - <MergeRef Id="CRT"/> </Feature> @@ -53,4 +52,27 @@ <Icon Id="Swift.exe" SourceFile="Swift.exe" /> <Property Id="ARPPRODUCTICON" Value="Swift.exe"/> <!-- The icon in the "Programs" dialog --> + + <!-- + VC Redistributable + --> + <!-- Disabling CRT merge module, because it's not working + <Feature Id='CRT' Title='Visual C++ Runtime' AllowAdvertise='no' Display='hidden' Level='1'> + <MergeRef Id="CRT"/> + </Feature> + --> + <Binary Id="CRT.exe" SourceFile="$(var.VCCRTFile)"/> + <CustomAction Id="InstallCRT" Impersonate="yes" Return="ignore" Execute="immediate" BinaryKey="CRT.exe" ExeCommand="/qb"/> + <Property Id="CRT_INSTALLED" Secure="yes"> + <RegistrySearch Id="VC2008SP1REDIST_X86Value" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A25302D-30C0-39D9-BD6F-21E6EC160475}" Name="Publisher" Type="raw" Win64="no" /> + </Property> + <!-- The following snippet should work for VC 2010 + <Upgrade Id='{1F4F1D2A-D9DA-32CF-9909-48485DA06DD5}'> + <UpgradeVersion OnlyDetect='yes' Property='CRT_INSTALLED' Minimum='10.0.40219' IncludeMinimum='yes'/> + </Upgrade> + --> + <InstallUISequence> + <Custom Action="InstallCRT" After="ProgressDlg">Not Installed And Not CRT_INSTALLED</Custom> + </InstallUISequence> + </Product> </Wix> diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript index 70a1038..5fb238a 100644 --- a/Swift/QtUI/SConscript +++ b/Swift/QtUI/SConscript @@ -342,5 +342,5 @@ if env["PLATFORM"] == "win32" : wixvariables = { - 'VCCRTFile': env.get("vcredist", "c:\\Program Files\\Common Files\\Merge Modules") + "\\Microsoft_VC90_CRT_x86.msm", + 'VCCRTFile': env["vcredist"], # FIXME: Not including patch version, but that shouldn't be # a problem. It just allows downgrading between development versions |