Failing to register OLEDB DLL file
Posted: Thu Jul 03, 2014 3:28 pm
Hey!
I've tried lots of things to get this to work, but don't seem to be having any luck. Basically, I have some software that uses a third party OLEDB based dataprovider to connect to a database. The database/data provider dll are all propriety and there is no official support route.
Anyway, it works fine if we use an installer or a system call to regsvr32 to register the dll before the use the provider in our [c#] code. The thing is, we'd like to make our software portable, and also avoid having admin privilege escalation, as is needed for the regsvr32 command.
I tried Reg-Free COM via manifest files, but that didn't seem to work. I'm pretty use my implementation was correct (sxstrace didn't show any errors etc), but it just wouldn't work. Then, we discovered the Enigma Virtual Box software, but that doesn't seem to work either.
No matter what I try, I cannot get the DLL to register using the virtualized registry. It does work fine if I disable registry virtualization, and run the _boxed exe as an admin...which obviously defeats the point of what we're trying to achieve.
Has anyone come across DLLs that just won't register correctly unless regsvr32 is used? Any tips of more things to try?
Cheers!
I've tried lots of things to get this to work, but don't seem to be having any luck. Basically, I have some software that uses a third party OLEDB based dataprovider to connect to a database. The database/data provider dll are all propriety and there is no official support route.
Anyway, it works fine if we use an installer or a system call to regsvr32 to register the dll before the use the provider in our [c#] code. The thing is, we'd like to make our software portable, and also avoid having admin privilege escalation, as is needed for the regsvr32 command.
I tried Reg-Free COM via manifest files, but that didn't seem to work. I'm pretty use my implementation was correct (sxstrace didn't show any errors etc), but it just wouldn't work. Then, we discovered the Enigma Virtual Box software, but that doesn't seem to work either.
No matter what I try, I cannot get the DLL to register using the virtualized registry. It does work fine if I disable registry virtualization, and run the _boxed exe as an admin...which obviously defeats the point of what we're trying to achieve.
Has anyone come across DLLs that just won't register correctly unless regsvr32 is used? Any tips of more things to try?
Cheers!