Old 22nd February 2013, 09:00   #1
tevkar
Junior Member
 
Join Date: Feb 2013
Posts: 1
NSIS bails out if installed to Program Files directory

Hi,

I use UserMgr plugin to create a service account user and performing some SID-related operations (find localized names of built-in groups ...). In addition, I use Simple service plugin to install a service. My installer requires to run with admin privileges. I've observed that the installer bails out if it tries to install to "Program Files" directory. Same happens both on Windows 7 and Windows 2008 R2. Everything goes fine if the destination directory is something else outside. I wonder if some built-in software protection mechanisms reacts to direct dll calls from plugins.

Has anyone experienced the same ? Any clues how to get around ?

Thanks.
tevkar is offline   Reply With Quote
Old 3rd March 2013, 06:40   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
What do you mean by "bails out"? Does it crash? Do you get an access violation? Does it simply exit? Does it just fail to write files?

One thing I would check is compatibility mode. If it's set in the Properties dialog, then that might cause some issues. Microsoft has some shims for handling Program Files. They have the whole virtual store thing that redirects Program Files writes to %LOCALAPPDATA%\VirtualStore.

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
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