View previous topic :: View next topic |
Author |
Message |
Javier
Joined: 09 Oct 2009 Posts: 215
|
Posted: Wed Apr 13, 2016 1:43 pm Post subject: Installing updates for existing network licenses |
|
|
My application uses either local or network licenses. For network licenses, the user has to enter the Server Address in every client computer. This works fine until a new update is installed, because the server address information needs to be entered again. This is a little bit annoying to the end user, and I receive calls and emails because the update is working in evaluation mode.
Is there any way to preserve this information across the updates? I use ILS version 5. Thank you. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Apr 13, 2016 11:19 pm Post subject: |
|
|
The sample floating license project stores the license server port using the standard Microsoft Settings mechanism. Unfortunately because of the way Microsoft implemented this the location where the settings are saved changes every time you change the version of your application and so settings are preserved by default. You can however fix this - see the following post on StackOverflow about this:
http://stackoverflow.com/questions/2477576/how-to-persist-changes-in-a-settings-config-file-across-a-file-version-change _________________ Infralution Support |
|
Back to top |
|
|
Javier
Joined: 09 Oct 2009 Posts: 215
|
Posted: Thu Apr 14, 2016 2:16 am Post subject: |
|
|
Thank you for the link. It seems to solve the issue. However I have a problem: the setting UpgradeRequired must be initially set to true, but during the testing the following code is executed and therefore UpgradeRequired becomes false, ruining the purpose. How do you make sure that UpgradeRequired remains true during development and testing?
Code: | if (Settings.Default.UpgradeRequired)
{
Settings.Default.Upgrade();
Settings.Default.UpgradeRequired = false;
Settings.Default.Save();
} |
|
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Apr 14, 2016 4:52 am Post subject: |
|
|
UpgradeRequired will only be false on your computer. When you run the code on a customers computer that hasn't been upgraded it will be true. It is also possible to locate the settings file that is created for the new version (somewhere under ProgramData I think) and delete it - which effectively resets your system. _________________ Infralution Support |
|
Back to top |
|
|
Javier
Joined: 09 Oct 2009 Posts: 215
|
Posted: Thu Apr 14, 2016 11:02 am Post subject: |
|
|
I will do some testing on this. I would suggest to incorporate this feature in your sample projects. Thank you. |
|
Back to top |
|
|
|