Skip to content

Commit e5e22e2

Browse files
committed
registry entry valuedata and valuename no mandatory in msi generation
1 parent 515fedc commit e5e22e2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/main/resources/windows/msm.wxs.vtl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@
1616
<Shortcut Id="ApplicationStartMenuShortcut" Name="${info.winConfig.shortcutName}" Description="${info.description}" Directory="ProgramMenuFolder" />
1717
</File>
1818
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
19-
<RegistryValue Root="HKLM" Key="Software\\${info.organizationName}\\${info.name}" Name="installed" Type="integer" Value="1" />
20-
#else
19+
<RegistryValue Root="HKLM" Key="Software\\${info.organizationName}\\${info.name}" Name="installed" Type="integer" Value="1" />
20+
#else
2121
<File Id="_${id}f" Name="${file.name}" KeyPath="yes" Source="${file}"/>
22-
#end
22+
#end
2323
</Component>
2424
#end
2525
#end
2626
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2727
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
28-
<Module Id="${name}_Module" Codepage="1252" Language="1033" Version="${info.winConfig.productVersion}">
29-
<Package Id="${GUID.randomUUID()}" Manufacturer="${info.organizationName}" InstallerVersion="200" Languages="1033" Platform="x64" SummaryCodepage="1252" Description="${info.description}"/>
28+
<Module Id="${name}_Module" Codepage="1252" Language="1033" Version="${info.winConfig.productVersion}">
29+
<Package Id="${GUID.randomUUID()}" Manufacturer="${info.organizationName}" InstallerVersion="200" Languages="1033" Platform="x64" SummaryCodepage="1252" Description="${info.description}"/>
3030
<Directory Id="TARGETDIR" Name="SourceDir">
3131
#list(${info.appFolder})
3232
<Directory Id="ProgramMenuFolder" />
3333
#if ($info.winConfig.registry)
3434
<Component Id="RegistryEntries" Guid="${GUID.randomUUID()}">
3535
#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}"/>
38-
</RegistryKey>
36+
<RegistryKey Root="${entry.root}" Key="${entry.subkey}" Action="createAndRemoveOnUninstall">
37+
<RegistryValue Type="${entry.valueTypeAsWIXToolsetString}" Name="$!{entry.valueName}" Value="$!{entry.valueData}"/>
38+
</RegistryKey>
3939
#end
40-
</Component>
40+
</Component>
4141
#end
4242
</Directory>
43-
</Module>
43+
</Module>
4444
</Wix>

0 commit comments

Comments
 (0)