lib/WindowsInstaller.rb in wixgem-0.47.0 vs lib/WindowsInstaller.rb in wixgem-0.48.0
- old
+ new
@@ -67,11 +67,10 @@
return prod_code if (product_name == name)
}
raise "Failed to find product code for product: #{product_name}"
end
- private
def self.product_info(installer, code)
raise 'Windows installer cannot be nil' if(installer.nil?)
hash = Hash.new
# known product keywords found on internet. Would be nice to generate.
%w[Language PackageCode Transforms AssignmentType PackageName InstalledProductName VersionString RegCompany
@@ -94,17 +93,17 @@
hash[prop] = value unless(value.nil? || value == '')
end
return hash
end
- public
def self.dump_info(product_name)
installer = WIN32OLE.new('WindowsInstaller.Installer')
properties = product_info(installer, product_code_from_product_name(product_name, installer))
properties.each { |id, value| puts "#{id}: #{value}" }
end
+ private
def self.msi_records(msi_file)
records = {}
installer = WIN32OLE.new('WindowsInstaller.Installer')
sql_query = "SELECT * FROM `Property`"
@@ -162,10 +161,10 @@
installer = nil
puts ''
end
def self.execute(cmd)
- command = Wixgem::Command.new(cmd)
+ command = Wixgem::Command.new(cmd, { quiet: true } )
#command[:debug] = true
command.execute
end
end
end