-
Notifications
You must be signed in to change notification settings - Fork 1
/
SampleFirst.wxs
66 lines (54 loc) · 2.87 KB
/
SampleFirst.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
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
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Id='YOURGUID-PRODUCT_ID'
Name='Foobar 1.0' UpgradeCode='YOURGUID-PRODUCT_UPGRADE_CODE'
Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'>
<Package Id='*'
Description="Acme's Foobar 1.0 Installer" Keywords='Installer'
Comments='Foobar is a registered trademark of Acme Ltd.' Manufacturer='Acme Ltd.'
InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
<Media Id='1' Cabinet='Sample.cab' />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='Acme' Name='Acme'>
<Directory Id='INSTALLDIR' Name='Foobar 1.0'>
<Component Id='MainExecutable' Guid='YOURGUID-MAIN_EXECUTABLE'>
<File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1' Source='!(bindpath.app)\FoobarAppl10.exe' KeyPath='yes'>
<Shortcut Id="startmenuFoobar10"
Directory="ProgramMenuDir" Name="Foobar 1.0"
WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" />
<Shortcut Id="desktopFoobar10"
Directory="DesktopFolder" Name="Foobar 1.0"
WorkingDirectory='INSTALLDIR' Icon="Foobar10.exe" IconIndex="0" Advertise="yes" />
</File>
</Component>
<Component Id='HelperLibrary' Guid='YOURGUID-HELPER_LIBRARY'>
<File Id='HelperDLL' Name='Helper.dll' DiskId='1' Source='!(bindpath.app)\Helper.dll' KeyPath='yes' />
</Component>
<Component Id='Manual' Guid='YOURGUID-MANUAL'>
<File Id='Manual' Name='Manual.pdf' DiskId='1' Source='!(bindpath.app)\Manual.pdf' KeyPath='yes'>
<Shortcut Id='startmenuManual' Directory='ProgramMenuDir' Name='Instruction Manual' Advertise='yes' />
</File>
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="Foobar 1.0">
<Component Id="ProgramMenuDir" Guid="YOURGUID-PROGRAM_MENU_DIR">
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
<RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type='string' Value='' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='MainExecutable' />
<ComponentRef Id='HelperLibrary' />
<ComponentRef Id='Manual' />
<ComponentRef Id='ProgramMenuDir' />
</Feature>
<Icon Id="Foobar10.exe" SourceFile="!(bindpath.app)\FoobarAppl10.exe" />
</Product>
</Wix>