Sha256: 34a078ddaa89395334f57de3334fe489661ba71d506e0f25254a18b066341411
Contents?: true
Size: 1 KB
Versions: 53
Compression:
Stored size: 1 KB
Contents
# method to remove a tinker applet def removeapplet require 'fileutils' nametext = "%s" % [@a_removeapplet] fileName = "installed/" + nametext + ".inf" @appletremoveresult = removeappletvariables(nametext) setuphelpaboutoptions # update the help about list setuptinkerdocuments # update the document pull down list runhelpwindow # update the help menu showjumplinkoptions # update the application link menu runrwdtinkerbackwindow # back to applet window begin # exception trapped block count = 0 fd = File.open(fileName,"r") fd.each { |oneline| if count == 1 if File.exist?(oneline.chop) FileUtils.rm_rf( oneline.chop) end end count = 1 } fd.close FileUtils.rm_rf( fileName) @removeapplettext = "applet files removed!" + " " + @appletremoveresult runbackwindowappletremove rescue @removeapplettext = " removeapplet" + " .." end # exception rescue end
Version data entries
53 entries across 53 versions & 15 rubygems