source: branches/eraser6/Installer/Eraser.wxs @ 590

Revision 590, 2.8 KB checked in by lowjoel, 6 years ago (diff)

-OK, always maintain the upgrade code, but change the product ID. This way, old versions of the 6x line will be replaced with the new binaries at every install
-Also, move the localisation Features and Components to Localisations.wxs

  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * $Id$
4 * Copyright 2008 The Eraser Project
5 * Original Author: Joel Low <lowjoel@users.sourceforge.net>
6 * Modified By:
7 *
8 * This file is part of Eraser.
9 *
10 * Eraser is free software: you can redistribute it and/or modify it under the
11 * terms of the GNU General Public License as published by the Free Software
12 * Foundation, either version 3 of the License, or (at your option) any later
13 * version.
14 *
15 * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
17 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 *
19 * A copy of the GNU General Public License can be found at
20 * <http://www.gnu.org/licenses/>.
21-->
22
23<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
24    <Product Id="C71D72C1-1148-4ec5-8BD5-198C85AB0DDD" Name="Eraser" Language="1033" Version="6.0.0.2"
25            Manufacturer="The Eraser Project" UpgradeCode="D07F460B-E2B0-4cc5-A109-998CA9C2D4EA">
26        <Package Id="*" InstallerVersion="200" Compressed="yes" Keywords="Eraser"
27            Description="Eraser Installer" Manufacturer="The Eraser Project" />
28        <Media Id="1" Cabinet="Installer.cab" EmbedCab="yes" />
29
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"
38        </Condition>
39
40        <!-- Program upgrades-->
41        <Upgrade Id ="D07F460B-E2B0-4cc5-A109-998CA9C2D4EA">
42            <UpgradeVersion Property="ERASERUPDATE" Minimum="6.0.0.0" OnlyDetect="no" />
43        </Upgrade>
44        <InstallExecuteSequence>
45            <RemoveExistingProducts After="InstallInitialize" />
46        </InstallExecuteSequence>
47
48        <!-- Program directory -->
49        <Directory Id="TARGETDIR" Name="SourceDir">
50            <?if $(sys.BUILDARCH) = "x64"?>
51                <Directory Id="ProgramFiles64Folder">
52                    <Directory Id="PFFolder" />
53                </Directory>
54            <?else?>
55                <Directory Id="ProgramFilesFolder">
56                    <Directory Id="PFFolder" />
57                </Directory>
58            <?endif?>
59
60            <Directory Id="ProgramMenuFolder" Name="ProgramMenu" />
61            <Directory Id="DesktopFolder" Name="Desktop" />
62        </Directory>
63
64        <!-- Features -->
65        <Feature Id="EraserMain" Title="Eraser" Description="The main Eraser program files." Level="1"
66                ConfigurableDirectory="INSTALLLOCATION" AllowAdvertise="system" Display="expand">
67            <ComponentRef Id="EraserMain" />
68            <ComponentRef Id="EraserLangEn" />
69            <ComponentRef Id="EraserPlugins" />
70            <ComponentRef Id="EraserPluginsLangEn" />
71           
72            <FeatureRef Id="EraserLanguages" />
73        </Feature>
74    </Product>
75</Wix>
Note: See TracBrowser for help on using the repository browser.