Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th April 2007, 19:09   #1
jackkoho
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.
jackkoho is offline   Reply With Quote
Old 17th April 2007, 19:38   #2
jackkoho
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.
jackkoho is offline   Reply With Quote
Old 24th April 2007, 18:09   #3
jackkoho
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.
jackkoho is offline   Reply With Quote
Old 24th April 2007, 18:14   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 24th April 2007, 18:17   #5
jackkoho
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?
jackkoho is offline   Reply With Quote
Old 24th April 2007, 18:19   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 24th April 2007, 18:20   #7
jackkoho
Member
 
Join Date: Oct 2006
Posts: 70
Thanks. I will try this and see if it works out.
jackkoho is offline   Reply With Quote
Old 25th April 2007, 16:28   #8
Tomxx87
Junior Member
 
Join Date: Apr 2007
Posts: 1
Send a message via ICQ to Tomxx87
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?
Tomxx87 is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump