Install Action Script Example
Previous Top Next

'THINSTALL_RUNTIME_SCRIPT
'This script will run an EXE during installation and a different one after installation
'The EXE can be: 1) The EXE being installed, 2) An exe extracted on the hard drive, or 3) an virtual in the virtual filesystem
'Note: Earlier versions of Windows do not have the Wscript object installed, to support these systems add the file
'C:\WINDOWS\System32\wshom.ocx to your Thinstall project and record registry script for this OCX

Function OnInstallFinish
set wshShell = CreateObject("Wscript.shell")
wshshell.run("some_install_helper_command.exe")
set wshshell = nothing
end function

Function OnUninstallBegin
set wshShell = CreateObject("Wscript.shell")
wshshell.run("some_uninstall_helper_command.exe")
set wshshell = nothing
end function