/**
* Script: findZip.js
* Purpose: Finds the path of WinZip if present on your system.
* Author: Daren Thiel (converted to js from newsgroup post).
* Date: 16 May 1999
* Web: http://www.winscripter.com
* Note: Rename this script findZip.js
*
* Copyright 1999 Daren Thiel
**/
// Create a shell object
var ws = new ActiveXObject( "WScript.Shell" );
// Store the registry key we are looking for in a variable.
// You can also plug this value directly into regRead()
var key = "HKCR\\WinZip\\shell\\open\\command\\";
// Find the value stored for this key.
// If you get an error here you probably don't have WinZip.
var zip = ws.regRead( key );
// The key is store with a '%1' at the end. We should
// strip this off to get the path to winzip.
var zip = zip.substring( 0, zip.indexOf( " " ) );
// Tell them what you found.
WScript.Echo( zip );