#1 2021-09-05 14:58

SpecterShell
Member
Registered: 2021-09-05
Posts: 4

Request for token of download url for use on WinGet

I would like to create a manifest for Renamer on WinGet (Windows Package Manager), but the download urls from the websites are not static.

I noticed that the manifests on Scoop and Chocolatey are using urls with different token params. Could you generate another token for use on WinGet? THX.:)

Offline

#2 2021-09-05 22:11

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Request for token of download url for use on WinGet

A token has been allocated. I'm sure you will guess it smile

Please share the manifest before making it public, for a quick check. Send it by email or post it here, whatever suits.

Offline

#3 2021-09-06 04:21

SpecterShell
Member
Registered: 2021-09-05
Posts: 4

Re: Request for token of download url for use on WinGet

OK, here it is.

den4b.ReNamer.installer.yaml

# Created using YamlCreate.ps1 v1.1.6
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.0.0.schema.json

PackageIdentifier: den4b.ReNamer
PackageVersion: 7.3.0.0
MinimumOSVersion: 10.0.0.0
Installers:
- Architecture: x86
  InstallerType: inno
  Scope: machine
  # Token in the InstallerUrl is for WinGet only, do not use it anywhere else
  InstallerUrl: https://www.den4b.com/download/renamer/installer/7.3?token=winget
  # InstallerUrl: https://www.den4b.com/?x=get&product=renamer&type=installer&version=7.3&token=winget
  InstallerSha256: C10AC38774433D897361B5D0A1910F4B14250F6999C7FCD2BBBA4ECDE4BD3776
  ProductCode: 'ReNamer_is1'
  UpgradeBehavior: install
ManifestType: installer
ManifestVersion: 1.0.0

den4b.ReNamer.locale.en-US.yaml

# Created using YamlCreate.ps1 v1.1.6
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.0.0.schema.json

PackageIdentifier: den4b.ReNamer
PackageVersion: 7.3.0.0
PackageLocale: en-US
Publisher: den4b Team
PublisherUrl: https://www.den4b.com
PublisherSupportUrl: https://www.den4b.com/contact
PrivacyUrl: https://www.den4b.com/privacy
Author: den4b Team
PackageName: ReNamer
PackageUrl: https://www.den4b.com/products/renamer
License: Creative Commons Attribution - Noncommercial - No Derivative Works 3.0
LicenseUrl: https://www.den4b.com/license
Copyright: den4b Team
#CopyrightUrl: 
ShortDescription: A very powerful and flexible file renaming tool
Description: |-
  ReNamer is a very powerful and flexible file renaming tool, which offers all the standard renaming procedures, including prefixes, suffixes, replacements, case changes, as well as removing contents of brackets, adding number sequences, changing file extensions, etc. For advanced users there is support for Regular Expressions and a PascalScript rule, which lets users program their very own renaming rule.
  Program allows you to combine multiple renaming actions as a rule set, applying each action in a logical sequence, which can be saved, loaded, and managed within the program. In addition, it has an ability to rename folders, process regular expressions, Unicode capable, and supports variety of meta tags, such as: ID3v1, ID3v2, EXIF, OLE, AVI, MD5, CRC32, and SHA1.
Tags:
- den4b
- rename
- renamer
- renaming
ManifestType: defaultLocale
ManifestVersion: 1.0.0

den4b.ReNamer.yaml

# Created using YamlCreate.ps1 v1.1.6
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.0.0.schema.json

PackageIdentifier: den4b.ReNamer
PackageVersion: 7.3.0.0
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.0.0

Offline

#4 2021-09-06 04:40

SpecterShell
Member
Registered: 2021-09-05
Posts: 4

Re: Request for token of download url for use on WinGet

By the way, could I create manifests for other products (Shutter, Colors, etc.)?

Offline

#5 2021-09-07 17:03

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Request for token of download url for use on WinGet

Those manifests look good!

What is the purpose of the "ProductCode" property, and why is it set to "ReNamer_is1"?

Also, maybe remove the "?x=get" style URL, it is obsolete and will stop working at some point.

Feel free to create manifests for other products too.

Offline

#6 2021-09-08 09:14

SpecterShell
Member
Registered: 2021-09-05
Posts: 4

Re: Request for token of download url for use on WinGet

"ReNamer_is1" is taken from the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ReNamer_is1", where the installation information of this product stores. Maybe the suffix is appended by Inno Setup.

ProductCode is used to assist WinGet to match the manifest to the program installed in Windows for upgrade and uninstallation.

Offline

#7 2021-09-08 12:11

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Request for token of download url for use on WinGet

SpecterShell wrote:

Maybe the suffix is appended by Inno Setup.

Found an official reference which confirms it:
https://jrsoftware.org/ishelp/index.php … etup_appid

AppId also determines the actual name of the Uninstall registry key, to which Inno Setup tacks on "_is1" at the end. Therefore, if AppId is "MyProgram", the key will be named "MyProgram_is1".

So it's all good.

Offline

Board footer

Powered by FluxBB