# 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