source: trunk/eraser/Installer/Eraser.wxs @ 1990

Revision 1990, 3.5 KB checked in by lowjoel, 4 years ago (diff)

Don't check for the .NET Framework in the Installer since that prevents us from Changing the installation, instead, always check in the Bootstrapper.

  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * $Id$
4 * Copyright 2008-2010 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    <?include "..\Version.wxs"?>
25    <Product Id="*" Name="Eraser $(var.VERSIONSTRING)" Language="1033"
26            Version="$(var.INTERNALVERSIONSTRING)" Manufacturer="The Eraser Project"
27            UpgradeCode="073882B4-E059-4FB4-9D36-11E88D14AE87">
28        <Package Id="*" InstallerVersion="300" Compressed="yes" Keywords="Eraser"
29            Description="Eraser Installer" Manufacturer="The Eraser Project" />
30        <Media Id="1" Cabinet="Installer.cab" CompressionLevel="none" EmbedCab="yes" />
31
32        <!-- Prevent those pesky MSI shortcuts which prevent running as Administrator -->
33        <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
34
35        <!-- Program upgrades-->
36        <Upgrade Id="073882B4-E059-4FB4-9D36-11E88D14AE87">
37            <UpgradeVersion Property="ERASERUPDATE" Minimum="6.0.0" Maximum="$(var.INTERNALVERSIONSTRING)" OnlyDetect="no" />
38            <UpgradeVersion Property="ERASERDOWNDATE" Minimum="$(var.INTERNALVERSIONSTRING)" OnlyDetect="yes" />
39        </Upgrade>
40        <CustomAction Id="AlreadyUpdated" Error="A newer version of Eraser is already installed. Setup will now exit." />
41        <InstallUISequence>
42            <FindRelatedProducts Before="LaunchConditions" />
43            <Custom Action="AlreadyUpdated" After="FindRelatedProducts">ERASERDOWNDATE</Custom>
44        </InstallUISequence>
45        <InstallExecuteSequence>
46            <RemoveExistingProducts After="InstallInitialize" />
47        </InstallExecuteSequence>
48
49        <!-- Program directory -->
50        <Directory Id="TARGETDIR" Name="SourceDir">
51            <?if $(sys.BUILDARCH) = "x64"?>
52                <Directory Id="ProgramFiles64Folder">
53                    <Directory Id="PFFolder" />
54                </Directory>
55            <?else?>
56                <Directory Id="ProgramFilesFolder">
57                    <Directory Id="PFFolder" />
58                </Directory>
59            <?endif?>
60
61            <Directory Id="ProgramMenuFolder" Name="ProgramMenu" />
62            <Directory Id="DesktopFolder" Name="Desktop" />
63        </Directory>
64
65        <!-- Features -->
66        <Feature Id="EraserMain" Title="Eraser" Description="The main Eraser program files." Level="1"
67                ConfigurableDirectory="INSTALLLOCATION" AllowAdvertise="system" Display="expand">
68            <ComponentRef Id="EraserMain" />
69            <ComponentRef Id="EraserLangEn" />
70            <ComponentRef Id="EraserPlugins" />
71            <ComponentRef Id="EraserPluginsLangEn" />
72
73            <Feature Id="EraserMainBlackBox" Title="Eraser BlackBox"
74                    Description="Eraser BlackBox error reporting component" Level="5">
75                <ComponentRef Id="EraserBlackBox"/>
76            </Feature>
77            <Feature Id="EraserMainShell" Title="Eraser Shell Extension"
78                    Description="Eraser shell integration" Level="1">
79                <ComponentRef Id="EraserShell" />
80            </Feature>
81            <FeatureRef Id="EraserLanguages" />
82
83            <MergeRef Id="VCRedist"/>
84            <MergeRef Id="VCMfcRedist"/>
85            <MergeRef Id="VCAtlRedist"/>
86        </Feature>
87    </Product>
88</Wix>
Note: See TracBrowser for help on using the repository browser.