Closed
Bug 29512
Opened 25 years ago
Closed 24 years ago
WinProf & WinReg APIs return -229 on Mac & Linux. Should be another error code.
Categories
(Core Graveyard :: Installer: XPInstall Engine, enhancement, P3)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: depman1, Assigned: cathleennscp)
Details
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
Comment 2•24 years ago
|
||
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
Closed: 24 years ago
Resolution: --- → INVALID
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•