I have a Windows application which should run from USB and is not allowed to install any software on the local PC. The application uses MSXML version 4 and thus requires the msxml4.dll.
In the code the application uses the Windows COM to instantiate (CreateInstance/CoCreateInstance) the XML document/element objects and the COM does (somehow magically) load the required dll for me at runtime. As far as I understand, COM requires the dll to be registered with the regsvr32 tool to find it and successfully load it. The problem is that I am not allowed to run the regsvr32 tool and I also do not want to do this since it would change the system registry (I guess).
But what if I am not allowed to register any dll to the system, is there a way to tell COM that there is a dll which it should use only temporarily? I know about DLL redirection, but this only works if the dll was registered before.