@@ -139,13 +139,14 @@ function _get_feature_string(name, title, opt)
139
139
local allow_advertise = opt .force and " false" or " true"
140
140
local typical_default = [[ TypicalDefault="install"]]
141
141
local directory = opt .config_dir and [[ ConfigurableDirectory="INSTALLFOLDER"]] or " "
142
- local feature = string.format ([[ <Feature Id="%s" Title="%s" Description="%s" Level="%d" AllowAdvertise="%s" AllowAbsent="%s" %s %s>]] , name :gsub (" " , " " ), title , description , level , allow_advertise , allow_absent , typical_default , directory )
142
+ local feature = string.format ([[ <Feature Id="%s" Title="%s" Description="%s" Level="%d" AllowAdvertise="%s" AllowAbsent="%s" %s %s>]] ,
143
+ name :gsub (" [ ()]" , " " ), title , description , level , allow_advertise , allow_absent , typical_default , directory )
143
144
return feature
144
145
end
145
146
146
147
function _get_component_string (id , subdirectory )
147
148
local subdirectory = (subdirectory ~= " ." and subdirectory ~= nil ) and string.format ([[ Subdirectory="%s"]] , subdirectory ) or " "
148
- return string.format ([[ <Component Id="%s" Guid="%s" Directory="INSTALLFOLDER" %s>]] , id :gsub (" " , " " ), hash .uuid (id ), subdirectory )
149
+ return string.format ([[ <Component Id="%s" Guid="%s" Directory="INSTALLFOLDER" %s>]] , id :gsub (" [ ()] " , " " ), hash .uuid (id ), subdirectory )
149
150
end
150
151
151
152
-- for each id/guid in the file wix want them to be unique
@@ -189,7 +190,7 @@ function _build_feature(package, opt)
189
190
table.insert (result , " </Component>" )
190
191
end
191
192
192
- table.insert (result , _get_component_string (name .. " Cmds" ))
193
+ table.insert (result , _get_component_string (name .. " Cmds" ))
193
194
for _ , cmd in ipairs (installcmds ) do
194
195
table.insert (result , _get_other_commands (package , cmd , {install = true }))
195
196
end
0 commit comments