Questions tagged [system32]

System32 is a folder, in the directory represented by the environment variable %windir%, that contains shared libraries and some applications (Control Panel, Command Prompt, etc.) necessary for Windows, and Windows applications, to run.

System32 is a folder, in the directory represented by the environment variable %windir%, that contains shared libraries and some applications (Control Panel, Command Prompt, etc.) necessary for Windows, and Windows applications, to run.

118 questions
3
votes
1 answer

LoadLibraryW() failing to load DLL in System32

I'm trying to load a DLL that was installed with a printer driver in the C:\Windows\System32\ folder with the following code: LoadLibraryW(L"C:\\Windows\\System32\\MagAPI.dll"); GetLastError() is reporting that "The specified module could not be…
Justin G
  • 776
  • 1
  • 10
  • 25
3
votes
1 answer

Why can't I run my exe in system32?

I made a program and compiled it. It works as expected in the debug folder. I took it out and put it in system32 but it wont run. It gives this error: .NET Framework Initialization Error Unable to find a version of the runtime to run this…
Daffy
  • 841
  • 9
  • 23
3
votes
3 answers

Can not get msconfig .exe to run in the system32 folder shellexecute Delphi

Im on Win 7 64b. Im trying to run msconfig from my delphi app. The msconfig.exe file is in the system32 folder . I copied the msconfig.exe to the c:\ and it works great. This looks like some kind of permission issue. var errorcode: integer; begin …
grant1842
  • 357
  • 1
  • 7
  • 23
2
votes
1 answer

Python script execution directory changes when I execute outside of Console

TLDR: I want to change the working directory of my script to the script file's location(instead of system32) when i run it by double clicking on it. I have a really annoying problem I couldn't solve. I am building a python script that will take 4…
2
votes
0 answers

Why does my WIX installer not copy the richtx32.ocx to system32 dir?

My WIX (3.5) installer should copy the richtx32.ocx file to the windows\system32 dir and register it by using some command line statements but it does not work. The file is not copied to the folder.
Marcus
  • 1,105
  • 2
  • 21
  • 35
2
votes
2 answers

Why is npm prefix always set to system32 on Windows 10?

I've just installed Node v4.4.7 on Windows 10 but I am having an issue where npm doesn't find the package.json file when I run npm install in the proper directory. The error I get is ENOENT: no such file or directory, open…
Goibon
  • 251
  • 3
  • 17
2
votes
1 answer

Framework/Framework64 and System32/Syswow64

I built my project as 64bit (not ANY CPU) but specifically 64bit. All the dll's are 64bit; most of the them are managed code (C#), and a few files are unmanaged (C++ code). I am creating a Installer in Installshield and I need to register dll's. I…
Pawan Kumar
  • 247
  • 6
  • 21
2
votes
3 answers

Programatically get system32 path in command prompt

I'm using a command process in another program that for some odd reason does not have the system32 set in the path environment variable. I can use the %comspec% variable to get the path C:/windows/system32/cmd.exe, but I need to just have the folder…
2
votes
2 answers

How to load a dll in Tcl?

What I have tried (running Tcl and Tk 8.6.0 on Windows): load D:/toot/bar/em.dll load "D:/toot/bar/em.dll" load D://toot//bar//em.dll load "D://toot//bar//em.dll" load D:\toot\bar\em.dll load "D:\toot\bar\em.dll" load D:\\toot\\bar\\em.dll load…
A T
  • 13,008
  • 21
  • 97
  • 158
2
votes
3 answers

Ruby Dir.foreach in System32 misses files / File.exists? returns false for existing files

When I print out all files in the windows 7 system32 directory using ruby, some files are missing. I use this simple directory iteration: Dir.foreach("C:\\Windows\\System32") do |fname| puts fname end I am specifically looking for python27.dll,…
CodeSalad
  • 1,375
  • 2
  • 14
  • 22
2
votes
3 answers

Preventing WM_DEVICECHANGE from dispatching

I'm developing a Windows 7 application which has to prevent WinDVD from triggering new disc availability when inserted (i.e. inserting a DVD). Background information: I'm working out this little application for a company which has to compare two…
Superc
  • 159
  • 1
  • 8
1
vote
0 answers

Remove DLL from system32 folder when uninstalling a setup from InstallScript project for 64-bit

I have InstallShield 2011 and I am creating a setup for 64-bit in an InstallScript project. When I install a setup, the DLL does go into system32 folder on a 64-bit system. But the problem is that when I unintall the setup, the DLL in system32 is…
jiten
  • 5,128
  • 4
  • 44
  • 73
1
vote
0 answers

is it safe to add new files in system32 folder of my machine?

is it safe to add files in system32 directory? I only added one .bat file and it seems that my machine is working fine. but i still want to know if it is ok to do it
Jerds
  • 21
  • 5
1
vote
1 answer

Inno Setup "Source file C:\Windows\System32\vcruntime140_1.dll does not exist" error

I'm trying to install some Visual Studio dlls on the guest machine with Inno Setup. Here is the [Files] section of my script: [Files] Source: ... ... Source: "C:\Windows\System32\msvcp140.dll"; DestDir: "{app}" Source:…
1
vote
3 answers

Delete File from Windows\System32 directory using C#

I'm developing a C# application that will need to delete a couple of files in System32, and I'm doing the following: File.Delete(@"c:\windows\system32\"); This isn't working, it doesn't throw an exception but it also doesn't delete the file.…
TheHenrich
  • 11
  • 1
  • 2