parallon
02-14-2005, 01:34 PM
Hello all. I need to manually register a dll since it crashes my program when I set it to self-register. I want it to register it silently, so could you tell me if this format is correct? Is there a simple way to verify that it got registered other than running my program?
I have provided two ways. Which would be better?
Is it possible to pass arguments using the first method? i.e. /s (silent registration)
Shell.Execute(SessionVar.Expand("%SystemFolder%\\regsvr32.exe"), "open", SessionVar.Expand("%AppFolder%\\Dll\\Asputil.dll"), "", SW_SHOWNORMAL);
In the following one, is the /s in the proper place?
File.Run("%SystemFolder%\\regsvr32.exe", SessionVar.Expand"/s %AppFolder%\\Dll\\Asputil.dll", "")
Thanks in advance,
Parallon
I have provided two ways. Which would be better?
Is it possible to pass arguments using the first method? i.e. /s (silent registration)
Shell.Execute(SessionVar.Expand("%SystemFolder%\\regsvr32.exe"), "open", SessionVar.Expand("%AppFolder%\\Dll\\Asputil.dll"), "", SW_SHOWNORMAL);
In the following one, is the /s in the proper place?
File.Run("%SystemFolder%\\regsvr32.exe", SessionVar.Expand"/s %AppFolder%\\Dll\\Asputil.dll", "")
Thanks in advance,
Parallon