![]() |
Error Code 87 with CABSetup plugin
I am attempting to make a small NSIS script that will help me in the creation/extraction of cab files. Currently, I am playing around with the CABSetup sample files to learn more about how to use the plugin.
I was successful in creating the cab file. Now, I wish to extract from the cab file. However, I get an error code 87 before anything happens. I'm wondering if anyone is able to help me figure out what's going on? A lot of the code is just copied from the sample, but here it is anyhow: code: And here is the log output: code: If anyone has any ideas, let me know! I could use the help. I have never worked with cab files before. Thanks! |
Awww, dang. I just figured out why it didn't work...
code: is wrong and it SHOULD be code: |
Any positive non-zero return code from the CABSetup functions will be a value that could be returned from the GetLastError Windows API function. The value -1 is returned if the normal error code could not be returned and should only happen if the system is extremely low on memory i.e. there is less than the length of an NSIS string free.
Error 87 is as follows (from MSDN): ERROR_INVALID_PARAMETER 87 0x57 The parameter is incorrect. As you correctly noticed, one of the parameters passed to the function was incorrect - trying to extract files without a valid source cabinet or target path currently counts as specifying invalid parameters for Extract. Sounds like it might be an idea to add 87 and its meaning to the commonly returned error codes for each function in CABSetup.txt; I will do this for the next update. Duncan |
| All times are GMT. The time now is 17:55. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.