Changeset 588


Ignore:
Timestamp:
11/19/08 03:05:53 (6 years ago)
Author:
lowjoel
Message:

I can't follow what the WiX tutorial says about updates: it's rather unpredictable IMO. So, what we will do now (which probably is dangerous, but leaves me no choice) is to do a complete reinstall for every update. Replace the Package ID and the UpgradeCode? at every installer build. If anyone has a better way of doing this that can be easily implemented, let me know. Based on my observations, TSVN *seems* to be doing the same thing (so I guess there must be some reason?). Well, this needs to be fixed eventually, though.

I've also set the minimum .NET version required to be 3.5.

Location:
branches/eraser6/Installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Installer/Bootstrapper/Bootstrapper.cpp

    r586 r588  
    377377    std::wstring commandLine(L"msiexec.exe /i "); 
    378378    commandLine += L'"' + tempDir + L'"'; 
    379     commandLine += L"REINSTALL=ALL REINSTALLMODE=omus"; 
    380379     
    381380    //And the return code is true if the process exited with 0. 
  • branches/eraser6/Installer/Eraser.wxs

    r566 r588  
    2222 
    2323<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    24     <Product Id="f4024002-a3ea-498a-993d-c0d32e205dfc" Name="Eraser" Language="1033" Version="6.0.0.0" 
    25             Manufacturer="The Eraser Project" UpgradeCode="073882b4-e059-4fb4-9d36-11e88d14ae87"> 
     24    <Product Id="3CD6BF73-CEF1-4648-B0C6-5F3370F80C7D" Name="Eraser" Language="1033" Version="6.0.0.1" 
     25            Manufacturer="The Eraser Project" UpgradeCode="F7C915E0-B081-4a80-97E2-FDA462FEDF05"> 
    2626        <Package Id="*" InstallerVersion="200" Compressed="yes" Keywords="Eraser" 
    2727            Description="Eraser Installer" Manufacturer="The Eraser Project" /> 
    2828        <Media Id="1" Cabinet="Installer.cab" EmbedCab="yes" /> 
    2929 
    30         <Condition Message='This setup requires the .NET Framework 2.0 or higher.'> 
    31             <![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]> 
     30        <!-- Check for .NET 3.5 --> 
     31        <Property Id='FRAMEWORK35'> 
     32            <RegistrySearch Id='Framework35Registry' Type='raw' 
     33                Root='HKLM' Key='Software\Microsoft\NET Framework Setup\NDP\v3.5' 
     34                Name='Install' /> 
     35        </Property> 
     36        <Condition Message='Eraser requires the .NET Framework 3.5 or higher to be installed.'> 
     37            FRAMEWORK35 = "#1" 
    3238        </Condition> 
    3339 
     40        <!-- Program directory --> 
    3441        <Directory Id="TARGETDIR" Name="SourceDir"> 
    3542            <?if $(sys.BUILDARCH) = "x64"?> 
     
    7986        <WixVariable Id="WixUIInfoIco" Value="Resources\Information.ico" /> 
    8087        <WixVariable Id="WixUINewIco" Value="Resources\New Folder.ico" /> 
     88 
     89        <InstallExecuteSequence> 
     90            <RemoveExistingProducts After="InstallInitialize" /> 
     91        </InstallExecuteSequence> 
    8192 
    8293        <CustomAction Id="RunEraserExe" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> 
Note: See TracChangeset for help on using the changeset viewer.