Windows 10: Registry location for storing data

Discus and support Registry location for storing data in Windows 10 Software and Apps to solve the problem; I'm creating a new release (version 5) of an application whose registry contents won't be compatible with earlier releases, so I changed my code to... Discussion in 'Windows 10 Software and Apps' started by perdrix, May 9, 2020.

  1. perdrix Win User

    Registry location for storing data


    I'm creating a new release (version 5) of an application whose registry contents won't be compatible with earlier releases, so I changed my code to write everything under:

    HKCU\Software\DeepSkyStacker\DeepSkyStacker5

    and that is working just fine.

    However there's a custom control that I use that us storing all its stuff using:

    AfxGetApp()->WriteProfileBinary(_T("PictureList"), _T("Settings") ...);

    and that stuff ends up here:

    HKCU\Software\DeepSkyStacker\DeepSkyStacker\PictureList\Settings

    However I want it to be written to:

    HKCU\Software\DeepSkyStacker\DeepSkyStacker5\PictureList\Settings

    Does anyone know the necessary incantation to achieve this please?

    Thanks
    David

    Changing registry key used by Windows code (not mine) to store stuff.All my registry (QSettings) work for the new version is being written to HKCU/Software/DeepSkyStacker/DeepSkyStacker5Something is stubbornly writing toHKCU/Software/DeepSkyStacker/DeepSkyStackerWhat to I have to change in CWinApp to make it use the other section???

    :)
     
    perdrix, May 9, 2020
    #1

  2. Default Save Locations

    Hi,

    Thank you for posting on Microsoft Community. I understand the inconvenience you are facing. I will certainly help you with this.

    By default we cannot change the installation location for Apps, however it can be changed through registry changes.

    I would suggest you to make the changes if you are comfortable working with registry because if we make any small mistakes, we can make the computer unbootable.

    You need to be logged in as the administrator to perform this actions:

    • Press Windows keys +R, type regedit and hit Enter.
    • Go to this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx
    On the right-side, double-click on PackageRoot and change the default value data to the location of your other drive/external drive. For instance, if drive letter is “G”, then enter G:\ in the value data box, and then click Ok button
    to set your drive as default location for apps.

    We suggest you create a new folder under the root of your drive and enter the path of that folder so that you can use the drive to store other files as well. That is, create a folder named
    WinApps on the drive, enter G:\WinApps (replace “G” with drive’s letter) as the location in value data box.

    From now on, whenever you install a new app from the Store, Windows 10 will install them on the other drive.

    NOTE: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that
    you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number
    to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows



    Hope this information helps. Post back with updated issue details for further help.

    Thank you.
     
    Parth P Patel, May 9, 2020
    #2
  3. store

    not worked, show invalid value for registry.
     
    RaghunathBehera, May 9, 2020
    #3
  4. Registry location for storing data

    registry fix

    Hi,

    Thank you for posting your query on Microsoft Community.

    As per the description, I understand that you are facing some issues using Windows 10.

    I would like to know some information.


    • What registry fix are you trying to run?

    • What is the exact issue that you are facing?

    • Have you taken a backup of all your data?
    I would suggest you to take a backup of all your data before doing any changes in the registry keys. If you do any incorrect changes to the registry you won’t be able to boot the computer.

    Disclaimer: This section, method, or task contains steps that tells you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
    carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in
    the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ )

    How to back up and restore the registry in Windows.



    Please let us know the information in brief. We will be glad to assist you further.
     
    Mayank Gupta10, May 9, 2020
    #4
Thema:

Registry location for storing data

Loading...
  1. Registry location for storing data - Similar Threads - Registry location storing

  2. Microsoft Store App Data Location and Transfer

    in Microsoft Windows 10 Store
    Microsoft Store App Data Location and Transfer: I had a laptop unexpectedly die on me before I could make a backup of a LiquidText note file downloaded from the Microsoft store.The hard drive survived and I have access to the files on it and have located where I believe the files are in the WindowsApps folder, but they are...
  3. Microsoft Store App Data Location and Transfer

    in Windows 10 Gaming
    Microsoft Store App Data Location and Transfer: I had a laptop unexpectedly die on me before I could make a backup of a LiquidText note file downloaded from the Microsoft store.The hard drive survived and I have access to the files on it and have located where I believe the files are in the WindowsApps folder, but they are...
  4. Microsoft Store App Data Location and Transfer

    in Windows 10 Software and Apps
    Microsoft Store App Data Location and Transfer: I had a laptop unexpectedly die on me before I could make a backup of a LiquidText note file downloaded from the Microsoft store.The hard drive survived and I have access to the files on it and have located where I believe the files are in the WindowsApps folder, but they are...
  5. registry location for the .ai icon?

    in Windows 10 Network and Sharing
    registry location for the .ai icon?: hello , ive been trying to change the file icons, would any one know where abouts the icon would be located https://answers.microsoft.com/en-us/windows/forum/all/registry-location-for-the-ai-icon/f3d108ae-3f2b-4adc-bfa3-f8d891fb1bc2
  6. Edge executable file location in registry

    in Browsers and Email
    Edge executable file location in registry: Where do I find the C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe path in the registry? Thanks! 178354
  7. Where is the registry location for saving windows audio slider adjustments stored?

    in Windows 10 Ask Insider
    Where is the registry location for saving windows audio slider adjustments stored?: I am trying to find the registry location for windows 10 audio slider because windows 10 keeps resetting the audio slider for certian applications and blasting my ears. So i want to go into registry and change permissions on them and permanently lock the values to a specific...
  8. Thunderbird data location

    in Browsers and Email
    Thunderbird data location: I am new to Mozilla Thunderbird and need (want) to know where TBird keeps its messages, address book, calendar and the like. All under W10 ver 1909. Thank you. 161064
  9. Registry location Shortcuts in Favorites Bar

    in Browsers and Email
    Registry location Shortcuts in Favorites Bar: Does anybody know the Registry location Shortcuts in Favorites Bar? Not favorites but favorites bar. Thank you. 140800
  10. Setting the location for application data

    in Windows 10 Support
    Setting the location for application data: Does anyone here know where/how you can set the location for an applications data? I'm in the process of tidying up the "My documents" folder on my PC and for some strange reason, along with all my documents, there are a number of folders belonging to applications installed...