Archive: NSIS System wide installation


NSIS System wide installation
Is it possible to use NSIS to create an installer that will do a system wide installation under Windows 2000?

With system wide I mean: for ALL :D users.

Best whishes,

Hans Dijkema


Beste Hans,

try this:

ReadRegStr $R9 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common Programs"
StrCmp $R9 "" 0 Continue
MessageBox MB_OK "No all-users startmenuprogramsdir"
Abort ; or anything else...
Continue:
MessageBox MB_OK "$R9 is the startmenuprogramsdir of all users."


Good luck, greetz, Hendri.

Hey, will this also work on Win98 or something?


Hans,

on Win98, the registry check results in an empty string.

So check whether the string is empty and when it is, just use $SMPROGRAMS to install shortcuts to. Otherwise use $R9.

Greetz, Hendri.


Thanks! So that's not as hard as I thought. Good thing. :) :up: