|
|
|
|
#1 |
|
Member
Join Date: Oct 2006
Posts: 70
|
user only vs. admin vs. everyone install
My thinking on this is to use the userinfo plugin and then do an if then on every section... is this the right approach? I'm not even sure you can include a section in a conditional. Anyhow, any help would be appreciated.
|
|
|
|
|
|
#2 |
|
Member
Join Date: Oct 2006
Posts: 70
|
other options i have considered are using the installoptions pages or somehow using accesscontrol, but the latter seems kind of unclear to me.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2006
Posts: 70
|
just wondering if anyone had any feedback on using accesscontrol to do a user vs everyone install.
Should I get the account type with userinfo then somehow use accesscontrol to install? I'm just sort of unclear as to how to use accesscontrol. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
The AccessControl only modifies access to certain files or registry keys. What you want is to check if the user is an administrator and install to the proper locations in that case. If the user is just a plain old user, don't write into HKLM and don't install into $PROGRAMFILES.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2006
Posts: 70
|
Thank you for your reply. If I don't install into program files, where should I install to?
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
Somewhere where the user can write files, like his My Documents folder. It's one of the less ideal places, but you can be sure it's writable.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Member
Join Date: Oct 2006
Posts: 70
|
Thanks. I will try this and see if it works out.
|
|
|
|
|
|
#8 |
|
Junior Member
|
Hello all together!
I don`t have the same Problem but its close to yours. I have to program a Installer where a few Files hafe to extract, and after that step some of them should be started by the Installer. Till here it works. But one of the them must be started from a nother user with admin rights. But i don`t know how! There must be a parameter which instructs the installer to run the specific .exe as User p3.vpn and with Pass. XXXX e.g. Till today my command looks like this: ExecWait '"C:\KillProcess.exe" probeService current|p3.vpn' but this does not work. Do you have any ideas? |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|