Skip to content
⌘ NSIS Forum Archive

NSIS System wide installation

5 posts

hnmdijkema#

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 😁 users.

Best whishes,

Hans Dijkema
Guest#
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.
Guest#
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.