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

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

Disable the creation of the Windows Installer shortcuts which help repair applications automatically because users will run Eraser as an administrator quite regularly and the special shortcuts lack that entry.

  • 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    <?include "..\Version.wxs"?>
25    <Product Id="$(var.PRODUCTID)" Name="Eraser" Language="1033" Version="$(var.VERSIONSTRING)"
26            Manufacturer="The Eraser Project" UpgradeCode="073882B4-E059-4FB4-9D36-11E88D14AE87">
27        <Package Id="*" InstallerVersion="200" Compressed="yes" Keywords="Eraser"
28            Description="Eraser Installer" Manufacturer="The Eraser Project" />
29        <Media Id="1" Cabinet="Installer.cab" EmbedCab="yes" />
30
31        <!-- Check for .NET 3.5 -->
32        <Property Id='FRAMEWORK35'>
33            <RegistrySearch Id='Framework35Registry' Type='raw'
34                Root='HKLM' Key='Software\Microsoft\NET Framework Setup\NDP\v3.5'
35                Name='Install' />
36        </Property>
37        <Condition Message='Eraser requires the .NET Framework 3.5 or higher to be installed.'>
38            FRAMEWORK35 = "#1"
39        </Condition>
40       
41        <!-- Prevent those pesky MSI shortcuts which prevent running as Administrator -->
42        <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
43
44        <!-- Program upgrades-->
45        <Upgrade Id ="D07F460B-E2B0-4cc5-A109-998CA9C2D4EA">
46            <UpgradeVersion Property="ERASERUPDATE" Minimum="6.0.0" Maximum="$(var.VERSIONSTRING)" OnlyDetect="no" />
47            <UpgradeVersion Property="ERASERDOWNDATE" Minimum="$(var.VERSIONSTRING)" OnlyDetect="yes" />
48        </Upgrade>
49        <CustomAction Id="AlreadyUpdated" Error="A newer version of Eraser is already installed. Setup will now exit." />
50        <InstallUISequence>
51            <FindRelatedProducts Before="LaunchConditions" />
52            <Custom Action="AlreadyUpdated" After="FindRelatedProducts">ERASERDOWNDATE</Custom>
53        </InstallUISequence>
54        <InstallExecuteSequence>
55            <RemoveExistingProducts After="InstallInitialize" />
56        </InstallExecuteSequence>
57
58        <!-- Program directory -->
59        <Directory Id="TARGETDIR" Name="SourceDir">
60            <?if $(sys.BUILDARCH) = "x64"?>
61                <Directory Id="ProgramFiles64Folder">
62                    <Directory Id="PFFolder" />
63                </Directory>
64            <?else?>
65                <Directory Id="ProgramFilesFolder">
66                    <Directory Id="PFFolder" />
67                </Directory>
68            <?endif?>
69
70            <Directory Id="ProgramMenuFolder" Name="ProgramMenu" />
71            <Directory Id="DesktopFolder" Name="Desktop" />
72        </Directory>
73
74        <!-- Features -->
75        <Feature Id="EraserMain" Title="Eraser" Description="The main Eraser program files." Level="1"
76                ConfigurableDirectory="INSTALLLOCATION" AllowAdvertise="system" Display="expand">
77            <ComponentRef Id="EraserMain" />
78            <ComponentRef Id="EraserLangEn" />
79            <ComponentRef Id="EraserPlugins" />
80            <ComponentRef Id="EraserPluginsLangEn" />
81
82            <Feature Id="EraserMainShell" Title="Eraser Shell Extension"
83                    Description="Eraser shell integration" Level="1">
84                <ComponentRef Id="EraserShell" />
85            </Feature>
86            <FeatureRef Id="EraserLanguages" />
87        </Feature>
88    </Product>
89</Wix>
Note: See TracBrowser for help on using the repository browser.