Closed brogers5 closed 1 year ago
:white_check_mark: Package verification completed without issues. PR is now pending human review
@brogers5 could you please rebase this and solve the merge conflict? Thanks in advance
:white_check_mark: Package verification completed without issues. PR is now pending human review
@mkevenaar Rebased and modified to reflect changes for v7.3.0.1100.
@brogers5 Your changes have been merged, thank you for your contribution!
Description
This changeset enhances the install script to detect the current installed version of Samsung Magician, and if necessary, uninstalls the current version of Samsung Magician to enable a downgrade operation to succeed.
Motivation and Context
If the installer detects the current installed version of Samsung Magician is newer than the installer's version, the following dialog will be shown after the Language Selection dialog:
When dismissed, the installer will return exit code 1, causing the install script to fail. The user must uninstall Samsung Magician before reattempting to install that specific version.
To implement proper support for the install command's
--allow-downgrade
switch, the script needs awareness of this requirement and to act accordingly for downgrade scenarios.How Has this Been Tested?
Dev
Chocolatey Test Environment
Steps
Test Package Creation
choco pack
).Downgrade Test
choco install samsung-magician
).choco install samsung-magician --source="'.;https://community.chocolatey.org/api/v2/'" --version=7.2.0.930 --allow-downgrade
).Uninstall Regression Test
choco uninstall samsung-magician
).Clean Install Regression Test
choco install samsung-magician --source="'.'" --version=7.2.0.930
).Reinstall Regression Test
choco install samsung-magician --source="'.'" --version=7.2.0.930 --force
).Upgrade Regression Test
choco upgrade samsung-magician --source="'.'"
).Screenshot (if appropriate, usually isn't needed):
N/A
Types of changes
Checklist: