jackkoho
17th April 2007 20:09 UTC
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.
jackkoho
17th April 2007 20:38 UTC
other options i have considered are using the installoptions pages or somehow using accesscontrol, but the latter seems kind of unclear to me.
jackkoho
24th April 2007 19:09 UTC
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.
kichik
24th April 2007 19:14 UTC
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.
jackkoho
24th April 2007 19:17 UTC
Thank you for your reply. If I don't install into program files, where should I install to?
kichik
24th April 2007 19:19 UTC
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.
jackkoho
24th April 2007 19:20 UTC
Thanks. I will try this and see if it works out.
Tomxx87
25th April 2007 17:28 UTC
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?