New in PrimalScript 2007: Evolved Script Packager

The script packager in PrimalScript 2007 has undergone an overhaul and is now the Evolved Script Packager. You can use this feature to package VBScripts, HTAs and PowerShell scripts into self-contained executables. You can even specify alternate credentials.

In previous versions, you were limited to using the Windows Script host to execute your packaged script. Now you can use the SAPIEN Script Host which will run everything in memory. The script is not written to the hard drive as a temp file. You don’t have to deploy any additional software either. The SAPIEN Script Host is packaged with your script so everything is in one file.

esp-general.png

When you start the script packager wizard, give you package a name. Later, if you want to repackage you can use the Load button to get the settings you last used. The output file is the name and path of the EXE file to create. You can select your own custom icon file or use the default.  You’ll need to pick an appropriate choice for Execute With. The drop down shows you what types of scripts or files you can encapsulate. If you select PowerShell, it must be installed on any computer where you will be running the packaged script.

esp-folders.png 

The folders selection lets you control where the packaged script will be extracted or which folder will be treated as the working directory.

esp-security.png

Select the Security setting to specify a set of alternate domain credentials.  Use the user principal name (UPN) format.

esp-files.png

Finally, select Files and add the scripts and any necessary data files. You can add multiple scripts and they will execute sequentially.

When you click OK, your package is built and the settings saved. If you need to re-package, restart the wizard and load the script package.

Packaging scripts is an easy way to hide your code from curious eyes (or to safely hard code alternate credentials). Although it is not impossible. Given the right set of permissions, expertise and software it could still be possible for a determined user to get at the contents of your packaged script. This will be true of any script “packager”.

We encourage you to take PrimalScript 2007 and  the enhanced script packager for a spin. There is a 45 day evaluation period where you can package scripts and test all you want.