' Wise for Windows Installer utility to recompile a installation
' For use with Windows Scripting Host, CScript.exe or WScript.exe
' Copyright (c) 1999, Wise Solutions, Inc.
Option Explicit
'global variables
Public Installer ' Wise for Windows Installer object
Dim Args ' Command line arguments object
Dim strSourceFile ' Source file to open (WSI)
Dim strTargetFile ' Target file to save as (MSI)
Dim I
Dim nPos
Dim WiseProperties ' Dictionary object to hold Wise properties
Dim WiseMediaOptions ' Dictionary object to hold Wise media options
Dim strProp
Dim strMedia
Dim propKeys
Dim mediaKeys
' Parse command line arguments
Set Args = Wscript.Arguments
If Args.Count < 1 Then
Wscript.Echo "Usage: CScript.exe " & Wscript.ScriptName & " [/O