I have an MSI installer that fails if it is running over remote desktop. (Unless it is run with the /admin or /console option so that it gets session 0)
I want to use a VBScript custom action to determine if I am running as Session 0. I've learned that I can use two WMI calls to determine this:
- GetCurrentProcessID()
- ProcessIdToSessionId()
However, I have no clue how to call these things in VBScript. And ideas?