hi kiran,

thanks a lot for your reply.

I am pasting my wxs file below for you to take a look.. what I need to do is
release version 1.0.0.0 right now but with the changes required so that
future upgrade 2.0.0.0 will recognize it as an upgrade, and uninstall the
earlier version but keep the clusterinfo.bin file .. I am also copying the
installfolder to the registry, so that I can retrieve the file in the
upgrade installer (how would the upgrade installer know where the original
installation was done? if the user selects a different folder to install in,
how will the earlier clusterinfo.bin file be copied over ?)

Right now, if I change the product version from 1.0.0.0 to 2.0.0.0 I see an
error during the new installation.. a message box pops up and says The
installer has encountered an unexpected error installing this package. This
may indicate a problem with this package. The error code is 2762.

after that the installation goes ahead anyway .. In the logs I see

DEBUG: Error 2762:  Unable to schedule operation. The action must be
scheduled between InstallInitialize and InstallFinalize.
The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2762. The
arguments are: , , 
MSI (s) (18:80) [02:26:21:007]: Note: 1: 2205 2:  3: Error 
MSI (s) (18:80) [02:26:21:007]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (18:80) [02:26:21:007]: Product: SolidFire Hardware Provider -- The
installer has encountered an unexpected error installing this package. This
may indicate a problem with this package. The error code is 2762. The
arguments are: , , 


Here's my wxs.. can you see if I'm doing something wrong or need something
more to get rid of the upgrade error? thanks a lot for your help in advance!
I am a newbie and urgently need help with this! 

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <Product Id="*" Name="SolidFire Hardware Provider" Language="1033"
Version="1.0.0.0" Manufacturer="SolidFire"
UpgradeCode="0c60967f-f184-4b8b-a96a-b1caa4a8879e">

    <Package Id="*" InstallerVersion="405" Compressed="yes"
InstallScope="perMachine" />
    
    <Condition Message=  
     "You need to be an administrator to install this product.">
      Privileged
    </Condition>

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is
already installed." />
    <MediaTemplate EmbedCab='yes'/>
    <PropertyRef Id="NETFRAMEWORK35"/>
    <Condition Message ="This application installs only on Windows Server
2012 and Windows Server 2008 R2">
      
      
    </Condition>
               
    <Condition Message="This application requires .NET Framework 3.5. Please
install the .NET Framework then run this installer again.">
      
    </Condition>
    <Feature Id="ProductFeature" Title="InstallProvider" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
    <Feature Id="VCRedistcrt" Title="Visual C++ Runtime" AllowAdvertise="no"
Display="hidden" Level="1">
      <MergeRef Id="VCRedistcrt"/>
    </Feature>
    <Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no"
Display="hidden" Level="1">
      <MergeRef Id="VCRedistatl"/>
    </Feature>
    <UI>
      
      <Publish Dialog="ExitDialog"
      Control="Finish"
      Event="DoAction"
      Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT
Installed</Publish>
    </UI>

    

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" ></Property>
    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Config
Utility" />
    <Property Id="WixShellExecTarget" Value="[#configutility]" />
    
    <CustomAction Id="LaunchApplication" BinaryKey="WixCA"
DllEntry="WixShellExec" Impersonate="yes" />

    
    <UIRef Id="WixUI_InstallDir"/>

    <InstallExecuteSequence>
      <Custom Action="RunInstallScript" After="InstallFiles" >NOT
Installed</Custom>
    </InstallExecuteSequence>
    <InstallExecuteSequence>
      <Custom Action='BeforeUninstall' Before='RemoveFiles'>Installed AND
(NOT REINSTALL)</Custom>
    </InstallExecuteSequence>
    <CustomAction Id="RunInstallScript" ExeCommand="cmd /c
install-solidfireprovider.cmd > install.log" Directory="INSTALLFOLDER"
Execute="deferred" Return="ignore"/>
    <CustomAction Id="BeforeUninstall" ExeCommand="cmd /c
uninstall-solidfireprovider.cmd > install.log" Directory="INSTALLFOLDER"
Execute="deferred" Return="ignore"/>
  </Product>


  <Fragment>
    <DirectoryRef Id="TARGETDIR">
      <Merge Id="VCRedistatl" SourceFile="$(env.CommonProgramFiles)\Merge
Modules\Microsoft_VC90_ATL_x86_x64.msm" DiskId="1" Language="0"/>
    </DirectoryRef>
  </Fragment>

  <Fragment>
    <DirectoryRef Id="TARGETDIR">
      <Merge Id="VCRedistcrt" SourceFile="$(env.CommonProgramFiles)\Merge
Modules\Microsoft_VC90_CRT_x86_x64.msm" DiskId="1" Language="0"/>
    </DirectoryRef>
  </Fragment>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFiles64Folder">
        <Directory Id="INSTALLFOLDER" Name="SolidFireVSS" />
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>

    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      
      <Component Id="ProductComponent">
        
        <File Id="restinterfacedll.dll"
          Source="..\x64\$(var.build)\RESTInterfacelib.dll"></File>
      </Component>

      <Component Id="vssdll">
        <File Id="vsssolidfireprovider.dll"
          Source="..\x64\$(var.build)\vsssolidfireprovider.dll" ></File>

        
      </Component>

      <Component Id="installscript">
        <File Id="installscript"
          Source="install-solidfireprovider.cmd"></File>
      </Component>

      <Component Id="uninstallscript">
        <File Id="uninstallscript"
          Source="uninstall-solidfireprovider.cmd"></File>
      </Component>

      <Component Id="registerprovider">
        <File Id="registerprovider"
          Source="register_app.vbs"></File>
      </Component>


      <Component Id="vshadow">
        <File Id="vshadow"
          Source="vshadow.exe"></File>
      </Component>
      
      <Component Id="clusterinfo">
        <File Id="clusterinfo"
          Source="clusterinfo.bin"></File>
      </Component>

      <Component Id="installlog">
        <File Id="install.log"
          Source="install.log"></File>
      </Component>

      <Component Id="configutility" NeverOverwrite="yes" KeyPath="yes"
Guid="ADEB7AC2-9CB5-4b75-9BA7-2F129151191B">
        <File Id="configutility"
         
Source="..\configutility\bin\x64\Release\SolidFireConfigUtility.exe"></File>
        <RegistryValue Root="HKLM"
Key="Software\solidfirevss\InstallLocation" Value="[INSTALLFOLDER]"
Type="string" Action="write" />



        

        
      </Component>
    </ComponentGroup>
  </Fragment>


</Wix>






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/changes-to-support-upgrades-help-tp7589169p7589196.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to