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.