Solve GAC problems during software upgrade.

Source: Internet
Author: User

Install the purchased third-party control to GAC through the MSI (installation project of MS.
Follow-up: third-party control upgrade, We will upgrade the client installed by the customer by overwriting.

C: John. Test the upgrade.Program.
Y: After overwriting, the program reports an error and cannot run.

C: where is the problem.
Y: there may be no new control in GAC.

C: install the new control to GAC.
Y: gacutil/I devexpress. data3.dll

C: Is there any problem.
Y: Yes. An error is returned.

C: whether the new program still accesses the old control. Delete the old control assembly from GAC.
Y: Well, I will delete all of them, and then install the new. gacutil/u devexpress. data3.dll.

C: Okay.
Y: Let me see. GAC also has.

C: delete it from GAC directly.
Y: it cannot be deleted. When the assembly in the GAC directory is deleted, "assembly"... 'could not be uninstalled because it is required by other applications ."

C: I will go online to find out the features of the. GAC directory.
C: Found. you deleted it through DOS.
Set gacpath = % WinDir % \ Assembly \ GAC \
RD/S/Q % gacpath % devexpress. xtraeditors. Core
Y: actually deleted. reinstall. gacutil/I devexpress. data3.dll.

C: Is there any problem.
Y: Yes. An error is returned.

C: Oh, I cannot delete it from GAC just now because it is referenced.
Y: Good.
Gacutil/I devexpress. data3.dll/R filepath "%apppath%my.exe" myexe

C: Is there any problem.
Y: Done.

C: Y: Hahaha.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.