regsvr32: Call InstallDll before UnregisterDll when using /u /i.
This commit is contained in:
parent
91bd7ffaa8
commit
48c7a3f4d7
|
@ -289,6 +289,12 @@ int wmain(int argc, WCHAR* argv[])
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
DllFound = TRUE;
|
DllFound = TRUE;
|
||||||
|
if (CallInstall && Unregister)
|
||||||
|
res = InstallDll(!Unregister, DllName, wsCommandLine);
|
||||||
|
|
||||||
|
if (res)
|
||||||
|
return res;
|
||||||
|
|
||||||
if (!CallInstall || (CallInstall && CallRegister))
|
if (!CallInstall || (CallInstall && CallRegister))
|
||||||
{
|
{
|
||||||
if(Unregister)
|
if(Unregister)
|
||||||
|
@ -301,10 +307,8 @@ int wmain(int argc, WCHAR* argv[])
|
||||||
return res;
|
return res;
|
||||||
/* Confirmed. The Windows version stops on the first error. */
|
/* Confirmed. The Windows version stops on the first error. */
|
||||||
|
|
||||||
if (CallInstall)
|
if (CallInstall && !Unregister)
|
||||||
{
|
|
||||||
res = InstallDll(!Unregister, DllName, wsCommandLine);
|
res = InstallDll(!Unregister, DllName, wsCommandLine);
|
||||||
}
|
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in New Issue