File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
src/main/resources/windows Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 4
4
#set ($guid = $GUID.randomUUID ())
5
5
#set ($id = $id + 1 )
6
6
#if ($file.isDirectory ())
7
+ #if ($file.equals (${info . appFolder }))
8
+ <Directory Id= "INSTALLFOLDER" Name= "${file . name }">
9
+ #else
7
10
<Directory Id= "_${id }" Name= "${file . name }">
11
+ #end
8
12
#foreach ($child in $file.listFiles ())
9
13
#list ($child )
10
14
#end
11
15
</ Directory>
12
16
#else
13
17
<Component Id= "_${id }" Guid= "${guid }" Win64 = "yes">
14
18
#if ($file.equals (${info . executable }))
15
- <File Id= "exeFile " Name= "${file . name }" KeyPath= "yes" Source= "${file }">
19
+ <File Id= "EXEFILE " Name= "${file . name }" KeyPath= "yes" Source= "${file }">
16
20
<Shortcut Id= "ApplicationStartMenuShortcut" Name= "${info . winConfig . shortcutName }" Description= "${info . description }" Directory= "ProgramMenuFolder" / >
17
21
</ File>
18
22
<RemoveFolder Id= "ApplicationProgramsFolder" On= "uninstall" / >
19
23
<RegistryValue Root= "HKLM" Key= "Software\\${info . organizationName }\\${info . name }" Name= "installed" Type= "integer" Value= "1 " / >
20
24
#else
21
- <File Id = "_${ id }f" Name= "${file . name }" KeyPath= "yes" Source= "${file }"/ >
25
+ <File Name= "${file . name }" KeyPath= "yes" Source= "${file }"/ >
22
26
#end
23
27
</ Component>
24
28
#end
33
37
#if ($info.winConfig.registry )
34
38
<Component Id= "RegistryEntries" Guid= "${GUID . randomUUID ()}">
35
39
#foreach ($entry in $info.winConfig.registry.entries )
36
- <RegistryKey Root= "${entry . root }" Key= "${entry . subkey }" Action= "createAndRemoveOnUninstall">
37
- <RegistryValue Type= "${entry . valueTypeAsWIXToolsetString }" Name= "$! {entry . valueName }" Value= "$! {entry . valueData }"/ >
40
+ <RegistryKey Root= "${entry . root }" Key= "${entry . subkey }" ForceDeleteOnUninstall= "yes">
41
+ <RegistryValue
42
+ Type= "${entry . valueTypeAsWIXToolsetString }"
43
+ #if ($entry.valueName )
44
+ Name= "$! {entry . valueName }"
45
+ #end
46
+ #if ($entry.valueData )
47
+ Value= "$! {entry . valueData }"
48
+ #end
49
+ / >
38
50
</ RegistryKey>
39
51
#end
40
52
</ Component>
You can’t perform that action at this time.
0 commit comments