ocx - Running rgsvr32 in program files\myapp seems to fail even when run as admin -


our software needs able register ocx @ runtime. ocx lives in program files directory of app. find if manually fire cmd line admin , run command works great, if fire our app admin , let app try register ocx, fails. notice app able run regsvr32 when run build directory, presumably because own build dir. still have run admin though. have ideas going wrong?

thanks, brian

the answer firstly, i'm sloppy, , secondly command line args passed regsvr32 need wrapped in double quotes. never occurred me because wrote code so:

string args = "/s " + path.combine(mp_xxxx_dir.fullname, map_point_ocx) ; 

when should have looked like:

string args = "/s " + "\"" + path.combine(mp_xxxx_dir.fullname, map_point_ocx) + "\""; 

hope helps else :)


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -