Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 22nd December 2016, 07:36   #1
bruno
Junior Member
 
Join Date: Dec 2016
Posts: 9
RequestExecutionLevel user and installation in ProgramFiles

Hello

On windows 8 and next,
Is it possible to install my application in Program Files and write in HKLM with a standard windows user and an nsis script with RequestExecutionLevel user ?

I have problem with it so I have to be with a RequestExecutionLevel admin.

If my script and my application have a windows certificate it changes something?

If not I need to change my installation directory?

thanks
bruno is offline   Reply With Quote
Old 22nd December 2016, 11:33   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
"REL User" will never allow you to write to $ProgramFiles/HKLM if UAC is enabled.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 22nd December 2016, 13:11   #3
bruno
Junior Member
 
Join Date: Dec 2016
Posts: 9
Thanks Anders.
So i need to change directory to lower the level of my install for a standard user.
bruno is offline   Reply With Quote
Old 22nd December 2016, 13:29   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
Quote:
Originally Posted by bruno View Post
Thanks Anders.
So i need to change directory to lower the level of my install for a standard user.
Yes and you can only write to HKCU in the registry. You can set $InstDir to $LocalAppData\Programs\MyApp for example...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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