XZip is a free "component" dll that provides easy basic zip access from script. I used it to extract and create bootskin archives with
Bootskin Buddy.
There are examples on how to use XZip at the download site. But here's a couple handy snippets for registering and unregistering the dll silently from your widget or gadget:
Include the XZip.dll as a Custom File from Summary panel so it will be packaged and present in the Object.Directory.
To register in your Object_OnScriptEnter:
'Register The Zip-Archive extraction/Compression DLL
Set objShell = CreateObject("WScript.shell")
strDLLPath = Chr(34) & Object.Directory & "XZip.dll" & Chr(34)
xyz = objShell.Run("regsvr32 -s " & strDLLPath, 0, False)
Set objShell = Nothing
It is important to note the space after the "-s".
To unregister the dll (if you don't think any other apps are using it!):
'Un-Register The Zip-Archive extraction/Compression DLL
Set objShell = CreateObject("WScript.shell")
strDLLPath = Chr(34) & Object.Directory & "XZip.dll" & Chr(34)
xyz = objShell.Run("regsvr32 -u -s " & strDLLPath, 0, False)
Set objShell = Nothing
Hope that's helpful!
rr