The "JsCaEntry" Command |
Some available VBSCRIPT functions are:
More work here...
EXAMPLE |
;--- Create a JSCRIPT and add to the binary table --------------------------- <$JsCa Binary="SimpleCa.js"> var some = 1 <$JsCaEntry "Install"> { try { CaMsgBox("E", "test of the error box") } catch(e) { CaDebug(0, "Install_1 function: trapped") } } <$/JsCaEntry> <$JsCaEntry "UnInstall"> UserFunction("Uninstalling...") <$/JsCaEntry> //========================== function UserFunction(Text) //========================== { CaDebug(0, "Doing something...") CaMsgBox("I", Text) CaDebug(0, "Finished doing something...") } <$/JsCa> ;--- Call the above script during install and uninstall --------------------- <$JsCaSetup Binary="SimpleCa.js" Entry="Install" Deferred=Y Seq="InstallFiles-" CONDITION=^<$CONDITION_INSTALL_ONLY>^> <$JsCaSetup Binary="SimpleCa.js" Entry="UnInstall" Deferred=Y Seq="InstallFiles-" CONDITION=^<$CONDITION_UNINSTALL_ONLY>^>