Archive: VIAddVersionKey and the Uninstaller


VIAddVersionKey and the Uninstaller
I've looked all over and I can't find any mention of anyone noticing this let alone a fix. If this is something stupid on my part I apologize up front.

Towards the top of my install script I specifiy several VIAddVersionKey calls for the usual suspects (version, description, company, etc.), outside of any function or section. This works fine and the resulting EXE has all this info on the Version tab.

However, when I run the installer it creates an uninstaller (using WriteUninstaller), and annoyingly copies all of this version info on to it.

I've tried to find any way to conditionally compile this code but as far as I know there is no constant that you can test for that says this is the compile of the uninstaller so I could do an !ifdef.

Anyone else come accross this? Is there a way to specify different version info for an uninstaller or simply to get it to NOT have version info?

Thanks in advance for your help.


The installer is copied as is to the uninstaller and only the icon and the actual installation data is replaced. If you think there should be special handling for the version information, just like the icons, open a feature request or submit a patch.


Because installer writes the uninstaller (copies it self) the only way I could think is to prepare a separate script which would act as uninstaller.

[Edit] sorry kichik I should reload the page before submit.