Hi!!,
I'm going to write the installation logic that I plan to make, so please let me know if it's the correct way.
Is this business logic correct? In summary, a user who wants to install the application will always find the latest installer with the latest version available. Once this latest version is installed, the application will download and install the specific version, which may be less or equal.
A thousand thanks for the help you can give me!
This is not possible, Squirrel.Windows only allows you to update to higher version numbers so there is no way to revert v2 to v1 in your example. You're better off having two different release folders, one for v1 and one for v2 and then use your License API Web Service to ensure that the version that is installed is indeed the version they have access to. If the user installed the wrong version you can then prompt them to uninstall it and point them to the correct version to download.
Hello, @Logikgate
After each publication of a new version, the generated setup.exe would be copied in one folder for each version. The setup.exe always contains the latest full package version.
In that order of ideas the design proposal would be the following:
In this folder [../MyApp/MyApp-x.xx] there would be only the file setup.exe, and not the packages (.nupkg)
What do you think of this business logic?
Thank you
Since you are trying to support two different versions of your program independently (v1 & v2) you need to have two different releases folders, one for all of the v1 releases and one for all of the v2 releases. This is the only way you will be able to update them independently of each other.
The only added logic you need is a check of your license manager to ensure that the current user is using the version (v1 or v2) that they are allowed to. If they aren't, you would notify the user to download the correct version and then close the program.
To illustrate the folder structure in this scenario it would be:
V1
Releases/v1/setup.exe
Releases/v1/RELEASES
Releases/v1/MyApp-1.0.0-full.nupkg
Releases/v1/MyApp-1.0.0-delta.nupkg
Releases/v1/MyApp-1.1.0-full.nupkg
Releases/v1/MyApp-1.1.0-delta.nupkg
V2
Releases/v2/setup.exe
Releases/v2/RELEASES
Releases/v2/MyApp-2.0.0-full.nupkg
Releases/v2/MyApp-2.0.0-delta.nupkg
Releases/v2/MyApp-2.1.0-full.nupkg
Releases/v2/MyApp-2.1.0-delta.nupkg
@estyfen did @Logikgate answer your question? If so, you can close this issue.
Most helpful comment
This is not possible, Squirrel.Windows only allows you to update to higher version numbers so there is no way to revert v2 to v1 in your example. You're better off having two different release folders, one for v1 and one for v2 and then use your License API Web Service to ensure that the version that is installed is indeed the version they have access to. If the user installed the wrong version you can then prompt them to uninstall it and point them to the correct version to download.