saurabhAggarwal
31st January 2005 14:42 UTC
Limited user accout
Hi
I have created one installer using NSIS. Accounts that have limited access will not able to run my setup. ie only admin can run my setup.
After administrator runs setup, one shortcut is added to the desktop, one folder is created in the start-programs.
But the problem is that when the user logins through limited user account he is not able to see that shortcut or SMPROGRAMS entries.
What registry entry is needed to cure this one
Thanks
scully13
31st January 2005 15:31 UTC
Take a look at SetShellVarContext in the documentation.
saurabhAggarwal
1st February 2005 04:14 UTC
hi
ok by using SetShellVarContext an shortcut is added to all the users in the machine. But I also want to add folder in the start menu just like it is added to admin account. The start menu folder has two things - one is shortcut to exe and another is shortcut to uninstaller.
Also one more problem is there - for limited access users openvpn is unable to find the adapter. It says "all tap adapters on this machine are in use" though with admin rights, it works well
scully13
1st February 2005 04:27 UTC
Just do "SetShellVarContext all" and set up your shortcut or shortcuts to all users and then call it again as "SetShellVarContext current" and then set up your shortcut for the current Admin user. To do "all" your user will have to have Admin rights but for current they won't. There are some user accounts though where the users aren't even allowed to create their own shortcuts. In those cases you probably can't install anything anyway so the Admin will be pushing the installs.
As for your second problem you may need to require Admin rights. If you could overcome the limitations of the current users rights what would be the point of having them. The Admin puts those rights in place just to stop such things as installing software or accessing certain things.
There is at least one plugin in the Archive that will get you the current users rights and then you can warn them or tell them they need to have Admin rights or whatever.
saurabhAggarwal
1st February 2005 05:18 UTC
Ok
Shortcut problem is fixed now
thanks
Lets talk about my second problem
its about OpenVPN. Did you know something about it.
for limited access users openvpn is unable to find the adapter. It says "all tap adapters on this machine are in use" though with admin rights, it works well
scully13
1st February 2005 13:20 UTC
The OpenVPN author covers your second issue in his FAQ. It's under "Why can't I run OpenVPN on Windows from a non-admin user account?".
Mikesch
1st December 2005 10:32 UTC
Originally posted by saurabhAggarwal
Ok
Shortcut problem is fixed now
thanks
What have you done to solve it?
Mikesch