[Mobies-commit] [commit] r3983 - in UDM/trunk/WiX: . Udm_bin

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Wed Jan 11 11:44:44 CST 2012


Author: ksmyth
Date: Wed Jan 11 11:44:44 2012
New Revision: 3983

Log:
Need SDK x64. Rename to ISIS Udm. x64: upgrade x86 installs. Uninstall Inno Setup installs. Dont set UDM_PATH to C:\Program Files\ on x64

Modified:
   UDM/trunk/WiX/Udm.wxs
   UDM/trunk/WiX/Udm_bin/Udm_bin.wxs
   UDM/trunk/WiX/Udm_inc.wxi

Modified: UDM/trunk/WiX/Udm.wxs
==============================================================================
--- UDM/trunk/WiX/Udm.wxs	Tue Dec 27 17:23:05 2011	(r3982)
+++ UDM/trunk/WiX/Udm.wxs	Wed Jan 11 11:44:44 2012	(r3983)
@@ -19,12 +19,35 @@
       <UpgradeVersion Minimum="$(var.VERSIONSTR)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
       <UpgradeVersion OnlyDetect="no" Minimum="1.0.0" IncludeMinimum="yes" Maximum="$(var.VERSIONSTR)" IncludeMaximum="no" Property="PREVIOUSFOUND"/>
     </Upgrade>
+    <?if $(sys.BUILDARCH)=x64 ?>
+    <Upgrade Id="D656A56A-F239-4B35-865C-840B1EA235E0">
+      <UpgradeVersion Minimum="$(var.VERSIONSTR)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED_X86"/>
+      <UpgradeVersion OnlyDetect="no" Minimum="1.0.0" IncludeMinimum="yes" Maximum="$(var.VERSIONSTR)" IncludeMaximum="no" Property="PREVIOUSFOUND_X86"/>
+    </Upgrade>
+    <?endif?>
+    <?if $(sys.BUILDARCH)=x64 ?>
+    <InstallExecuteSequence>
+      <Custom Action="WixExitEarlyWithSuccess" After="FindRelatedProducts">NEWERVERSIONDETECTED OR NEWERVERSION_DETECTED_X86</Custom>
+    </InstallExecuteSequence>
+    <?else?>
     <CustomActionRef Id="WixExitEarlyWithSuccess"/>
+    <?endif?>
 
     <InstallExecuteSequence>
       <RemoveExistingProducts After="InstallValidate" />
     </InstallExecuteSequence>
 
+
+    <Property Id='UNINSTALL_EXE32'>
+      <RegistrySearch Id='LocateUninstallExe32' Type='file' Root='HKLM' Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ISIS UDM_is1' Name='UninstallString' Win64='no'>
+        <FileSearch Id='LocateUninstallExe32File' Name='unins000.exe' />
+      </RegistrySearch>
+    </Property>
+    <CustomAction Id="RemovePreviousVersion32" Property="UNINSTALL_EXE32" ExeCommand="/VERYSILENT" Execute="deferred" Return="ignore" />
+    <InstallExecuteSequence>
+      <Custom Action="RemovePreviousVersion32" After="InstallInitialize">UNINSTALL_EXE32</Custom>
+    </InstallExecuteSequence>
+
     <Media Id='1' Cabinet='Udm.cab' EmbedCab='yes' />
 
     <Condition Message="This application is only supported on Windows XP or higher.">
@@ -61,6 +84,7 @@
       <?if $(sys.BUILDARCH)=x64 ?>
       <Merge Id="xerces_c_x64" Language="1033" SourceFile="xerces_c\xerces_c_x64.msm" DiskId="1" />
       <Merge Id="UdmDll_VS10_x64" Language="1033" SourceFile="UdmDll_VS10\UdmDll_VS10_x64.msm" DiskId="1" />
+      <Merge Id="Udm_SDK_x64" Language="1033" SourceFile="Udm_SDK\Udm_SDK_x64.msm" DiskId="1"/>
       <Merge Id="Udm_bin_x64" Language="1033" SourceFile="Udm_bin\Udm_bin_x64.msm" DiskId="1"/>
       <Merge Id="CRT100_x86" Language="0" SourceFile="$(env.ProgramFiles)\Common Files\Merge Modules\Microsoft_VC100_CRT_x86.msm" DiskId="1" />
       <Merge Id="MFC100_x86" Language="0" SourceFile="$(env.ProgramFiles)\Common Files\Merge Modules\Microsoft_VC100_MFC_x86.msm" DiskId="1" />
@@ -83,6 +107,7 @@
       <MergeRef Id='xerces_c_x64'/>
       <MergeRef Id='UdmDll_VS10_x64'/>
       <MergeRef Id='Udm_bin_x64' />
+      <MergeRef Id='Udm_SDK_x64' />
       <MergeRef Id='CRT100_x86' />
       <MergeRef Id='MFC100_x86' />
       <MergeRef Id='ATL100_x86' />

Modified: UDM/trunk/WiX/Udm_bin/Udm_bin.wxs
==============================================================================
--- UDM/trunk/WiX/Udm_bin/Udm_bin.wxs	Tue Dec 27 17:23:05 2011	(r3982)
+++ UDM/trunk/WiX/Udm_bin/Udm_bin.wxs	Wed Jan 11 11:44:44 2012	(r3983)
@@ -66,8 +66,10 @@
       </Component>
       <Component>
         <File Source="..\Build\Win32\VC10\Release\Udm.exe" />
+        <?if $(sys.BUILDARCH)=x86 ?>
         <Environment Id="UDM_PATH" Action="set" System="yes" Name="UDM_PATH" Value="[INSTALLDIR]" />
         <Environment Id="PATH" Action="set" System="yes" Name="PATH" Value="[bin]" Part="last" />
+        <?endif?>
       </Component>
       <Component>
         <File Source="..\Build\Win32\VC10\Release\UdmCopy.exe" />

Modified: UDM/trunk/WiX/Udm_inc.wxi
==============================================================================
--- UDM/trunk/WiX/Udm_inc.wxi	Tue Dec 27 17:23:05 2011	(r3982)
+++ UDM/trunk/WiX/Udm_inc.wxi	Wed Jan 11 11:44:44 2012	(r3983)
@@ -11,7 +11,7 @@
   <?define ProgramFilesNativeFolder='ProgramFiles64Folder'?>
   <?define SystemFolderNative='System64Folder'?>
   <?define Win64='yes'?>
-  <?define ProductName='Udm (64 bit)'?>
+  <?define ProductName='ISIS Udm (64 bit)'?>
   <?define Release='x64\Release'?>
   <?define lib='lib\x64'?>
   <?define bin='bin\x64'?>
@@ -27,7 +27,7 @@
   <?define ProgramFilesNativeFolder='ProgramFilesFolder'?>
   <?define SystemFolderNative='SystemFolder'?>
   <?define Win64='no'?>
-  <?define ProductName='Udm'?>
+  <?define ProductName='ISIS Udm'?>
   <?define Release='Release'?>
   <?define lib='lib'?>
   <?define bin='bin'?>


More information about the Mobies-commit mailing list