Archive: user only vs. admin vs. everyone install


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.


other options i have considered are using the installoptions pages or somehow using accesscontrol, but the latter seems kind of unclear to me.


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.


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.


Thank you for your reply. If I don't install into program files, where should I install to?


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.


Thanks. I will try this and see if it works out.


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?