Skip to content

Commit 00cf100

Browse files
committed
Add InnoSetup extraction method
1 parent 6b07661 commit 00cf100

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/extract-innosetup.rb

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require "cocaine"
2+
3+
module VBiosFinder
4+
class Extract
5+
def self.innosetup file
6+
begin
7+
line = Cocaine::CommandLine.new("innoextract", ":file")
8+
puts line.run(file: file)
9+
rescue Cocaine::ExitStatusError => e
10+
puts e.message
11+
return
12+
end
13+
end
14+
end
15+
class Test
16+
def self.innosetup file
17+
begin
18+
line = Cocaine::CommandLine.new("innoextract", "-t :file")
19+
line.run(file: file)
20+
true
21+
rescue Cocaine::ExitStatusError => e
22+
false
23+
end
24+
end
25+
end
26+
end

0 commit comments

Comments
 (0)