Reputation: 49
I'm building installer for Outlook add-in with Publish... action in Visual Studio 2015. I've set up in Publish tab everything: Publisher name, Product name, Publish version etc.
But when I check setup.exe it doesn't show Product name and shows wrong Product version.
How can I make setup.exe have correct Product name and version?
P.S. during installation process product name and version are correct.
Upvotes: 2
Views: 571
Reputation: 732
Setup.exe don't compiling in build time and it's saved somewhere binary template file. Visual Studio simply adds in template file resources source ClickOnce Application address and it works if you just download single file from server. Here we have 14.0.23107.0 version, and that's mean you have VS2015 and 23107 studio build number. So, unfortunately you can't change it if you use msbuild task for publish.
But you can change it from external application. Just follow this steps:
- Download rcedit https://github.com/electron/rcedit/releases
- And now you can execute it like me shown below:
rcedit-x86.exe setup.exe --set-product-version "2.2.2.2" --set-version-string "ProductName" Myproduct
- Result here: https://i.sstatic.net/9hkZI.png
That's all.
Upvotes: 3