Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Auto-Download and Package names

Hi,

When I create a auto-download package will the package name change with every version update?

I am asking because I want to use a auto-download package in a script, I can rename the package and use that name in the CLI command but when a new version would be downloaded and the package name change it will probably break the script, correct?

Thanks,

-A

 

 

0

Comments

2 comments
Date Votes
  • Ooh, good point. I don't think we took that into consideration when we built Auto Download. I have a few ideas:

    1. Create a package with a Nested Package step pointing at the Auto Download you want. This will always point at the same package, even if it updates.
    2. Rename the Auto Download package and remove the version number from the end. The package will still automatically update, but the name will no longer change.
    3. Have your script search for the current name. My code is a bit funky, but that's to deal with the Auto Download Archive.
    $CurrentName = ( PDQDeploy.exe GetPackageNames | Where-Object { $_ -like "7-Zip *" } | Sort-Object )[-1]
    PDQDeploy.exe Deploy -Package "Packages\$CurrentName" -Targets "A", "B", "C"
    0
  • Great suggestions Colby, I am sure I will get it working that way.

    Thanks!

    0