Skip to content
⌘ NSIS Forum Archive

error opening file for writing msvcr100.dll

4 posts

bankeris#

error opening file for writing msvcr100.dll

NSIS - error opening file for writing msvcr100.dll.. C:\Windows\System32\

I've tryed with user which has Admin level, i've tryed with "Run as Administrator", i've tryed with Administrator user - no use..

I have even renamed msvcr100.dll and still getting same error.

It's my new pc, yesterday only got it, installed all Windows7 Ultimate updates and all Office 2010.

Maybe i'm missing something? im new with NSIS. I will appreciate any help.

on top:
RequestExecutionLevel admin
..

Section "dll" SEC02
SetOutPath "$PROGRAMFILES\banker\"
SetOverwrite ifnewer
..

SetOutPath "$SYSDIR"
File "..\..\DLL\msvcr100.dll"
JasonFriday13#
That file is a part of the Visual Studio 2010 C Runtime Redistributable, only the 'SYSTEM' can change that file. Just bundle the redistributable with your program rather than manually installing the files.
bankeris#
Originally Posted by JasonFriday13 View Post
That file is a part of the Visual Studio 2010 C Runtime Redistributable, only the 'SYSTEM' can change that file. Just bundle the redistributable with your program rather than manually installing the files.
You are probably right. Thank you 🙂
Afrow UK#
You can just extract it to your application installation directory rather than System32.

Stu