Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Cannot Save Personal settings

Cannot Save Personal settings

Scheduled Pinned Locked Moved C#
announcementdebuggingxmlhelp
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    humayunlalzad
    wrote on last edited by
    #1

    We have this program(.exe) on the web where it is being downloaded by people, in the program they set their preferences. It is a program similar to Paint The problem is that when they download a new version of our program and install it, they loose their personal preferences set in the older version. This facility was always working, till we got the new version of the program on the net.( I did it) For the personal settings we have a file Profile.xml where all the settings get saved(in the folder bin\release and bin\Debug. We also have two other files Profile.xml_backup and ProfileInstaller.xml in the same folders which I am not sure what they do. So guys would anyone know what changes do i have to make, and where so that the personal changes save in the new version of the program insatlled

    L A 2 Replies Last reply
    0
    • H humayunlalzad

      We have this program(.exe) on the web where it is being downloaded by people, in the program they set their preferences. It is a program similar to Paint The problem is that when they download a new version of our program and install it, they loose their personal preferences set in the older version. This facility was always working, till we got the new version of the program on the net.( I did it) For the personal settings we have a file Profile.xml where all the settings get saved(in the folder bin\release and bin\Debug. We also have two other files Profile.xml_backup and ProfileInstaller.xml in the same folders which I am not sure what they do. So guys would anyone know what changes do i have to make, and where so that the personal changes save in the new version of the program insatlled

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      I dont think I get you. You wrote this program, but you do not know how it works?

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      H 1 Reply Last reply
      0
      • L leppie

        I dont think I get you. You wrote this program, but you do not know how it works?

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4a out now (29 May 2008)

        H Offline
        H Offline
        humayunlalzad
        wrote on last edited by
        #3

        OK I am sorry for not being very clear. I just made a few changes to the already existing code(Bug fixes) made a new version(exe) and uploaded it on the internet. There is also a class UserProfile.cs which is responsible for the Profile.xml file.(If that helps)

        1 Reply Last reply
        0
        • H humayunlalzad

          We have this program(.exe) on the web where it is being downloaded by people, in the program they set their preferences. It is a program similar to Paint The problem is that when they download a new version of our program and install it, they loose their personal preferences set in the older version. This facility was always working, till we got the new version of the program on the net.( I did it) For the personal settings we have a file Profile.xml where all the settings get saved(in the folder bin\release and bin\Debug. We also have two other files Profile.xml_backup and ProfileInstaller.xml in the same folders which I am not sure what they do. So guys would anyone know what changes do i have to make, and where so that the personal changes save in the new version of the program insatlled

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Sounds to me like you download Profile.xml with the new version. Also, why have the debug version available?

          humayunlalzad wrote:

          This facility was always working, till we got the new version of the program on the net.( I did it)

          Did you write it or is it a 3rd party app you are installing?

          humayunlalzad wrote:

          We also have two other files Profile.xml_backup and ProfileInstaller.xml in the same folders which I am not sure what they do.

          Have a look in them and see what they contain - probably some default settings at a guess. Personally I would back up the profile.xml file and restore it after the new version is installed - of course, if it's a 3rd party app it may need some settings in the new file.

          Bob Ashfield Consultants Ltd

          H 1 Reply Last reply
          0
          • A Ashfield

            Sounds to me like you download Profile.xml with the new version. Also, why have the debug version available?

            humayunlalzad wrote:

            This facility was always working, till we got the new version of the program on the net.( I did it)

            Did you write it or is it a 3rd party app you are installing?

            humayunlalzad wrote:

            We also have two other files Profile.xml_backup and ProfileInstaller.xml in the same folders which I am not sure what they do.

            Have a look in them and see what they contain - probably some default settings at a guess. Personally I would back up the profile.xml file and restore it after the new version is installed - of course, if it's a 3rd party app it may need some settings in the new file.

            Bob Ashfield Consultants Ltd

            H Offline
            H Offline
            humayunlalzad
            wrote on last edited by
            #5

            The code was written in-house, but by the coders before me. We keep upgrading things, debugging the present program and upload. It is not a 3rd party app. So how do you restore the backup of the profile.xml file in the new version thats what I want to know. We are using VS2005 And Thanx for taking the trouble

            A L 2 Replies Last reply
            0
            • H humayunlalzad

              The code was written in-house, but by the coders before me. We keep upgrading things, debugging the present program and upload. It is not a 3rd party app. So how do you restore the backup of the profile.xml file in the new version thats what I want to know. We are using VS2005 And Thanx for taking the trouble

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              humayunlalzad wrote:

              This facility was always working, till we got the new version of the program on the net.( I did it) ...... So guys would anyone know what changes do i have to make, and where so that the personal changes save in the new version of the program insatlled

              I sort of assumed you had put the copy of a 3rd party app on the network for others to install, particularly when you asked "So guys would anyone know what changes do i have to make.." As it is written in house and you have the source code why would anyone else know what to change? Just because someone else wrote it is no excuse, I have spent about 90% of my coding life working with other people's code (as have most professional coders), and you just have to work out whats being done. I suggested backing up the profile and restoring it as a work around when I was under the illusion it was a bought in app. I would just do it as part of the install.

              Bob Ashfield Consultants Ltd

              1 Reply Last reply
              0
              • H humayunlalzad

                The code was written in-house, but by the coders before me. We keep upgrading things, debugging the present program and upload. It is not a 3rd party app. So how do you restore the backup of the profile.xml file in the new version thats what I want to know. We are using VS2005 And Thanx for taking the trouble

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #7

                humayunlalzad wrote:

                So how do you restore the backup of the profile.xml file in the new version thats what I want to know. We are using VS2005

                Learn to read and understand code, or embarrass yourself by asking your boss or manager. Just think for a bit, just HTF must we know how to fix your application??? :doh:

                xacc.ide - now with TabsToSpaces support
                IronScheme - 1.0 alpha 4a out now (29 May 2008)

                H 1 Reply Last reply
                0
                • L leppie

                  humayunlalzad wrote:

                  So how do you restore the backup of the profile.xml file in the new version thats what I want to know. We are using VS2005

                  Learn to read and understand code, or embarrass yourself by asking your boss or manager. Just think for a bit, just HTF must we know how to fix your application??? :doh:

                  xacc.ide - now with TabsToSpaces support
                  IronScheme - 1.0 alpha 4a out now (29 May 2008)

                  H Offline
                  H Offline
                  humayunlalzad
                  wrote on last edited by
                  #8

                  This is a small start up company and I am student volunteering for this company. The only coder has gone on a vacation of Europe for 15 days and we cant contact him. The boss does not know anything. I know Csharp code but not the installer stuff.

                  L 1 Reply Last reply
                  0
                  • H humayunlalzad

                    This is a small start up company and I am student volunteering for this company. The only coder has gone on a vacation of Europe for 15 days and we cant contact him. The boss does not know anything. I know Csharp code but not the installer stuff.

                    L Offline
                    L Offline
                    leppie
                    wrote on last edited by
                    #9

                    So how do expect us to know? What you described is a bespoke solution and not something I heard of, so get in touch with the holiday maker, or better, dont make releases till he is back.

                    xacc.ide - now with TabsToSpaces support
                    IronScheme - 1.0 alpha 4a out now (29 May 2008)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups