builds 2000-02-25. 0. Run on Mac or Linux. 1. Go to http://jimbob/trigger2.html 2. Select any of the WinProfile or WinReg scripts: a_winprofile_writestring, a_winprofile_getstring, a_winreg_createkey, ... 3. Trigger. OK. 4. Check logfile. Result: Install FAILS with -229 error (script error). Expected: Script aborts with error indicating that it's not supported on these platforms. i.e. -202 (access denied), -214 (does not exist), or create a new error for "not supported" ...
Those are windows only APIs. It is correct that it is a script error (-229) if you're trying to use it on Mac & Unix. It would be nice to have a better error msg, but script writers should know better not to use those APIs on Mac & Unix. Marking this bug as an enchancement.
Severity: minor → enhancement
Target Milestone: M19
On Mac and Linux the GetWin etc APIs return an object. You must check this object for null, because if it's null you didn't get it. Attempting to call methods of null will cause a script abort as expected.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.