Package-Script-Writer icon indicating copy to clipboard operation
Package-Script-Writer copied to clipboard

Builds the wrong script if the version isn't found

Open sgartner-cityofboise opened this issue 1 year ago • 0 comments

If you build a URL with a version that does not exist, then it builds a script with no version, which for a novice might go unnoticed. For example, if I run the following url:

https://psw.codeshare.co.uk/?InstallUmbracoTemplate=true&TemplateVersion=10.22.1&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=false&IncludeStarterKit=false

or

https://psw.codeshare.co.uk/?InstallUmbracoTemplate=true&TemplateVersion=10.1&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=false&IncludeStarterKit=false

or

https://psw.codeshare.co.uk/?InstallUmbracoTemplate=true&TemplateVersion=10&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=false&IncludeStarterKit=false

then it will generate a script that will install the newest version of Umbraco. Also strange that it shows the script, for just a moment, with the provided version number, then it reverts to having no version.

I think it would be better if instead it brought up the options page with an error and made me to choose a valid version.

sgartner-cityofboise avatar Feb 22 '24 02:02 sgartner-cityofboise