Hai all,
Is there any way to find the user has got the administrator privilege. And only if he got that the installation should continue otherwise i need to abort the installation by just giving his the reson. Is there any way to do this? Thanks a lot.
Any way to find the user privilages
9 posts
DLL in the plugin-folder
Check out your plugin-folder of your version, there is a userinfo.dll and somewher there is an example script within the package of latest NSIS
MO
---- [U P D A T E] ----
The script is in the folder:
Path\to\NSIS\Contrib\UserInfo
😉
Cheers
Check out your plugin-folder of your version, there is a userinfo.dll and somewher there is an example script within the package of latest NSIS
MO
---- [U P D A T E] ----
The script is in the folder:
Path\to\NSIS\Contrib\UserInfo
😉
Cheers
Re: DLL in the plugin-folder
Hi,
Bene
Hi,
Originally posted by Mosestycoonthis DLL works fine, exept on Win9x with Novell-Client. The User has the right to install everything (no admin), but the script returns a username and a Usergroup depends on Novell. Maybe there is a way to change this behavior.
Check out your plugin-folder of your version, there is a userinfo.dll and somewher there is an example script within the package of latest NSIS
Bene
Win9x is no multi-user platform. Everyone has the right to install software.
Originally posted by Joost VerburgBut with Novel-Client UserInfo returns a Username and a Usergroup:
Win9x is no multi-user platform. Everyone has the right to install software.
The example ends up here:
StrCmp $1 "User" 0 +3
MessageBox MB_OK 'User "$0" is just a regular user'
and NOT here:
Win9x:
# This one means you don't need to care about admin or
# not admin because Windows 9x doesn't either
MessageBox MB_OK "Error! This DLL can't run under Windows 9x!"
Bene
You can add a registry check for Win9x.
Are you saying Novel installs advapi32.dll?
Originally posted by kichikYes, I think so. advapi32.dll exist on the system.
Are you saying Novel installs advapi32.dll?
Originally posted by Joost Verburguname -a? 😁
You can add a registry check for Win9x.
Windows is not my best known OS 🙂
Bene
The latest version in CVS now always returns Admin if it's on Windows 9x and the DLL actually loads. Can anyone please test if the DLL loads on Windows 95? If it doesn't load you'll get a message saying the DLL is not built for Windows 9x (using the Contrib\UserInfo\UserInfo.nsi example).