summaryrefslogtreecommitdiffstats
path: root/packaging/wix/inkscape.wxs
blob: bd11dc579fb80562e8683a9dfaed60424101de09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
	<?include version.wxi?>

	<!-- change Product Id for every new version and subversion, do not change UpgradeCode -->
	<Product Name="$(var.FullProductName)" Id='81922150-317e-4bb0-a31d-ff1c14f707c5' UpgradeCode='4d5fedaa-84a0-48be-bd2a-08246398361a' Language='1033' Codepage='1252' Version='$(var.ProductVersion)' Manufacturer='Inkscape project'>

		<Package Id='*' Keywords='SVG, vector graphics' Description="Installer for Inkscape vector graphics editor" Comments='Licensed under the GNU GPL' Manufacturer='Inkscape project' InstallerVersion='$(var.InstallerVersion)' Platform='$(var.Platform)' Languages='1033' Compressed='yes' SummaryCodepage='1252' />

		<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" CompressionLevel="high"/>
		<Property Id='DiskPrompt' Value="inkscape Installation [1]" />

		<Property Id='ALLUSERS' Value="2" />

		<MajorUpgrade DowngradeErrorMessage="A newer version is already installed." />

		<DirectoryRef Id="ApplicationProgramsFolder">
			<Component Id="ApplicationShortcut" Guid="37de8ea4-e83a-4e40-8f9c-c6066b78d935" Win64='$(var.Win64)' >
				<Shortcut Id="ApplicationStartMenuShortcut"
						  Name="$(var.FullProductName)"
						  Description="Inkscape Vector Graphics Application"
						  Target="[INSTALLDIR]inkscape.exe"
						  WorkingDirectory="INSTALLDIR"/>
				<util:InternetShortcut Id="OnlineDocumentationShortcut"
								Name="Inkscape Homepage"
									   Target="http://www.inkscape.org/"/>
				<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
				<RegistryValue Root="HKCU" Key="Software\inkscape.org\Inkscape" Name="startmenu_installed" Type="integer" Value="1" KeyPath="yes"/>
			</Component>
		</DirectoryRef>

		<DirectoryRef Id="DesktopFolder">
			<Component Id="DesktopShortcut" Guid="3afc08a7-05a1-40cf-90c2-0d6c042bfc41" Win64='$(var.Win64)'>
				<!-- Shortcut Id="desktopFoobar10" Directory="DesktopFolder" Target="[INSTALLDIR]inkscape.exe" Name="$(var.FullProductName)" WorkingDirectory='INSTALLDIR' Icon="file_inkscape_exe" IconIndex="0" / -->
				<Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Target="[INSTALLDIR]inkscape.exe" Name="$(var.FullProductName)" WorkingDirectory='INSTALLDIR' />
				<RemoveFolder Id="DesktopFolder" On="uninstall"/>
				<RegistryValue Root="HKCU" Key="Software\inkscape.org\Inkscape" Name="desktop_installed" Type="integer" Value="1" KeyPath="yes"/>
			</Component>
		</DirectoryRef>

		<DirectoryRef Id="INSTALLDIR">
			<Component Id="RegisterExtension" Guid="d544e040-573e-4ea8-983e-4bcae6b87f3d" Win64='$(var.Win64)'>
				<ProgId Id="inkscape.svg" Description='scalable vector graphics file' Icon='file_inkscape_exe'>
					<Extension Id='svg' ContentType='image/svg+xml'>
						<Verb Id='edit' Command='Edit with Inkscape' TargetFile='file_inkscape_exe' Argument='"%1"' />
					</Extension>
					<Extension Id='svgz' ContentType='image/svg+xml'>
						<Verb Id='open' Command='Open with Inkscape' TargetFile='file_inkscape_exe' Argument='"%1"' />
					</Extension>
				</ProgId>
			</Component>
		</DirectoryRef>

		<Feature Id='Inkscape' Level='1' Absent="disallow" Display="expand" ConfigurableDirectory='INSTALLDIR' AllowAdvertise='no'
				 Title="$(var.FullProductName)"
				 Description='Inkscape core files, shortcuts and file extension'>
			<!-- core files, i.e. everything that does not fit into any of the other features -->
			<ComponentGroupRef Id='AllOther' />

			<!-- shortcuts and file extensions -->
			<Feature Id='ApplicationShortcut' Level='1' AllowAdvertise='no'
					 Title='Start Menu entry'
					 Description='Create a link in the start menu.'>
				<ComponentRef Id='ApplicationShortcut' />
			</Feature>
			<Feature Id='DesktopShortcut' Level='1' AllowAdvertise='no'
					 Title='Desktop shortcut'
					 Description='Create a link on the desktop.' >
				<ComponentRef Id='DesktopShortcut' />
			</Feature>
			<Feature Id='RegisterExtension' Level='1' AllowAdvertise='no'
					 Title='Register file extensions'
					 Description='Register SVG files (.svg and .svgz) with Inkscape and add entries in Explorer context menu.'>
				<ComponentRef Id='RegisterExtension' />
			</Feature>
		</Feature>

		<Feature Id='Python' Level='1' ConfigurableDirectory='INSTALLDIR' AllowAdvertise='no'
				 Title='Python 2.7'
				 Description='Bundled Distribution of Python 2.7 including modules required to run Inkscape extensions.'>
			<ComponentGroupRef Id='Python' />
		</Feature>

		<Feature Id='Additional' Level='1' ConfigurableDirectory='INSTALLDIR'  AllowAdvertise='no'
				 Title="Additional files"
				 Description='Additional components to enhance Inkscape functionality and provide supplemental documentation.'>
			<Feature Id='Extensions' Level='1' AllowAdvertise='no'
					 Title='Extensions (recommended)'
					 Description='Inkscape extensions (including many import and export plugins). Requires Python.'>
				<ComponentGroupRef Id='Extensions' />
			</Feature>
			<Feature Id='Dictionaries' Level='1' AllowAdvertise='no'
					 Title='Dictionaries'
					 Description='GNU Aspell dictionaries of some common languages for spell checking in Inkscape' >
				<ComponentGroupRef Id='Dictionaries' />
			</Feature>
			<Feature Id='Examples' Level='1' AllowAdvertise='no'
					 Title='Examples'
					 Description='Example files highlighting some of the features of the SVG file format and Inkscape functionality.' >
				<ComponentGroupRef Id='Examples' />
			</Feature>
			<Feature Id='Tutorials' Level='1' AllowAdvertise='no'
					 Title='Tutorials'
					 Description='Tutorials on how to use specific Inkscape features.' >
				<ComponentGroupRef Id='Tutorials' />
			</Feature>
		</Feature>

		<Feature Id='Translations' Level='1' ConfigurableDirectory='INSTALLDIR' AllowAdvertise='no'
				 Title='Translations'
				 Description='Translations and localized content for Inkscape. Note: Some translations might be incomplete, translators welcome!' >
			<FeatureGroupRef Id='Translations' />
		</Feature>

		<!-- set license text -->
		<WixVariable Id="WixUILicenseRtf" Value="gpl-3.0.rtf" />
		<!-- set dialog custom bitmaps -->
		<WixVariable Id="WixUIDialogBmp" Value="Bitmaps\dialog.bmp"/>
		<WixVariable Id="WixUIBannerBmp" Value="Bitmaps\banner.bmp"/>

		<UIRef Id="WixUI_Mondo" />
		<UIRef Id="WixUI_ErrorProgressText" />

		<Icon Id="inkscape.ico" SourceFile="..\..\share\branding\inkscape.ico" />
		<Property Id="ARPPRODUCTICON" Value="inkscape.ico" />
	</Product>
</Wix>