Wise Scripts Library - Samples
Example to show how to install components to two different drives and show space
Demonstrates advanced API calling and user interface techniques in Wise scripts. Requires: Windows 95/98/ME with file and print sharing installed.
Copy of the Application Kill.wse sample that comes with Wise that I've translated to 16-bit, so it can be used in a 16/32 Wise installation
Wise script that demonstrates how to display a status message in a dialog during time consuming script actions. Does not use custom billboards
Example listing all CD-ROM drives
Script using a tiny DLL to retrieve processor speed as well as additional vendor specific model and stepping information
This script will calculate the number of days a specific file resides on the local system.
This script shows an example of how to prevent a user from running an install more than once. The installer will create a VBScript to automatically delete the installation executable after execution, requiring the user to download the installation again if they wish to install on another machine. Also good for keeping good work out of bad hands!
Adds Dial-Up Networking Connections, can be run silent with no dialogs if variables are pre defined in script. Tested on Windows 95/98/NT. No addition files is need. The only limitation it has is the Internet Connection Wizard that is part of Internet Explorer 4 and later must be installed.
Sample script demonstrating how to recursively walk a directory tree and enumerate all files and subdirectories. As an example, the script adds up the files sizes to determine the total size of the directory.
Example listing network and local drives in different list boxes
This script sample will enumerate all window handles WITHOUT requiring any external dlls or additional files. It can also get the text and class of almost all handles enumerated
This sample DLL written in C can generate a list of all windows on the system, with options to restrict the list to only visible windows and/or parented windows. It demonstrates how a DLL can keep itself from being unloaded when Call DLL returns, so it can maintain state information. A Wise script that demonstrates how to call the DLL is also included
You may use this script as a reference for your own projects or just copy and paste for use with same variables. Good Luck!
Example script showing how you can implement an expiration date based off the date a CD was created. Used in cases where installation is time-sensitive, for example: Is good for only 60 days from the creation date.
A script that will read through Internet explorer Favorites folder and generate a HTM file with all the favorites listed in Hyperlink format. A friend asked me to do this for him, it seems a bit pointless but you never know. Somebody may find a use for it!
Get all the information from the version resource of Win32 executables (*.EXE, *.DLL, *.SYS, *.OCX, *.VXD).
Ask for file extension, and creates list of all such files on drive
UTIL for WSE files (1.0.1). - Fixes problem when Repackaging/SetupCapture some applications, and a VERY optimistic Self-registration routine in Wise 9. - Fixes errors like: "The application or DLL xxxx.DLL is not a valid Windows Image". - The util will parse the INSTALL.LOG for failures, and Edit your WSE file - turning OFF selfregistration on the DLL's who failed. - Updated version, allows you to turn off Self-registration on ALL "Install File" Items.
Sample script demonstrating how to upload a file to an FTP server using WININET APIs. Requires: IE 3.0 or higher.
Creates file listing with date/time. For use with install.wse.
For users of FrontPage, This Script will populate a combobox with a list of FrontPage Webs on a users machine. What you do with the results is up to you, this script lists all the files found in the web as an example. Developed and tested using Windows NT & FrontPage 98 but should work with win9x or FP 97
Unfinished file. Made to install files that user responds to install. Reads in text file created by Get_info.wse to find file information.
This script will discover what version of Java is installed and return it to a variable
Demonstrates how to implement an advanced License Agreement dialog with print function. The print feature uses API calls and does not depend on Notepad or Wordpad.
Retrieves a shortcut's target, description, command line arguments and working directory.
Alternate method to convert a path name into its short form that works properly also on Novell servers.
Capitalizes the first letter of words in a sentence
A Script for generating an email message from Wise script variables and placing it into Outlooks Outbox ready to send. Also has example of extracting a text file's contents and adding it into the email message. Needs Outlook installed and VBScript support on the system to function
INFINFO and UINFO are MIF file generators for use with SMS 2.0. This replaces the utility that used to ship with SMS 1.x which enabled you do create custom MIF Forms
Sample script demonstrating how to retrieve share remark Windows NT/2000/XP environment
Sample script demonstrating how to retrieve group membership for a particular in Windows NT/2000
Example script showing how to use the Lotus Notes version utility (nwhatver.exe) and pull the results back into Wise.
Shows how to deterimine if a Service is Running on a system. It also shows how to setup some service functions. This Program requires the Executable file SC.EXE that is available in the Win32 Software Development Kit (SDK) or in the Windows NT Resource Kit. SC is a command line utility that is normally used to develope services for your NT Environment
Here's a sample stub program that uses Call DLL and a mutex to detect another instance of itself. It's intended to be the program that Autorun.inf will start, on a CD-ROM with Autorun. It will then invoke the real setup and wait for it. But if this stub program is already running, it will immediately exit without invoking the real setup program. Requires: Windows 95 OSR2.
For adding new mail accounts to outlook 9x (not express). This script also demonstrates how to populate a combobox with all the Dial-Up Networking connections on the users machine by exporting and parsing registry files
This script allows you to parse the path statement to remove unwanted entries from the system path.
Sample script demonstrating how to modify a shortcut to a DOS program (.PIF file) using "Read/Write binary file"
A Script for opening a dialup connection during an installation and sending the results of user input in a dialog box to your specifyed email address. needs Mailsend.
Sample script demonstrating how to write an event into the NT/W2K/XP Application event log using API calls
Sample script demonstrating how to reposition a dialog at runtime. The desired X and Y position, in screen coordinates.
Grants everyone full access to registry keys by assigning a NULL DACL. Requires sufficient access rights to the keys. Note that this does not work recursively across all sub-keys. You have to set permissions on each separate sub-key.
Jimmy Huijgens script SORT shows how you can sort the lines in a .txt file alphabetically. I took Jimmy's script and changed it to use variables instead, so you can use it in the Dialog Script Editor in Custom Dialogs.
Sample Displaying Per-User and Common groups of Start Menu in different combo boxes
A script to easily manage your NT boot menu, add auto logon and password insertion to NT (no more CTRL,ALT & DELETE to logon) and the option of disbling the menu at boot time (rerun the script to enable menu again)
A sample script. Call DLL to invoke the GetVolumeInformation API. It returns a "file system name", which comes back as "FAT" on a FAT16 drive. You can use it for getting information about File System Type
UNINSTAL.WSE is a modified version of Wise's Uninstall script, that has been updated to always place UNWISE.EXE in the windows directory and to run UNWISE.EXE with the /A /S /Z %INST_LOG_PATH% parameters