Archive: Installation on WinNT4.0: All User!!


Installation on WinNT4.0: All User!!
Hi all,
I have the following problem: On a WinNT4-PC: If the admin installs my program a link in the startmenu of the admin is created. How can I detect in my script, if the admin of the WinNT-system is logged in and tries to install my program and then to let choose him, if he wants to create a shortcut in the AllUser-startmenu or the startmenu of the admin. Hopefully somebody can help me.

General: If this option is actually not supported in NSIS, the developers should include this. ;) All well-known installer can this and NSIS should support it, too :)

Regards
Christian


First off, NSIS is developed by one guy, Justin Frankel. If you don't know who this is, then you are in the wrong forums.

1)From what I know, all NT functions are not added into NSIS for many reasons. This was originally for people who develop programs for Win98 and WinME/2000. This is supposed to be a small complex installer and something that was not suppost to take up much space.

-DJ


Use a MessageBox;

MessageBox MB_YESNO "Put links in the ALLUsers menu?" IDYES AllUsers
; code for admin menu
AllUsers:
; code for AllUsers

for just the local machine or machines that dont have a set start menu copied by script on login, I think it would be safe to GetParent dir of the admin's start menu a few times, then append the all users directory and start menu.. unless you just read the value from the registry (sorry, dont know key off hand).

You would need to put it in your script because as Duane says, no one wants a huge exe header wasting precious clock cycles deciding whether it is running on winnt or not.


calm down chris64, try to be a bit nicer. No need for the mention of rival installers

:D :D :D

You could always cheat and send the link to "C:\Documents and Settings\All Users "should work in 99% of cases but it is a bit messy
I dont know whether a "$STARTMENU\..\..\All Users" (going 2 dirs back from the current user's Sm and then into AllUsers) thing would work, but even if it does this could be messy if that users SM isn't in the standard place - I can't be bothered trying it right now but it might be worth a shot

in a multiuser win9x system there is also an All Users folder in $WINDIR\All Users\Start Menu btw

(sorry for promoting messy tacky scripting here - Ive never done anything like that myself - honest)


Originally posted by DuaneJeffers
First off, NSIS is developed by one guy, Justin Frankel. If you don't know who this is, then you are in the wrong forums.
Jesus H Christ man, everyone is welcome whether or not they know if Justin creates this by himself.

And, while Justin is the primary developer, others have contributed to the code and are credited with those contributions. So developer*S* would indeed be the correct usage. If someone else figured out an elegant and workable solution to his problem, what would be wrong with that?

-=Gonzotek=-


Do nobody use NSIS with WinNT?
Hello all, :)
Do nobody use NSIS with Windows NT 4.0? I cannot imagine that! ;) How do you solve this problem? I think to display a message-box and ask the user is not the best solution, because many *normal* win9x would be VERY confused, if they would be confronted with a NT-question!... Most of the *normal* users of win9x don't know what a "All user" and a "User"-startmenu is!
Can somebody give me an advise how to solve this problem? Otherwise I am not able to use this nice, small NSIS-installer ;) And I really like the small size !!! :)

Regards
Christian


Instead of $SMPROGRAMS I find out the right directory for All users this way:

ReadRegStr $9 HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common Programs"