Reputation: 116
I'm looking at the Install4j "Register Add/Remove Item" action and how it affects what appears in the Windows Control Panel Programs area. I'm having a problem with the "Version" that appears in the Control Panel - it doesn't match what I want displayed there, and I can't seem to figure out where that's configured.
I use compiler variables to store the product name and product version. These variables are set in the media file area under "Customize Project Defaults/Compiler Variables"
Under "General Settings/Application info" in I4J, I use "${compiler:product-name}" for "Full Name" and "${compiler:product-version}" for "Version". These are both properly set in the media file.
In the "Register Add/Remove Item" action, "Item Name" field, I use "${compiler:product-name} ${compiler:product-version}".
This appears correctly in control panel as the name (Sorry - I had to redact them for posting). However, the version that appears in Control Panel does not appear the way that I want.
I don't see a "Product Version" field on the "Register Add/Remove Item" field, and it doesn't seem to be using the "Application Info" version either. As a matter of fact, the "6.0.48" that appears under the "Version" column in the Control Panel doesn't appear anywhere in my "project.install4j" file.
How do I properly set that version, or where is it coming from? Is it supposed to be using "Version" from "General Settings/Application Info"? If so, is that not working as expected?
Thanks for any info...
Upvotes: 1
Views: 253
Reputation: 48005
The "Register Add/Remove item" action uses the value from the "General Settings->Application Info" step, so in your case the resolved value of ${compiler:product-version}
.
If this is not the expected version, maybe it's from an older installation. You can check
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[application ID]
in the windows registry and delete keys there if required.
Upvotes: 1