Hi,

I created following bootstrapper ,it install perfectly. now I am looking to
upgrade the msi installed by my boostrapper . if I give same upgrade and
greater version , it does n't update my msi instead create two entries in
control panel . please advise .

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";  xmlns:bal="
http://schemas.microsoft.com/wix/BalExtension"; xmlns:util="
http://schemas.microsoft.com/wix/UtilExtension"; >
  <?define RESPATH = "Release Path"?>
  <?define VERSION = "2.05.17.0"?>

  <?if $(var.Platform) = x64 ?>
  <?define Win64 = "yes" ?>
  <?else ?>
  <?define Win64 = "no" ?>
  <?endif ?>
  <Bundle  Name="productname" Version="$(var.VERSION)" Manufacturer="man"
 IconSourceFile="$(var.RESPATH)\icon.ico"
UpgradeCode="55697084-0fbd-4e6c-ac1f-2d2779f1d05b"
SplashScreenSourceFile="Resource\Splash.bmp"   >


    <!-- This will delay the start by the time specified (in milloseconds)
-->
    <Variable Name="DelayStart" Type="numeric" Value="1000" />

    <BootstrapperApplicationRef
Id="WixExtendedBootstrapperApplication.HyperlinkLicense">
      <!-- Note: the name attibute must be "bafunctions.dll" but the source
can be anything -->
      <Payload SourceFile="Resource\License.htm" />
      <Payload Name="bafunctions.dll" Compressed="yes"
SourceFile="Resource\bafunctions.dll" />
       <Payload SourceFile="Resource\LogoSide.png" />
      <Payload SourceFile="Resource\Logo.png" />
      <!--<Payload Name="1031\thm.wxl" Compressed="yes"
SourceFile="Resource\1031\HyperlinkTheme.wxl" />
      <Payload Name="2057\thm.wxl" Compressed="yes"
SourceFile="Resource\2057\HyperlinkTheme.wxl" />-->

    </BootstrapperApplicationRef>
     <WixVariable Id="WixExtbaLicenseUrl" Value="License.htm" />
    <WixVariable Id="WixExtbaThemeXml" Value="Resource\Bundle3Theme.xml" />
    <!--<WixVariable Id="WixExtbaThemeWxl"
Value="Resource\HyperlinkLocaleTheme.wxl" />-->

    <Variable Name="InstallFolder" Type="string"
Value="[ProgramFilesFolder]ACME" />
    <Variable Name="InstallFolder2" Type="string"
Value="[WindowsVolume]Database" />

    <Variable Name="RadioButton1" Type="numeric" Value="0" />
    <Variable Name="RadioButton2" Type="numeric" Value="1" />
    <Variable Name="RadioButton3" Type="numeric" Value="0" />
    <Variable Name="RadioButton4" Type="numeric" Value="0" />







    <!--<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense"   >
       <bal:WixStandardBootstrapperApplication SuppressOptionsUI="yes"
                 LicenseFile="$(var.RESPATH)\License.rtf"
                 LogoFile="$(var.RESPATH)\logo3_new.png"
                 ThemeFile="$(var.RESPATH)\theme.xml"
            />

    </BootstrapperApplicationRef>-->
<!--<WixVariable Id="WixExtbaLogo" Value="Resource\logo3_new.png" />
    <WixVariable Id="WixExtbaFailureCloseButton" Value="Finish" />-->



    <!--<BootstrapperApplicationRef
Id="WixExtendedBootstrapperApplication.HyperlinkLicense">
      <Payload SourceFile="Resource\License.htm" />
      <Payload SourceFile="Resource\LogoSide.png" />
      <Payload SourceFile="Resource\LogoSmall.png" />
    </BootstrapperApplicationRef>
    <WixVariable Id="WixExtbaLicenseUrl" Value="License.htm" />
    <WixVariable Id="WixExtbaThemeXml" Value="Resource\Bundle2Theme.xml" />
    <WixVariable Id="WixExtbaThemeWxl" Value="Resource\HyperlinkTheme.wxl"
/>-->





    <Chain>

      <PackageGroupRef Id="FC"/>
      <!--<ExePackage Id="FC"  SourceFile="$(var.RESPATH)\0Installer.exe"
PerMachine="yes"    ></ExePackage>-->
      <MsiPackage SuppressSignatureVerification="yes"
SourceFile="path\product.msi"  ForcePerMachine="yes"
DisplayInternalUI="yes" After="FC" />
    </Chain>
  </Bundle>

  <Fragment>
    <!--<Icon Id="icon.exe" SourceFile="$(var.RESPATH)\icon.ico"/>
    <Property Id="ARPPRODUCTICON" Value="icon.exe" />-->



    <WixVariable  Id="WixMbaPrereqPackageId"  Value="FC" />
    <util:RegistrySearch
               Root="HKLM"
               Key="key"
               Variable="FCINSTALLED" />
    <PackageGroup  Id="FC">
      <ExePackage SuppressSignatureVerification="yes"
                  Id="FC"  Permanent="yes"
      SourceFile="$(var.RESPATH)\0Installer.exe"
      PerMachine="yes"
      DetectCondition="FCINSTALLED"
                   InstallCommand="/S/v/qn" UninstallCommand="/S/v/qn"
      > </ExePackage>

    </PackageGroup>

  </Fragment>

</Wix>


Thanks

Rizwan
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to