-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.wxs
41 lines (37 loc) · 1.93 KB
/
template.wxs
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product >
<Media Cabinet="media1.cab" EmbedCab="yes" Id="1" CompressionLevel="high"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenuFolder"/>
</Directory>
<DirectoryRef Id="ProgramMenuFolder">
<Component Guid="*" Id="shortcuts_ProgramMenuFolder">
<RegistryKey ForceDeleteOnUninstall="yes" Id="shortcuts_reg_ProgramMenuFolder" Key="Software\spbu-se\Automata Constructor" Root="HKCU">
<RegistryValue KeyPath="yes" Name="shortcut_ProgramMenuFolder" Type="string" Value=""/>
</RegistryKey>
<Shortcut Icon="icon.ico" Id="automata_constructor_ProgramMenuFolder.exe" Name="Automata Constructor" Target="[INSTALLDIR]automata_constructor.exe" WorkingDirectory="INSTALLDIR"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="INSTALLDIR">
<Component Id="atmtn_file_extension" Guid="*">
<RegistryKey Root="HKCR" Key=".atmtn">
<RegistryValue Type="string" Value="automata_constructor.ATMTN"/>
</RegistryKey>
<RegistryKey Root="HKCR" Key="automata_constructor.ATMTN">
<RegistryValue Type="string" Value="Portable Embosser Format"/>
</RegistryKey>
<RegistryKey Root="HKCR" Key="automata_constructor.ATMTN\DefaultIcon">
<RegistryValue Type="string" Value="[INSTALLDIR]icon.ico,0"/>
</RegistryKey>
<RegistryKey Root="HKCR" Key="automata_constructor.ATMTN\shell\open\command">
<RegistryValue Type="string" Value=""[INSTALLDIR]automata_constructor.exe" "%1""/>
</RegistryKey>
</Component>
</DirectoryRef>
<Feature Id="MainApplication">
<ComponentRef Id="shortcuts_ProgramMenuFolder"/>
<ComponentRef Id="atmtn_file_extension"/>
</Feature>
</Product>
</Wix>