Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing updates for existing network licenses

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
Javier



Joined: 09 Oct 2009
Posts: 191

PostPosted: Wed Apr 13, 2016 1:43 pm    Post subject: Installing updates for existing network licenses Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4782

PostPosted: Wed Apr 13, 2016 11:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Javier



Joined: 09 Oct 2009
Posts: 191

PostPosted: Thu Apr 14, 2016 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4782

PostPosted: Thu Apr 14, 2016 4:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Javier



Joined: 09 Oct 2009
Posts: 191

PostPosted: Thu Apr 14, 2016 11:02 am    Post subject: Reply with quote

I will do some testing on this. I would suggest to incorporate this feature in your sample projects. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group