Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 31st August 2001, 14:58   #1
Chris64
Junior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 2
Exclamation 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
Chris64 is offline   Reply With Quote
Old 1st September 2001, 06:37   #2
DuaneJeffers
Major Dude
 
DuaneJeffers's Avatar
 
Join Date: May 2001
Location: Winter Park, FL
Posts: 1,776
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

Website

Yeah, that's pretty much it. :-\
DuaneJeffers is offline   Reply With Quote
Old 1st September 2001, 12:20   #3
pjw62
Senior Member
 
Join Date: Aug 2001
Posts: 108
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.
pjw62 is offline   Reply With Quote
Old 3rd September 2001, 00:53   #4
prodangle
Major Dude
 
prodangle's Avatar
 
Join Date: Nov 2000
Location: Scotland
Posts: 718
calm down chris64, try to be a bit nicer. No need for the mention of rival installers



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)
prodangle is offline   Reply With Quote
Old 4th September 2001, 12:40   #5
Someonebutnotme
Guest
 
Posts: n/a
Quote:
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.
  Reply With Quote
Old 10th September 2001, 14:17   #6
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
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=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 17th October 2001, 13:14   #7
Chris64
Junior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 2
Question 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
Chris64 is offline   Reply With Quote
Old 18th October 2001, 06:36   #8
nsfis
Junior Member
 
Join Date: Oct 2001
Posts: 29
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"
nsfis is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump