[chef-dev] Re: Omnibus and MSI-packages


Chronological Thread 
  • From: Daniel DeLeo < >
  • To: Anton Baranov < >
  • Cc:
  • Subject: [chef-dev] Re: Omnibus and MSI-packages
  • Date: Tue, 6 Aug 2013 08:03:21 -0700


On Tuesday, August 6, 2013 at 5:11 AM, Anton Baranov wrote:

Hello all.

I have one question regarding compilation msi-packages with omnibus-ruby.

As i see, omnibus compiles msi with this command:

    def msi_command
      msi_command = ["light.exe",
                     "-nologo",
                     "-ext WixUIExtension",
                     "-cultures:en-us",
                     "-loc #{install_path}\\msi-tmp\\#{package_name}-en-us.wxl",
                     "#{install_path}\\msi-tmp\\#{package_name}-Files.wixobj",
                     "#{install_path}\\msi-tmp\\#{package_name}.wixobj",
                     "-out #{config.package_dir}\\#{output_package("msi")}"]

      # Don't care about the 204 return code from light.exe since it's
      # about some expected warnings...
      [msi_command.join(" "), {:returns => [0, 204]}]
    end


Could you talk, how i can redefine that and execute light.exe with some additional parameters?

I need to create some complicated msi-installer with help of your instrument, and i need ability to change parameters for light.exe.

--------------------------
With best regards, Anton Baranov.

To get going, you can monkey patch the method to do what you want. You should probably generalize what you're doing and then submit a patch for omnibus to support custom MSI options.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§