How to show application version in VS.NET Deployment Project?

前端 未结 2 1322
南方客
南方客 2021-01-05 20:36

I have set up a Deployment Project for my application. The problem is that I want to show application version (eg. MyApplication 1.2.3.1) during installation so the user can

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 21:26

    You should be able to use the Windows Installer ProductVersion property for this. If you change the Welcome dialog's WelcomeText property to:

    The installer will guide you through the steps required to install [ProductName] [ProductVersion] on your computer.
    

    Then you can change the Deployment Project's Version property and have the value automatically displayed. Any string-based property can do this; just use the [] syntax to have the value inserted.

    For other properties that are provided out of the box, see the Windows Installer Property Reference

提交回复
热议问题