Wise Scripts Library - Samples

2Drives
1.0      
Example to show how to install components to two different drives and show space
API Sample
8.x  
Demonstrates advanced API calling and user interface techniques in Wise scripts. Requires: Windows 95/98/ME with file and print sharing installed.
AppKill16
x.x  
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
Beep
x.x  
How to make Wise generate a system beep (using API calls)
Browse
8.x  
Demonstrates how to use the standard Windows "Browse for Folder" dialog.
BusyMsg
x.x  
Wise script that demonstrates how to display a status message in a dialog during time consuming script actions. Does not use custom billboards
CD-ROM
x.x      
Example listing all CD-ROM drives
Change Registry Security
8.x  
Script to change Registry Key permissions
Copy2Clip
7.x  
Sample script demonstrating how to copy a string to the clipboard in Wise.
CPU Info
8.x  
Script using a tiny DLL to retrieve processor speed as well as additional vendor specific model and stepping information
Create SQL Database
8.x  
Example of a create database script for SQL Server. OSQL.zip file required
Cursor
x.x  
Contains a Wise script that demonstrates how to change the cursor to busy
Date Difference
8.x  
This script will calculate the number of days a specific file resides on the local system.
Delete Install when complete
x.x  
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!
DialUp Networking
x.x  
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.
DirWalk
8.x  
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.
Disk Size
8.x  
Sample script demonstrating how to determine the total size of a partition.
Display Bitmap
8.x  
Sample script demonstrating how to display a local graphic in a Wise dialog.
Drives
x.x      
Example listing network and local drives in different list boxes
Enum Keys
x.x  
Demonstrates how to enumerate all subkeys in a certain registry key.
Enum Window Handles
x.x  
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
Enum Windows
x.x  
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
Examples for Use in Everyday Scripting
9.0  
You may use this script as a reference for your own projects or just copy and paste for use with same variables. Good Luck!
Expiration By Vol Label
9.x  
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.
Favorites Folder to HTML
x.x  
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!
File Version
8.x  
Get all the information from the version resource of Win32 executables (*.EXE, *.DLL, *.SYS, *.OCX, *.VXD).
FileSearch
x.x      
Ask for file extension, and creates list of all such files on drive
Fix DLL SelfRegistration Failures
9.x  
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.
FTP Copy
8.x  
Simple example how to copy a file from a ftp site
FTPUp
8.x  
Sample script demonstrating how to upload a file to an FTP server using WININET APIs. Requires: IE 3.0 or higher.
Get Adapters Info
x.x  
Sample script demonstrating how to use the GetAdaptersInfo API
Get IP
8.x  
Sample script getting the IP address of every machine visible on the network
Get Screen Resolution
x.x  
This script uses the GetSystemMetrics API call (function) in USER32.DLL
Get System Info
x.x  
This script gets the current registered owner, OS version and CD Key.
GetInfo
x.x      
Creates file listing with date/time. For use with install.wse.
GetSites
x.x  
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
GetUserName
x.x  
Contains a Wise script that demonstrates how to get Windows User Name and show it
Go Back
7.x  
Sample script demonstrating how to navigate between two wizard loops
Hex 2 Num 2 Hex
7.x  
Example scripts for Convert decimal -> hex and hex -> num
Ini Info
7.x  
Sample script demonstarting how to get all section names in an INI file
IniToReg
x.x  
Demonstrates how to load INI file information into Registry
Install
x.x      
Unfinished file. Made to install files that user responds to install. Reads in text file created by Get_info.wse to find file information.
Java Check
9.x  
This script will discover what version of Java is installed and return it to a variable
License
8.x  
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.
Link Info
x.x  
Retrieves a shortcut's target, description, command line arguments and working directory.
Long 2 Short
7.x  
Alternate method to convert a path name into its short form that works properly also on Novell servers.
Low2up
x.x      
Capitalizes the first letter of words in a sentence
MailTo
x.x  
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
Map NetDrive
7.x  
Example scripts for mapping a network share drive
MifGen
x.x  
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
Net User Enum
7.x  
Sample script demonstrating how to enumerate all user accounts on a computer
NetShare Get Info
9.x  
Sample script demonstrating how to retrieve share remark Windows NT/2000/XP environment
NetUser Get Groups
7.x  
Sample script demonstrating how to retrieve group membership for a particular in Windows NT/2000
Notes Version
9.x  
Example script showing how to use the Lotus Notes version utility (nwhatver.exe) and pull the results back into Wise.
NTService
x.x  
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
One Instance
7.x  
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.
OutlookAcc
x.x  
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
Overlap
7.x  
Sample script demonstrating how to properly overlap controls in a Wise dialog
Parse Path Statement entries
8.x  
This script allows you to parse the path statement to remove unwanted entries from the system path.
PIFEdit
x.x  
Sample script demonstrating how to modify a shortcut to a DOS program (.PIF file) using "Read/Write binary file"
Pop Dlg
7.x  
Demonstrates how to programmatically pop up another dialog in a dialog set
Post HTTP Example
x.x  
Post HTTP Example
Randomize
8.x  
Script demonstrating how to generate a random number in Wise.
Refresh Desktop
x.x  
Script demonstrates how to refresh desktop.
Registration
x.x  
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.
Registry Edit
7.x  
Demonstrates how to edit the registry using API calls.
Rename Key
8.13  
Demonstrates how to rename a registry key. Requires: regedit.exe
Replace_spaces
x.x  
Detects spaces in a string and replaces them with any character/s you specify
Report Event
8.x  
Sample script demonstrating how to write an event into the NT/W2K/XP Application event log using API calls
Run As
8.x  
Demonstrates how to run a program under a different account in Windows 2000/XP.
Send Var To CMD
7.x  
This script demonstrates the use of sending Variables to a command line
Set Dialog Position
x.x  
Sample script demonstrating how to reposition a dialog at runtime. The desired X and Y position, in screen coordinates.
Set Font
8.x  
Demonstrates how to change the font used by controls in Wise dialogs at runtime.
Set Key Security
7.x  
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.
Sort
8.x  
Shows how you can sort the lines in a .txt alphabetically.
Sort to Variable
9.x  
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.
Start Menu
x.x  
Demonstrates how to select Start Menu groups
StartSplit
x.x      
Sample Displaying Per-User and Common groups of Start Menu in different combo boxes
Swap
x.x  
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)
Test FAT
x.x  
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
UnWise
x.x  
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
User Utils
7.x  
Although not complex in nature, this script runs various DOS and Windows Utilities
Wise Crypt
8.x  
Encryption and decryption of text in Wise scripts
Wizard Progress
8.x  
Sample script demonstrating how to implement a "Wizard Style" progress message
All trademarks are the sole property of their respective owners. Generated Sep 24 2017 22:36:02 EDT
Valid HTML 4.01 Transitional Valid CSS!

Locations of visitors to this page