Writing a script for a custom .msi
installer action. When my script is invoked by an installer, you can get installer properties via Session.Property("PropName")
If you don't invoke via installer you get a runtime exception. I want my script so that I can develop and debug without the installer. How do I catch this error?
I want to do something like:
if Session != null
setting=Session.Property("prop1")
else
setting="SomeOtherSetting"
end if
Best Answer
Are you looking for the VBScript syntax to check for null?
How about this: