Tuesday, February 6, 2018

ClickOnce setup.exe doesn't contain Product name and wrong Product version

Leave a Comment

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.

enter image description here

But when I check setup.exe it doesn't show Product name and shows wrong Product version. enter image description here

How can I make setup.exe have correct Product name and version?

P.S. during installation process product name and version are correct.

2 Answers

Answers 1

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:

  1. Download rcedit https://github.com/electron/rcedit/releases
  2. 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 
  1. Result here: https://i.imgur.com/luN2OrA.png

That's all.

Answers 2

The product name, publisher name and support url properties can all be specified in the deployment manifest, the .vsto file that is generated after publishing the solution. You can open the deployment manifest in a text editor and change the tag to include the properties you want to specify.

<description asmv2:publisher=”Visual Studio (BizApps)” asmv2:product=”My VSTO Solution” asmv2:supportUrl=”http://www.microsoft.com/” xmlns=”urn:schemas-microsoft-com:asm.v1″ /> 

Ref: MSDN

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment