Tien Phan Tien Phan - 6 months ago 27
C# Question

C# .NET app's product version not updating in Control Panel -> Program -> Uninstall a program

I'm having trouble updating a C# application's product number. I updated the [assembly: AssemblyVersion("")] and [assembly: AssemblyFileVersion("")] in AssemblyInfo.cs. Then build a new MSI setup file. Then I proceed with uninstalling & installing the new version of the app. However, in Control Panel's Uninstall a program, my app keeps showing its product version as 0.4.3. Meanwhile, right-click & bring up properties of the app's EXE file shows the correct version number (4.4). I also changed the app's GUID (using Visual Studio's Tools -> Create GUID) as suggested by another StackOverflow answer but it's not making any difference. Please let me know how I can match the product version in Control Panel to that defined in the AssemblyInfo.cs. Thank you!

Answer Source

So I guess my question wasn't clear enough. But I found a way to do it nonetheless, so I thought I'd share it:

Click on the Installer project -> In "Properties" panel (if you don't see the panel then Window -> Reset Layout), scroll down to the bottom till you see "Version". Set this version number to the number you want to appear in Control Panel.

And the AssemblyVersion & FileVersion seem to have nothing to do with the Version number. Or at least that what's I thought, someone correct me if I'm wrong.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download