User Settings Not Saved

Hello,
I am using the VB .Net Autoupdater for my app, its working perfect however.
Lets say I am using version 1.0.0.10, Initially when the app ran after I installed it I had to fill in a bunch of user settings via a form a created.
I can close the app, re-open it and the user settings are saved, all is good. Now
I need to make a change and now have version 1.0.0.11 I use the autoupdater and it pulls down the .exe file overwrites the existing .exe.
Now when I launch the app again, the correct version is used however I have to re-enter my user settings again.
How can I preserve my user settings without using a Click Once install?
Thanks
MW

Sure,
I'm always open to learn new ways of doing something.
Thanks
MW
Ok, have a look at the code that I posted on a page of my website here.
It's very specific to what you want saved and how it's to work, so that's what you'll see: It's very much customized to what he wanted.
One important part is what you'll see early on:
Private Shared _instance As Settings
and this:
Private Sub New()
End Sub
Those are private, so only that class can access it. The backing field (variable) is shared so that it's relevant to the class as a whole, not to any instance of it; that is -- there can only ever be one instance of it.
The constructor is parameterless and PRIVATE, so that the consumer of that class can't create an instance; that's only done through the shared method meant to do it:
Public Shared Sub GetInstance(ByRef instance As Settings)
See what I mean?
Still lost in code, just at a little higher level.

