Archive: C++ runtime error: R6034


C++ runtime error: R6034
Well, ladies and gents, no amount of troubleshooting could seem to fix this issue. I'm writing an uninstaller which is supposed to unregister some certain DLLs and then it deletes them. If I use "UnRegDll", I get a C++ Runtime error for my script. If I use nsExec::Exec "regsrv32.exe" it works, but then certain user interfaces features (most notably the search function of windows) no longer has any text or input boxes. It works if I just delete the folders, but for safety's sake I'd prefer to unregister the DLLs first. Is there any way to fix/ignore/skip this error? The program can continue if it occurs, but continues in the background. (Until you click "close program" in the error window).

Sorry if this is rather confusing, but I'm tired and trying my best to figure this out.

Thanks for your help, everyone.


If unregistering a DLL hurts other features of Windows, it should probably stay there. As for the runtime errors, they come from the DLL itself as NSIS doesn't use the CRT. You should contact the author of this DLL for support and for instructions detailing how it should be installed and uninstalled, assuming it should be uninstalled at all. For example, MSVCRT.dll is used by so many applications that it's usually safer to just keep it or install a local copy of it instead.