I have a simple burn package that install SQL express and one MSI. The install 
works the first time I run it but when I upgrade it the SQL package is removed 
(if I upgrade again it is put back). It appears from the logs that it doesn't 
recognise that the package is referenced and so the upgrade causes it to be 
removed.

My authoring looks like this:

    <?define InstanceName = "TEMP" ?>
    <?define SqlWebLink = 
http://download.microsoft.com/download/D/1/8/D1869DEC-2638-4854-81B7-0F37455F35EA/SQLEXPR_x86_ENU.exe
 ?>

    <!-- Read SQL Server keys to find current instance and version -->
    <util:RegistrySearch
      Id="SqlInstanceFound"
      Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance 
Names\SQL" Value="$(var.InstanceName)"
      Result="exists" Variable="SqlInstanceFound" />

    <PackageGroup Id="SQLServerExpress">
      <ExePackage Id="SQLServerExpress"
        DisplayName="SQL Server 2008 R2 Express"
        Cache="no"
        Compressed="no"
        PerMachine="yes"
        Permanent="no"
        Vital="yes"
        Name="Redist\SQLEXPR_x86_ENU.exe"
        SourceFile="Redist\SQLEXPR_x86_ENU.exe"
        DownloadUrl="$(var.SqlWebLink)"
        InstallCommand="/ACTION=Install /INSTANCENAME=$(var.InstanceName) 
/FEATURES=SQL /SECURITYMODE=SQL /SAPWD=pass /TCPENABLED=1 
/SQLSVCACCOUNT=&quot;NT AUTHORITY\NETWORK SERVICE&quot; 
/SQLSVCSTARTUPTYPE=Manual /SQLSYSADMINACCOUNTS=BUILTIN\Administrators /Q 
/HIDECONSOLE /SkipRules=RebootRequiredCheck /IAcceptSQLServerLicenseTerms"
        RepairCommand="/ACTION=Repair /INSTANCENAME=$(var.InstanceName) /Q 
/HIDECONSOLE"
        UninstallCommand="/Action=Uninstall /INSTANCENAME=$(var.InstanceName) 
/FEATURES=SQL /Q /HIDECONSOLE"
        DetectCondition="SqlInstanceFound">
        <ExitCode Value ="3010" Behavior="forceReboot" />
      </ExePackage>
    </PackageGroup>

Can anyone see why the package is removed on upgrade?

Neil

Neil Sleightholm
X2 Systems Limited
n...@x2systems.com
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to