Skip to content

Commit 4600a01

Browse files
committed
U clean module name for wix toolset
1 parent 24f2c8d commit 4600a01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#set ($name = $info.name.replaceAll("-", "_"))
1+
#set ($name = $info.name.replaceAll("[^A-Za-z0-9_.]", "_"))
22
#set ($id = 0)
33
#macro(list $file)
44
#set($guid = $GUID.randomUUID())

src/main/resources/windows/wxs.vtl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#set($moduleName = $info.name.replaceAll("-", "_") + "_Module")
1+
#set($moduleName = $info.name.replaceAll("[^A-Za-z0-9_.]", "_") + "_Module")
22
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
33
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
44
<Product Id="*" Codepage="1252" Language="1033" Manufacturer="${info.organizationName}" Name="${info.name}" UpgradeCode="${info.winConfig.msiUpgradeCode}" Version="${info.winConfig.productVersion}">

0 commit comments

Comments
 (0)