lib/service.rb in wixgem-0.107.0 vs lib/service.rb in wixgem-0.108.0

- old
+ new

@@ -35,11 +35,11 @@ service_control = {} service_control = @hash[:service_control] if(@hash.has_key?(:service)) if(service.key?(:logonasservice)) raise ':logonasservice requires an :account element' unless(service.key?(:account)) - + wix = REXML::XPath.match(xml_doc, "/Wix")[0] wix.add_attribute('xmlns:Util', 'http://schemas.microsoft.com/wix/UtilExtension') user_element = parent_element.add_element 'Util:User' @@ -48,17 +48,17 @@ words = account.split('/') user_element.add_attribute('Domain', words[0]) account = words[1] end + user_element.attributes['Id'] = "logon_as_service_#{SecureRandom.uuid.gsub(/-/,'')}" user_element.add_attribute('Name', account) user_element.add_attribute('LogonAsService', service[:logonasservice]) user_element.add_attribute('CreateUser', 'no') user_element.add_attribute('UpdateIfExists', 'yes') service.delete(:logonasservice) - service.delete(:domain) if(service.key?(:domain)) end service_element = parent_element.add_element('ServiceInstall') service_element.attributes['Id'] = "Service_#{SecureRandom.uuid.gsub(/-/,'')}" service_element.attributes['Name'] = service[:name]