View Single Post
Old 6th July 2022, 20:48   #15
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,534
A very delayed update here.

Quote:
Originally Posted by Anders View Post
As far as crashes go, one thing you should fix is the w vs BSTR problem.
Turns out this was very true. On 2000 CLSID_WbemLocator requires a real SysAllocString when calling ExecQuery, CLSID_WbemAdministrativeLocator accepts a plain wide string. XP is happy with the wide string hack for both interfaces.

Neither CoInitializeSecurity nor CoSetProxyBlanket exist on 95RTM but that does not explain why 2000 delay loads CoInitializeSecurity.

I can also confirm that CoSetProxyBlanket on the svc interface can be used instead of CoInitializeSecurity, even on 2000 (Not that it matters in NSIS).

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote