Thursday, August 16, 2012

Uses of iExpress.exe

You can turn scripts into redistributable executable files with existing software in Windows Vista and Windows XP.  Windows Vista and Windows XP both have a rarely used tool known as IExpress.  The tool allows you to wrap an executable file around your scripts so that you can distribute any script as an .exe rather than distributing a "raw" script file (.bat, .vbs, etc.).  This eliminates the need of explaining to non-technical users how to execute scripts through the Command Prompt.  This is an extremely useful tool for turning Visual Basic script files and other non-executable scripts into one-click executables.  If you would like to learn more information about IExpress, you can read the documentation at Microsoft TechNet.
Before you begin the installation process, you will need two files.  The first file is the script you would like to bundle into the executable.  The second script must be the batch file that you use to execute your script.  For example: if your script is a visual basic script (.vbs) you need a batch file (.bat) that will run your script.  The following are two simple examples of scripts to help drive home the point: hello.vbs echo "hello" runhello.bat cscript hello.vbs If you are unfamiliar with visual basic scripts and batch script syntax the "cscript" command shown above is needed to execute the hello.vbs file. Launch IExpress in Windows Vista by clicking the Start button and typing iexpress.  In Windows XP, launch IExpress by going to Start >> Run and typing iexpress. Start a new project by selecting Create new Self Extraction Directive file and click Next.

Select Extract files and run an installation command and click Next.

Type a name for your executable and click Next.

You will be asked whether you want to prompt the user to confirm the installation of their package.  For the purpose of this tutorial click No prompt and then click Next.  If you wanted to prompt a user with a message you could choose "Prompt user with" and enter your message in the box below the prompt.

Similarly, you will be prompted whether or not you would like to display a license agreement. For the purpose of this tutorial choose Do not display a license and click Next.

No comments:

Post a Comment