Quantcast

Bootstrapper is not detecting the msi already installed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bootstrapper is not detecting the msi already installed

balaji2003engg
This post has NOT been accepted by the mailing list yet.
My bootstrapper is installing the .Net framework 4.0 and msi. It is working perfectly
If I try to install the new build of  boots trapper then it is not detecting that already that msi is installed and it is showing  the another instance in ARP. I want to detect the msi is  already installed and not to allow the installer. Can you please help me to fix the issue.


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
 xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" 
 xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" 
 xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Bundle Name="productxxx $(var.ProductVer)" Version="5.1" Manufacturer="company " UpgradeCode="{xxxxxxxxxxxxxxxxxxxxxx}"  IconSourceFile="$(var.BINARYPATH)\WorkingWiX\Icon\_853F67D554F05449430E7E.exe" >
 
   <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
      <bal:WixStandardBootstrapperApplication
        LicenseFile="$(var.BINARYPATH)\WorkingWiX\Binary\License.rtf"
                LogoFile="$(var.BINARYPATH)\WorkingWiX\Icon\_853F67D554F05449430E7E.exe"
                ThemeFile="$(var.BINARYPATH)\WorkingWiX\Binary\RtfTheme.xml"
                LocalizationFile="$(var.BINARYPATH)\WorkingWiX\Binary\RtfTheme.wxl"
                />
       
       
    </BootstrapperApplicationRef>
 
   
   <Variable Name="InstallFolder" Type="string" Value="[WindowsVolume]RiskModel\RiskModel 5.0"/>
     
    <Chain>
     
      <PackageGroupRef Id="Netfx40FullPackage" />
      <PackageGroupRef Id="PG.WIC"/>
      <PackageGroupRef Id="PG.MSI"/>
    </Chain>
  </Bundle>
  <Fragment>
   
        <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" />
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" />
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Windows Imaging Component" Value="InstalledVersion" Variable="WICinstalled" />
       
   
    <PackageGroup Id="Netfx40FullPackage">
      <ExePackage Id="Netfx40Xxx" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q"
          SourceFile="..\buildscripts\WorkingWiX\redist\DotNetFX40\dotNetFx40_Full_x86_x64.exe"
          DetectCondition="(Netfx4FullVersion&gt;=&quot;4.0.30319&quot;) AND  (Netfx4x64FullVersion&gt;=&quot;4.0.30319&quot;)"
          InstallCondition="(VersionNT &gt;= v6.0 OR VersionNT64 &gt;= v6.0) AND (NOT (Netfx4FullVersion &gt;= &quot;4.0.30319&quot; OR Netfx4x64FullVersion &gt;= &quot;4.0.30319&quot;))" />
   </PackageGroup>
       
 
        <PackageGroup Id="PG.WIC">     
          <ExePackage Id="EP.wic_x86_enu" Cache="no" Compressed="no"  PerMachine="yes" Permanent="yes" Vital="no"  
                 SourceFile="..\buildscripts\WorkingWiX\redist\WindowsImagingComponent\wic_x86.exe"
                 InstallCondition="(NOT VersionNT64)AND (NOT WICinstalled)"
                 InstallCommand="/q /norestart">
          </ExePackage>
        </PackageGroup>
   
    <PackageGroup Id="PG.MSI" >
    <MsiPackage Id="Installer" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" ForcePerMachine="yes" SourceFile="$(var.installerPath)">
      <MsiProperty Name="TARGETDIR" Value="[InstallFolder]" />
    </MsiPackage>
    </PackageGroup>
  </Fragment>
</Wix>
Loading...