G
Guest
Hello,
We are testing and tweaking some of our software to run on Vista, but it
turns out that we are having problems with one of our programs.
Here is our code:
// attempt an experiment to register an OCX object in silient mode
try
{
System.Diagnostics.Process.Start("regsvr32.exe", " /s \"" +
Environment.CurrentDirectory + "\\myTempLib.ocx\"");
}
catch (Exception exec)
{
....
}
However, this is not registering properly... it fails. I can only do this
in Vista manually if I run the CMD.exe as administrator.
Is there a different way of doing this now? Is there a call to the OS that I
can make that will bring up the confirmation dialog to the user to allow my
program to somehow register this library?
Thanks,
Rob
We are testing and tweaking some of our software to run on Vista, but it
turns out that we are having problems with one of our programs.
Here is our code:
// attempt an experiment to register an OCX object in silient mode
try
{
System.Diagnostics.Process.Start("regsvr32.exe", " /s \"" +
Environment.CurrentDirectory + "\\myTempLib.ocx\"");
}
catch (Exception exec)
{
....
}
However, this is not registering properly... it fails. I can only do this
in Vista manually if I run the CMD.exe as administrator.
Is there a different way of doing this now? Is there a call to the OS that I
can make that will bring up the confirmation dialog to the user to allow my
program to somehow register this library?
Thanks,
Rob