[Zz] Inno Setup installation and reverse installation of OCX control

Source: Internet
Author: User
Tags dot net dot net framework
Inno Setup is a really good lightweight installer. The reason why I used this software to install the installation package is that Visual Studio comes with a dependency on the dot NET Framework 2.0, and the graphical interface is sometimes used to render the cloud. Inno Setup is much more refreshing. You can package and release your program by directly modifying the built-in example. During the Inno Setup process, I encountered a problem of installing the OCX control. First, I did not know how to install it. After searching for multiple parties, I found that the following settings would work: [Files] Source: "D: // AAA. ocx"; destdir: "{sys}"; copymode: alwaysskipifsameorolder; flags: restartreplace regserverThe key is to have the regserver flag later. After installation, I found that my OCX was not directly uninstalled During the reverse installation, which made me very depressed. After finding a circle, we found that Inno Setup has two sessions: [uninistalldelete] and [uninistallrun. Write as follows: [Uninistallrun]
Filename: "regsvr32"; parameters: "/u AAA. ocx"
[Uninstalldelete]
Type: files; Name: "{sys} // AAA. ocx"
And then unregister is deleted. That's it.

 

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.