Displayed version in add/remove
Posted 23 August 2011 - 13:54
In the Add/Remove's "Click here for support information" the dialog that shows displays the product version (IFX_PRODUCT_VERSION ).
I wish it to display the "Display Product Version" (IFX_PRODUCT_DISPLAY_VERSION ).
Is there anyway to change that please?
Posted 23 August 2011 - 17:02
|// OVERWRITE DEFAULT UNINSTALL ENTRY|
szARPKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"+PRODUCT_GUID;
szARPVersion = IFX_PRODUCT_DISPLAY_VERSION;
nResult = RegDBDeleteKey("Software\\Microsoft\\Windows\\CurrentVersion\\App Management\\ARPCache\\"+PRODUCT_GUID); // FORCE A REFRESH OF ADD/REMOVE PROGRAMS
nvType = REGDB_STRING;
nResult = RegDBSetKeyValueEx(szARPKey, "DisplayVersion", nvType, szARPVersion, -1);
Posted 16 October 2011 - 05:58
BTW, is there any implication to that action? I mean who else uses the DisplayVersion in the uninstall section?
Posted 16 October 2011 - 08:03
So maybe it would be better to set the DisplayVersion in the OnEnd Event?
Posted 19 October 2011 - 14:46
OnEnd() would not be the appropriate location to handle an update though as that's still called when an installation is cancelled. Instead I would recommend adding the same code, or a custom function call equivalent, to the OnMaintUIAfter() event.