cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

đŸ’¡Version number in .exe please

Open lifers5555 opened this issue 2 years ago • 7 comments

Describe the feature you'd like Please fill out the metadata in the "Detail" box for .exe files, particularly the Product Version, so that I can script auto-deployment and update scenarios? Particularly useful with Intune.

image

lifers5555 avatar Nov 16 '22 21:11 lifers5555

@lifers5555 thanks for flagging this as a feature request. As a heads up, you can currently grab version through the logs, ui, or by running cloudflared.exe version. With that, could you elaborate on the tooling your looking to build in MS InTune and how it may be useful to provide this information directly through the Control Panel. This will be helpful to help us scope the improvement outlined here.

abelinkinbio avatar Nov 17 '22 14:11 abelinkinbio

None of those methods help when using the Intune build in "Version >= xxx" when using "check if file exists" rule.

lifers5555 avatar Nov 20 '22 23:11 lifers5555

@lifers5555 : This is an extremely fringe request that we may take some time to get to. Do you want to help contribute a fix? You can check the wxs file here: https://github.com/cloudflare/cloudflared/blob/master/cloudflared.wxs. I suspect you'll have to add $(var.Version) somewhere here to show up as Product Version.

sudarshan-reddy avatar Nov 21 '22 15:11 sudarshan-reddy

I'm not sure this can be classified as extremely fringe, being that 99% of all executables on the Windows platform have this meta filled in, and consequently many automation tools for Windows use this meta to manage programs and updates. I'm not a coder so can't fix it myself. Looking forward to CloudFlare adding this when possible.

lifers5555 avatar Nov 25 '22 01:11 lifers5555

Related to:

  • https://github.com/cloudflare/cloudflared/issues/695 and
  • https://github.com/cloudflare/cloudflared/issues/667

XVII avatar Nov 25 '22 03:11 XVII

@sudarshan-reddy , I don't think the solve here is the WXS file -- the OP is posting about the .exe which the version which would more likely be set during build..

XVII avatar Dec 05 '22 08:12 XVII

@ShadowXVII you’re correct.

We will have to use something like https://github.com/hallazzang/syso to embed during build time so this keeps updating during upgrade.

sudarshan-reddy avatar Dec 05 '22 08:12 sudarshan-reddy