Similar Messages

  • [solved] firefox user settings not saving

    I am a linux noob. So the answer to this is probably very obvious, but I haven't found it through googling, searching these forums or the arch wiki. I am having the same problem with most of my applications actually. The problem is that my firefox personal settings are not saving. When I reboot all of the addons are gone, the tabs are back on top, and everything is reset as if this were the first time I've run the program. I'm having a similar problem with lxpanel. I suspect it has something to do with post-installation home directory config files and not knowing what to do for each program. The only setup I've done for firefox is # yaourt -S firefox-esr. A whereis firefox-esr yields only /usr/bin/firefox-esr. Just the executable file itself I guess.
    Although the arch wiki firefox page doesn't seem to specifically mention losing all settings there is something about setting a download location that caught my eye: XDG directories:
    It says to create ~/.config/user-dirs.dirs and add:
    XDG_DESKTOP_DIR="/home/<user>/"
    XDG_DOWNLOAD_DIR="/home/<user>/<dir>"
    XDG_TEMPLATES_DIR="/home/<user>/<dir>"
    XDG_PUBLICSHARE_DIR="/home/<user>/<dir>"
    XDG_DOCUMENTS_DIR="/home/<user>/<dir>"
    XDG_MUSIC_DIR="/home/<user>/<dir>"
    XDG_PICTURES_DIR="/home/<user>/<dir>"
    XDG_VIDEOS_DIR="/home/<user>/<dir>"
    I'm not sure if this has something to do with the temporary nature of my personal firefox settings, but it seems like a move in the right direction. I get that tip of the iceberg feeling though. I've been meaning to look up all of that freedesktop.org stuff including .desktop and .directory files and standard locations. I assume that this is part of that and not only for firefox specifically.
    If anyone could point me in the right direction in terms of how to set up the user directories and files necessary for saving firefox settings I would be very grateful. Or maybe I installed the program wrong?
    I am not using a desktop environmnt. Just (for the moment) pekwm, lxpanel, and idesk. Presumably that's part of the problem. That going modular is much more difficult for a Linux noob. If I were using kde or gnome I'm guessing a lot of this post-installation application setup would be done for me automatically.
    edit: I just found this information on the location of the firefox profile in linux.  It says that profile folders are located in "~/.mozilla/firefox/<profile folder>". At first I thought I didn't have this folder, but I do. So I'm not sure why the settings and addons are not saving.
    Last edited by pariahdog (2012-12-26 16:13:54)

    For next time: https://wiki.archlinux.org/index.php/Permissions
    It might be a better idea to change permissions with "chown" : https://wiki.archlinux.org/index.php/Permissions#chown
    Last edited by 2ManyDogs (2012-12-26 17:01:45)

  • ICloud mail settings not saved in System Preferences on Mountain Lion

    I note that iCloud mail settings not saved in System Preferences on Mountain Lion even if I tick mail in Icloud then close system preferences then open system preferences and it is untiked again?
    Does anyone know how to fix this?
    Cheers
    Paul

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • "Desktop & Screen Saver" settings not saving upon reboot.

    "Desktop & Screen Saver" settings not saving upon reboot. Settings are always set back to factory default upon computer startup. Need help! Please!

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’renot going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Share Point 2013 - User Settings not initialised

    Hi there, 
    We are using the SharePoint 2013 server on top of Windows 2012.
    We've recently created  user profile application service and activated the Site Feed feature. 
    After that one of our users experiences an annoying thing, she is being redirected from the Home Page to another page that says "Edit user settings" and "User settings not initialized ". No other user is experiencing these issues. Please
    help.

    Hi,
    According to your post, my understanding is that a spectial user got "Edit User Settings" when visiting a site collection.
    I recommend to
    remove the user from that site collection completly and then re-add him. You can select Site Settings, under "Users and Permissions", click People and groups. Select the group and user to remove it.
    In addition, you need to check the user permission. You can select Site Settings, under "Site permissions", click People and groups. Click Check Permissions, enter the user.
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/62179303-d2d4-4f04-818b-9645a18f3425/user-gets-edit-user-settings-when-visiting-a-site-collection-and-redirected-to?forum=sharepointadminprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SRM user settings not populated

    Hello,
    We are using SAP SRM 7.02 with NWBC and  we are testing this in sandbox.user id has been assigned to sap_all and new and SAPSRM/employee_ehp1 role.
    NWBC Launched --> Click on SRM user settings---> not populating the details/page navigation to details page is not opening.Pls see the screen shots.
    When click on the SRM user settings same page is opening.
    Please provide you inputs to resolve this.
    Ranjit.

    You observation is correct and it is the standard design of such portal roles as SRM Administrator, SRM Strategic Purchaser, or SRM Operational Purchaser to not have "personalization", but only Employee Self Service role.

  • User prefs not saving

    Recently, preferences set by my users are not saving. Even if you set your prefs, shut the program down and re-start it, nothing is saved. Of course, if they log out and in again, its the same thing.
    All users are using LDAP to the server to login, and all user folder are mounted over the network. The only recent change was a system update yesterday, but I did this in hopes of solving the problem (It did not).
    Any ideas on what I can look at to try and resolve this issue?
    Thanks!

    Recently, preferences set by my users are not saving. Even if you set your prefs, shut the program down and re-start it, nothing is saved. Of course, if they log out and in again, its the same thing.
    All users are using LDAP to the server to login, and all user folder are mounted over the network. The only recent change was a system update yesterday, but I did this in hopes of solving the problem (It did not).
    Any ideas on what I can look at to try and resolve this issue?
    Thanks!

  • Windows 8.1 folder view settings not saved

    Hello, Everyone
    Windows 8.1 Each folder view settings not saved what i can do.I
    want different view settings in each folder likes folder 1 i want large thumbnails & folder 2 small
    What i can do to resolve the issue thanks in advanced.
    I don't have any backup no system restore I also try to rest or restore default view settings but none are working for me.

    Hi,
    This is default behavior. It is not possible to set Windows Explorer to remember individual folder view settings for folders included in libraries. All libraries and its included folders share the same view.
    Karen Hu
    TechNet Community Support

  • Non admin user - changes not saved (Safari settings, system prefs, etc.)

    iMac, 2 users, one is administrator and other is standard user. Recently, in the non-admin user account, it has become impossible to make any changes. For example, adding an application to the the Dock, after logging out and back in next time, the application is not in the Dock any more. Also, making changes to the prefs in Safari, changes are not saved.
    I noticed this after installing FireFox v4. I installed it as admin whilst in the non-admin users account. However, I don't believe that the installation of FF has anything to do with the problem, it just highlighted it. I've checked the permissions for the various directories that hold prefs info such as user/libraries/application prefs/etc. etc. and also Safari prefs. Nothing I can see that has changed in system prefs.
    Any ideas on what has caused the problem (kids are known to fiddle from within the non-admin account) and any ideas on how to fix it?
    Thanks

    Hi PPRuNe,
    You could try making the standard user an Admin too. To do this, make sure you are logged in to the standard user, go to System Preferences > Accounts > Standard user (you may have to unlock the padlock) > Allow user to administer this computer
    This will allow changes to be made without being prompted for a password all the time.
    However, if you had Parental Controls on, they probably won't work on an admin account because as an admin you have complete control over a computer, so the computer thinks there is no point in having the controls turned on. And if the kids are known to "fiddle," just think carefully!
    Hope this helps you.
    Chris.

  • Settings not saved correctly

    Saving that always a file should be opened with a program does not work correct.
    I want *.nzb to be opened with a certain program. I save this combination and still everytime I get the option of an other programm.

    The article you provided is not related to the error message that the user is getting it.
    Can you please provide better solution? I know this answer and this post is old but I am having same issue.
    The error message is only (The Delegates settings were not saved correctly. cannot activate send-on-behalf-of list. The operation failed) I was not able to attach screen shot.

  • Outlook view settings not saved

    I have one user who looses all View settings when restarting Outlook. Occasionally they will save, but it is very rare. Setting the Reading Pane to Off is one good example of a setting that does not save.
    The creation of new Views is also not saved. After restarting Outlook, the new View does not appear in Manage All Views.
    I have tried creating a new Outlook profile and I'm told that Office 2013 C2R has been re-installed since this problem started. 
    Outlook 2013 Click-To-Run via an Office 365 E3 subscription. Exchange Online mailbox. Windows 7 Pro 32-bit. 
    Any help would be appreciated. 

    Hi,
    Basically, Outlook view settings are stored in the default data file. If the data file is corrupt or recreated every time Outlook restarts, the view settings may be not saved.
    Does the user use Outlook with Cached Exchange mode enabled? If so, please go to
    C:\Users\%username%\Documents\Outlook Files and check if you have multiple .ost files in the folder.
    In addition, you may try to switch to turn off Cached Exchange mode and then test this issue again.
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Some settings not saved in Presets file

    I'd like to setup my fme environment with preset Xml files
    (and with some dirty scripting hacks, we make the app load them
    automatically).
    Unfortunately, not all the Device settings are saved. There
    is a tuner specific Settings tab whose settings are not saved. So
    if I want to change the actual TV channel I have to use the GUI.
    Other settings (like crossbar_input) are found in the XML file.
    Is there a way to set entries that are not saved by the GUI
    directly in the XML presets file and make fme use them?

    What you're looking for is startup.xml, which will be in the
    application data directory for the current user. On my Vista
    machine, the path looks like this:
    Drive:\Users\Admin\AppData\Roaming\Adobe\Flash Media
    Encoder\startup.xml
    that's where all of the current UI settings are stored. So
    you know, startup.xml is UTF-16 encoded and it needs to stay that
    way, and (for some reason) there needs to be a blank line at the
    end of the file.
    Hope it helps

  • User Settings not working.  Please help!

    <TD noWraplign=right>I am trying to build some interactive portlets using User prefs and have had no luck. Any help would be greatly appreciated.
    Here is my code for the first portlet (view_course_defaultView is set as a user preference in the web service):
    privatevoidPage_Load(objectsender, System.EventArgs e)
    IPortletContext context = PortletContextFactory.CreatePortletContext(Request, Response);
    IPortletRequest pRequest = context.GetRequest();
    IPortletResponse pResponse = context.GetResponse();
    IPortletUser user = context.GetUser();
    try
    if(user.HasSettingsRight(SettingType.User))
    pResponse.SetSettingValue(SettingType.User, "view_course_defaultView", "All");
    else
    Response.Write("You can't do that");
    catch(Exception ex)
    Response.Write(ex.Message + ex.StackTrace);
    Here is my code for the second portlet (again view_course_defaultView is set as a User preference in the Web Service):
    privatevoidPage_Load(objectsender, System.EventArgs e)
    try
    IPortletContext pContext = PortletContextFactory.CreatePortletContext(Request, Response);
    IPortletResponse pResponse = pContext.GetResponse();
    IPortletRequest pRequest = pContext.GetRequest();
    IPortletUser pUser = pContext.GetUser();
    if(pUser.HasSettingsRight(SettingType.User))
    Response.Write(pRequest.GetSettingValue(SettingType.User, "view_course_defaultView"));
    Response.Write(pRequest.GetSettingCollection(SettingType.User).Count);
    catch(Exception ex)
    Response.Write(ex.Message + ex.StackTrace);
    The only thing written to the screen in the second portlet is 0 for the User settings count. Does anyone see what I am doing wrong?
    Thanks,
    Jackie Kajdzik

    I am having the same issue.  The Admin, Portal and CommunityPortal prefs set fine.  However, the user pref will not set.  Could this be because this pref is not to be set in this manner?

  • User Settings Not Retained

    Second Admin account with different user name. Set up desktop/user settings etc. Log out and log back in. Hard drive and other icons not on desktop. Dock apps revert to default. Safari history and bookmarks disappeared. Other anomalies.
    ???

    My apologizes on the below post - do you get the same response when you reboot the WLC and hit 'ESC' for additional boot options - and then clear the config this way?

  • Graphic EQ settings not saving??

    Hi. I've just installed an old version of soundtrack 1.2 which I've never used before but I'm very familiar with other DAWs and finding this nice to use.
    I'm using it for live backing track purposes with 10 songs in sequence in their own tracks and the plan was to have the Apple graphic EQ assigned to every track so that I can EQ each song to sound it's best at gigs. The problem is that for some reason each time I've set them, saved session and rebooted, all the EQs have been reset to flat (either that or simply not saved).
    I have now removed all Graphic eqs and I've assigned Ozone to each track temporarily (risking CPU overload really) so that it's usable and the Ozone settings are saving fine.
    Can anyone shed some light please, this is weird. (incidentally, the Graphic EQ checkboxes are all checked in effects window).
    Thanks- grateful for any help.

    Hi,
    10 songs in sequence maybe too much, Graphic EQ should can save all the settings.
    audio software

Maybe you are looking for

  • Question about warranty for Satellite L300D-242

    Hi, I bought my notebook by neckermann.de last year and I saled by rates the last one was in Oktober 15 2010, infortunately my monitor hat an accident and I didnt see nothing, I want to know if Toshiba can that repair with the warranty and how many d

  • Set up can not detect any Sound Blaster L

    When trying to update my driver I get the message that the system on my computor. However the Sound Blaster system is working fine. The reason for wanting to update the drivers is that I get a resourceconflict when trying to install a FireWire PCI-ca

  • How can i print multiple pages in ADF , JSF ages ?

    i neet to print a many template of the same page in one order (Click) the page is date is bind from a row date that user selected from ADF table , if the user select 2 or more rows ,, and click on Print button , i want to print all the pages , at sam

  • Mpeg 2 encoder premiere elements 9

    how they hell do I get my self out of this nightmare I'm trying to put together a movie from clips and I have to activate the encoder for mpeg 2 so I don't have internet on my pc but when I got the web site on my laptop I get a sorry this page is ava

  • Using a library

    Have set up a library which has a spry horizontal menu. Whenever the library item is placed into a new form this is the result: <li><a href="/Library/index.html">Home</a></li> which really messes up all the links. Presently, I do a find and replace a