quote:
Does anyone have this working in a secure fashion for VBS files?

I'd assume you'd need special code handles in the script itself, to delete itself once excuted. Does it work?

You can encrypt and execute any type of file. WHen the unencrypted file finishes executing all files extracted from the package will be automatically deleted by KiXcrypt.

You will need to create a custom execute command (the "-e" option") and switch off the KiXtart semantics (the -k option).

What KiXcrypt cannot do is tell when it is safe to delete the unencrypted file if it is still running. Not all interpreters will allow it, and the file may be held in use by the OS while it is running, in which case it won't get permission to delete it.

I can delete the KiXtart file because it is loaded into memory and executed there - as soon as the script starts to execute I know that the disk file is no longer needed.

If the same is true of the VBS file you can simply add your own delete routine to the script. The unpacked filename is in %KIXCRYPTFILE% - just delete this file when your script starts.