unregister an .ocx in 'onbeforeinstall' event of Installer class then try to register it on install but couldnt done

馋奶兔 提交于 2019-12-13 02:32:04

问题


Hi ,

I tried to unregister and delete an .ocx & a .dll from the System32(XP 32 bit os)/SysWow64(64bit OS) of the machine using C# code. I had written the Unregister & Delete code in the override method OnBeforeInstall(IDictionary savedState) of installer class.When I tried to install the .msi the files(.ocx & .dll) get Unregistered, but at the install completes the new files not get registred ie its not present in the System32 folder.

Is the OnBeforeInstall event deletes the new files?

Please refer : http://www.experts-exchange.com/Programming/Installation/MSI/Q_23525069.html

http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.setup/2004-09/0145.html

来源:https://stackoverflow.com/questions/6841423/unregister-an-ocx-in-onbeforeinstall-event-of-installer-class-then-try-to-reg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!