Archive: SMPROGRAMS is wrong on Win9X


SMPROGRAMS is wrong on Win9X
I'm running version 1.98. One of our testers noticed that the shortcuts weren't getting set up correctly on Win9X.

We install our software to the machine, not per-user, so I had SetShellVarContext to "all". On Win2K/XP, this works fine because all of the registry entries are set on both HKLM and HKCU, but on 9X systems, the registry entry queried by the code isn't set. As a result, I was making shortcuts in the TEMP folder.

I worked around this by not using SMPROGRAMS, but the code needs to be fixed to fail over correctly on Win9X.


This bug has been fixed in NSIS 2.
Please be advised that NSIS 2 is still in beta stages, though pretty stable at the moment.

If you want you can look queryShellFolders from util.c of NSIS 2 and apply the myRegGetStr line chnage to 1.98.


Look here to see what I said about NSIS 2 to someone else:
Winamp NSIS forumitem 758990