wixgem 0.52.0 → 0.53.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/WindowsInstaller.rb +1 -1
- data/lib/file.rb +1 -1
- data/lib/wixgem.rb +2 -3
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1fe78c389e5b0dd4f255966fee892e39f669d6a
|
4
|
+
data.tar.gz: e6d88acb1a76d8d7f5b95bfe66593b3a82f6aa6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fa0a962a68ad68bc2282668c393ddae3cad876457a03763bd8c428151a08c94cd4e36d131eac4cbb598c5518d109acde62bf7922c9a10facfb6967f9cbce79
|
7
|
+
data.tar.gz: 753c83cc228fdcf4ab80463b61a91450a07a22bd89eece3d948fec2a08b551c4cf38046791c12b4094842cb0a3c2826bca039e2df78b12fc02ca8b2199bca663
|
data/lib/WindowsInstaller.rb
CHANGED
@@ -7,7 +7,7 @@ class WindowsInstaller
|
|
7
7
|
raise "#{msi_file} does not exist!" unless(File.exists?(msi_file))
|
8
8
|
msi_file = msi_file.gsub(/\//, '\\')
|
9
9
|
raise "#{msi_file} is already installed" if(WindowsInstaller.msi_installed?(msi_file))
|
10
|
-
execute("msiexec.exe /i #{msi_file}")
|
10
|
+
execute("msiexec.exe /quiet /i #{msi_file}")
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.uninstall(msi_file)
|
data/lib/file.rb
CHANGED
@@ -3,7 +3,7 @@ require 'fiddle'
|
|
3
3
|
class File
|
4
4
|
FILE_ATTRIBUTE_READONLY="0x1".hex
|
5
5
|
def self.read_only?(path)
|
6
|
-
|
6
|
+
raise "'#{path}' does not exist" unless(File.exists?(path))
|
7
7
|
kernel32 = Fiddle::Handle.new("kernel32")
|
8
8
|
get_file_attributes = Fiddle::Function.new(kernel32['GetFileAttributesA'], [Fiddle::TYPE_VOIDP], Fiddle::TYPE_LONG)
|
9
9
|
|
data/lib/wixgem.rb
CHANGED
@@ -3,7 +3,6 @@ require 'tmpdir.rb'
|
|
3
3
|
require 'rexml/document'
|
4
4
|
require "#{File.dirname(__FILE__)}/command.rb"
|
5
5
|
require 'SecureRandom'
|
6
|
-
require 'fiddle'
|
7
6
|
require_relative('file.rb')
|
8
7
|
|
9
8
|
module Wixgem
|
@@ -134,7 +133,7 @@ class Wix
|
|
134
133
|
|
135
134
|
install_files.each do |file|
|
136
135
|
absolute_path = file
|
137
|
-
absolute_path = "#{input[:
|
136
|
+
absolute_path = "#{input[:original_pwd]}/#{file}" unless(File.exists?(file))
|
138
137
|
|
139
138
|
if(File.read_only?(absolute_path))
|
140
139
|
install_path = ".\\#{self.modify_file_path(input, file)}"
|
@@ -428,7 +427,7 @@ class Wix
|
|
428
427
|
FileUtils.rm(output) if(File.exists?(output))
|
429
428
|
|
430
429
|
output_absolute_path = File.absolute_path(output)
|
431
|
-
input[:
|
430
|
+
input[:original_pwd] = Dir.pwd
|
432
431
|
|
433
432
|
#dir = './tmp_dir'
|
434
433
|
#FileUtils.rm_rf(dir) if(Dir.exists?(dir))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wixgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Marshall
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ffi
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Simple Ruby interface to facilitate creating and compiling windows installation
|
70
84
|
files with the Wix Toolset.
|
71
85
|
email: KCCKSMarshall@gmail.com
|