Sha256: 4766e793d41b22c5cf8f71ef82ee04719acc2731cf90a73c4a518b3c10924ee1

Contents?: true

Size: 969 Bytes

Versions: 22

Compression:

Stored size: 969 Bytes

Contents

require 'wixgem'
	
#Wixgem::Wix.install_path = 'E:\Development\dep\OpenSource\WixToolset\3.9'
Wixgem::Wix.install_path = '<Path to the root directory of the wix toolset>'

task :create_installation_files do
  FileUtils.mkpath('./install_files/directory')
  sleep(1)
  File.open('./install_files/file1.txt', 'w') { |f| f.write('Hello World') }
  File.open('./install_files/directory/file2.txt', 'w') { |f| f.write('Hello World') }
end

task :mergemodule => [:create_installation_files] do
  installation_files = Dir.glob('./install_files/**/*')
  
  Wixgem::Wix.make_mergemodule('./example.msm', installation_files)
end

desc "Generate an installation msi file"
task :installation => [:mergemodule] do	  
  installation_files = Dir.glob('./example.msm')
  Wixgem::Wix.make_installation("./example.msi",  
    { upgrade_code: '{a62c35a7-6a6d-4392-822b-f6aca7eef88b}', 
	  files: installation_files } 
  )
end

task :default => [:installation]

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
wixgem-0.59.0 example/rakefile.rb
wixgem-0.58.0 example/rakefile.rb
wixgem-0.57.0 example/rakefile.rb
wixgem-0.56.0 example/rakefile.rb
wixgem-0.55.0 example/rakefile.rb
wixgem-0.54.0 example/rakefile.rb
wixgem-0.53.0 example/rakefile.rb
wixgem-0.52.0 example/rakefile.rb
wixgem-0.51.0 example/rakefile.rb
wixgem-0.50.0 example/rakefile.rb
wixgem-0.49.0 example/rakefile.rb
wixgem-0.48.0 example/rakefile.rb
wixgem-0.47.0 example/rakefile.rb
wixgem-0.46.0 example/rakefile.rb
wixgem-0.45.0 example/rakefile.rb
wixgem-0.44.0 example/rakefile.rb
wixgem-0.43.0 example/rakefile.rb
wixgem-0.39.0 example/rakefile.rb
wixgem-0.38.0 example/rakefile.rb
wixgem-0.37.0 example/rakefile.rb