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