Updating the version number in the Add or Remove Programs window

We have an application consisting of various parts:

  • Printer driver using Inno-Setup.
  • Custom written by C # dll.
  • AutoIt script, packaging and installation of the previous two.

The printer driver is listed in the "Add or Remove Windows" section with the [name] , [publisher] and [installed on] fields displayed as expected. But the [size] and [version] fields remain empty.

Our client wants us to update the [version] field. Where is this information stored (how to update or add it in the "Add or Remove Windows" section)?

+6
source share
3 answers

There are several properties in [Setup] that control version numbers:

 VersionInfoVersion= VersionInfoTextVersion= AppVersion= 

The important field for the question is the AppVersion directive, which InnoSetup writes to the DisplayVersion registry DisplayVersion .

A complete sample can be found here .

+7
source

Check out this section.

 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall 

You can select your application by GUID, and you can manage its data there is a DisplayVersion key to show the version and the actual version key for other than display, and there is a size field in which you can add your program size.

+4
source

This is the value "DisplayVersion" in this registry key:

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ApplicationName 

'ApplicationName' is replaced by your actual application name, obviously

The application name can also be a GUID if you have not configured it.

Inno-Setup should be able to change this.

+2
source

All Articles