Tutorials 20 min read

Keep Your Notes Folder Out of the App's Install Folder — the Next Update Can Erase It

MMNMNOTE
notes folderinstall folderwindowsapp updatedata lossvault locationbackupobsidian

Keep your notes folder out of any folder that holds an app's program files. Many Windows installers treat that folder as their own property: on update they delete it and write a fresh copy, and anything you saved inside goes with it. Check where your notes live, and if they sit under an app's folder, move them out.

On 12 November 2026, Obsidian shipped version 1.15.1 to all desktop users with this line in the changelog: "On Windows, creating or moving a vault inside Obsidian’s installation folder, or opening a folder there that isn’t in your vault list, now shows an error. Opening a vault that’s already in your list shows a warning, since the installer erases that folder when Obsidian updates."1

That is a vendor saying, in its own release notes, that its installer erases its install folder on update. The warning exists because people kept losing notes that way.

One user wrote on Obsidian's forum on 31 October 2026: "After I updated Obsidian, everything I had was cleared. My vaults were located inside my obsidian folder, in ‘D:\Arquivos\Obsidian\Vaults’. After the update, the obsidian folder was cleared and the Vaults folder was gone."2

The feature request behind the fix was opened on 19 October 2026. A community log in that thread links up to 8 reports like this one from February to November 2026.3 That is one forum's collection, not a measured rate. Obsidian's team took the request and shipped the fix to Early access on 3 November, about two weeks later.1 The problem is not Obsidian's alone, and the fix is the same for every app.

Why would an app update delete a folder I made?

Because to the installer it is not your folder. An installer records one directory as the app's home. Many installers update by removing the old version and writing the new one, and the simplest way to remove the old version is to delete that directory — with everything in it, including folders the app never created.

Here is how that works in one widely used installer template: electron-builder's Windows installer, built on NSIS, which many desktop apps ship with. We are not saying any particular note app uses it. It shows the pattern in plain source code.

When a new version installs, the installer first runs the old version's uninstaller — the call sits on line 72 of the install script, ahead of line 80, where the installer points itself at the install directory to write the new files.4 The code that prepares that step explains why the old uninstaller must be moved first: "uninstaller should be copied out of app installation dir (because this dir will be deleted)".5

Then the uninstaller does what its comments say. On an update it first renames the install directory to a temporary old-install folder, then runs RMDir /r $INSTDIR — a recursive delete of the install directory and everything below it.6 A folder of notes inside is "everything below it".

Two honest qualifications. An app built with this template can replace the default delete with its own customRemoveFiles step.6 And app developers hit the same wall from the other side — one asked the project in 2023: "I would like to understand why all folders and files are excluded on automatic update."7 The issue was later closed as not planned, with no maintainer reply.

A second pattern: version folders that get cleaned up

Squirrel.Windows, another update framework, does it differently. It installs into "the user's application data directory … (i.e., %LocalAppData%\MyApp)" and copies each release into "a application sub-directory (e.g., MyApp\app-1.0.0)".8

Its cleanup rule is spelled out: "on the next startup of MyApp, all but current and immediately previous version of your app are deleted as part of clean up (e.g., after updating to app-1.0.5, app-1.0.4 will remain, but app-1.0.3 and before will be deleted".9

So a notes folder saved inside a version folder survives one update and disappears after the second. That delay makes the cause harder to spot.

We examined these two systems only. MSI packages, portable apps and package managers such as winget were not tested here, so we make no claim about them — which is the reason for the habit below: it does not depend on knowing which installer an app uses.

Which folders count as an app's install folder?

Any folder that holds an app's program file — the .exe you launch — plus the folders around it that the installer created. On Windows the usual places are C:\Program Files, C:\Program Files (x86) and the per-user AppData\Local\Programs. A folder you picked during setup counts too, wherever it is.

LocationWhy it is an install folderNotes risk
C:\Program Files\<App>Windows' FOLDERID_ProgramFiles; electron-builder's per-machine default1011Microsoft lists it as read-only for limited accounts, so this case is rarer12
C:\Users\<you>\AppData\Local\Programs\<App>Windows' FOLDERID_UserProgramFiles, display name "Programs"; electron-builder's per-user default1011AppData is hidden by default, so few people know they are in it
C:\Users\<you>\AppData\Local\<App>\app-x.y.zSquirrel.Windows' version folder8Deleted after the second update9
A folder you chose in the installer, such as D:\Apps\<App>An app can let you pick the install directory; in electron-builder this is opt-in per app13The commonest trap: "keep everything together" on a second drive
Any folder you run the app's .exe from, such as a synced DesktopThe installer was pointed thereThe folder can be both synced and an install folder

The last two rows are where the reported cases cluster. Obsidian's team explained why the option exists: "At some point we added the option to pick the installation folder, mostly for business/corporate users."3 A custom install path is useful. A notes folder inside it is not.

The fifth row is the case that confuses people most. On 15 November 2026 a new user asked in the warning thread: "Does that mean my files are safely stored in OneDrive, or are they stored in the Obsidian Installer like the warning claims?"3 The app itself was installed in OneDrive\Desktop\Obsidian, with the vault inside it. The warning was correct. The folder was both.

What is the one habit that prevents this?

Keep app files and your files in separate places. The app's folder belongs to the app and its installer. Your notes belong in a folder you made, under your own user folder — Documents is the default Windows gives every user. Then no update, reinstall or uninstall has a reason to touch them.

The guidance is old. Microsoft's guide for game developers, written in the Windows XP era, puts it bluntly: "What this means is that you should not place save games in \Program Files, instead they should go in a sub-folder in \My Documents."12 Today's equivalent of My Documents is %USERPROFILE%\Documents, Windows' FOLDERID_Documents.10

A Microsoft engineer, Aaron Margosis, gave the general principle in 2011: "Distinguish between files users should be able to browse in Explorer (e.g., documents that users create) and files that aren’t intended for direct access by users (application configuration settings, for example). These file types get stored in different locations."14

A moderator of Obsidian's forum put it in one sentence: "App Installation folders are for the app’s program files, not user data."2

One caution about Documents. On many Windows PCs it is redirected into OneDrive, which brings a different risk — files moved to the cloud and left as placeholders. Nothing is deleted, but your app may read a stub. Your Cloud Drive Dehydrated Your Notes covers that one.

The five-minute check: are my notes inside an app's folder?

Find two paths and compare them. The first is your notes folder, which most note apps show in their settings or vault list. The second is the folder that holds the app's .exe. If the notes path starts with the app's path, your notes sit inside the install folder and the next update can remove them.

  1. Find your notes folder. Look in the app's settings, vault switcher or "open folder" dialog, and copy the full path. If you are not sure where your app keeps notes at all, Where Do Your Notes Actually Live? audits the popular apps one by one.
  2. Find the app's folder. With the app running, open Task Manager (Ctrl+Shift+Esc), right-click the app and choose Open file location. Copy the path from File Explorer's address bar.
  3. Compare them. If the notes path begins with the app path, you have the problem. Paste both into PowerShell to check exactly:
$app   = 'C:\Users\you\AppData\Local\Programs\Obsidian'
$notes = 'C:\Users\you\AppData\Local\Programs\Obsidian\Vaults\Main'
($notes.TrimEnd('\') + '\').StartsWith($app.TrimEnd('\') + '\', [StringComparison]::OrdinalIgnoreCase)

True means the notes folder is the app folder or sits inside it. False means it does not. The trailing backslash stops a false match between neighbours such as Obsidian and Obsidian Notes.

  1. Check every app that keeps files near its program. Do the same for any other app whose data folder you chose yourself — a second note app, a journal, a reference manager.

If you use Obsidian, version 1.15.1 or later does step 3 for you on Windows and shows the warning or error quoted above.1

The thirty-minute version: move the notes folder out safely

Close the app, copy the folder to its new home, prove the copy is complete, open it from the new place, and only then delete the old copy. Do not cut and paste. A cut that is interrupted can leave files in neither place, and you want two full copies until you have checked one.

  1. Close the app. A note app that is running may be writing to the folder while you copy it. Quit it fully, including any tray icon.
  2. Make the new folder somewhere you own, such as C:\Users\you\Documents\Notes. Not under Program Files, not under AppData, not next to the .exe.
  3. Copy, do not move. In File Explorer, copy and paste. Or use Windows' built-in robocopy, which copies the contents of the first folder into the second. /E "Copies subdirectories" and includes empty ones; hidden files are copied unless you exclude them:15
robocopy 'C:\Users\you\AppData\Local\Programs\Obsidian\Vaults\Main' 'C:\Users\you\Documents\Notes\Main' /E
  1. Verify the file count. Count files in both folders. -Force includes hidden files, such as an app's settings folder:
(Get-ChildItem -LiteralPath 'C:\Users\you\AppData\Local\Programs\Obsidian\Vaults\Main' -Recurse -File -Force).Count
(Get-ChildItem -LiteralPath 'C:\Users\you\Documents\Notes\Main' -Recurse -File -Force).Count

The two numbers must match. If they do not, find the difference before going further.

  1. Open the new folder in the app. Use the app's own "open folder" or "open vault" command and point it at the new path. Open a few notes, including old ones and ones with attachments.
  2. Remove the old entry, then delete the old copy. Take the old location out of the app's list, then delete the old folder. If you want a safety margin, move the old copy to a backup drive instead of deleting it.
  3. Keep a backup somewhere else. Moving the folder removes one way to lose it. A copy on another drive covers the rest.

This works for any app that keeps notes as plain files in a folder. An app that keeps notes in its own database rather than a folder is a different case — there, the app's export is the copy to protect.

What if an update already erased my notes?

Stop writing to that drive, then look. Every new file saved can overwrite space a deleted file used to occupy. The places worth checking first are the Recycle Bin and the Previous Versions tab of the parent folder. Neither is a guarantee — they are places to look before trying anything else.

Those two places come from a helper on Obsidian's forum, who suggested "two places are worth a quick glance, without changing anything: the Recycle Bin, since deleted folders sometimes end up there, and the Previous Versions tab under Properties" on the folder that had held the lost one.2

Then check your other copies. A sync service, a phone, an old laptop or an email attachment may hold a recent version of some notes. If the notes were in a cloud-synced folder, the service's own web trash or version history may have them.

If none of that works, file-recovery tools exist, and the less you have written to the drive since the loss, the better their odds. Copy anything you recover to a different drive.

Common mistakes

Most mistakes come from treating "the app's folder" as "my app's area". The installer sees one directory it owns, not a mix of its files and yours. These are the ways people end up inside it, and the ways a move goes wrong. Each has a one-step fix.

Frequently Asked Questions

Keeping your notes folder out of an app's install folder raises the same handful of questions each time someone loses one. Several below are close to the words people used on Obsidian's forum and in an installer project's issue tracker. Each answer points to the source code or documentation behind it.

Lost everything after updating Obsidian — where did my vault go?

If the vault was inside Obsidian's installation folder on Windows, the update removed it: Obsidian's 1.15.1 changelog says "the installer erases that folder when Obsidian updates." Check the Recycle Bin and the Previous Versions tab first, without writing to the drive. Then look for copies elsewhere.

Is it safe to keep notes in the program folder?

No. Many Windows installers treat the program folder as their own and delete it on update — electron-builder's default uninstaller runs a recursive delete on it, and Squirrel.Windows removes old version folders. Keep notes in a folder you made, such as one under Documents.

Does Obsidian warn when a vault is inside the installation folder?

Yes, from version 1.15.1 on Windows. Creating or moving a vault there, or opening an unlisted folder there, shows an error. Opening a vault already in your list shows a warning. The version reached Early access on 3 November 2026 and all users on 12 November 2026.

Are my notes safe in OneDrive, or are they in the app's install folder?

They can be both. If you installed the app into a folder inside OneDrive and kept your notes in that same folder, it is synced and an install folder at once. The update can still remove it. Move the notes to a separate folder that holds no program files.

Will moving my vault keep it safe from reinstall issues?

Yes, for this problem. Once the notes folder is no longer inside the app's folder, the installer has no reason to delete it on update, reinstall or uninstall. Close the app, copy the folder, check that both copies have the same file count, open the new copy, then delete the old one.

Why does an app update delete all the files in its install folder?

Because many installers update by uninstalling the old version first. In electron-builder's Windows template, the new installer runs the old uninstaller, which renames the install folder and then deletes it recursively. An app can override that with a custom removal step. Squirrel.Windows keeps only the current and previous version folders.

Where should I keep my notes folder on Windows?

In a folder you created under your own user folder — C:\Users\<you>\Documents is the Windows default for documents — or on a data drive in a folder that holds no app. Avoid Program Files, AppData\Local\Programs, and any folder containing an app's .exe. Keep a backup on a different drive.


An installer owns its folder, all of it. Give your notes a folder no installer owns.


MNMNOTE keeps notes in open Markdown — plain text you can keep in a folder of your own choosing, apart from any app. mnmnote.com

Footnotes

  1. Obsidian, "Obsidian 1.15.1 Desktop (Public)," changelog, 2026-11-12 (Early access release 2026-11-03, same text). https://obsidian.md/changelog/2026-11-12-desktop-v1.15.1/, accessed 2026-11-17. ↩ ↩2 ↩3

  2. Obsidian Forum, "Lost everything after updating Obsidian," topic 120036, 2026-10-31 (posts #1, #5, #10). https://forum.obsidian.md/t/120036, accessed 2026-11-17. ↩ ↩2 ↩3

  3. Obsidian Forum, "Warn when creating a vault inside the obsidian program/executable folder or the folder itself," topic 119612, opened 2026-10-19 (392 views, 18 posts, 15 likes as of 2026-11-17); includes the community case log "A People’s History of creating vaults in the installation folder, 2026" and replies from the Obsidian team (posts #10, #11). https://forum.obsidian.md/t/119612, accessed 2026-11-17. ↩ ↩2 ↩3 ↩4

  4. electron-builder, packages/app-builder-lib/templates/nsis/installSection.nsh, lines 72 and 80, commit cf3f5db. https://github.com/electron-userland/electron-builder/blob/cf3f5db080fe28989c96f9ccab402f48d5e5ef75/packages/app-builder-lib/templates/nsis/installSection.nsh ↩

  5. electron-builder, packages/app-builder-lib/templates/nsis/include/installUtil.nsh, function uninstallOldVersion (comment on line 176), commit c08f4f3. https://github.com/electron-userland/electron-builder/blob/c08f4f341b57cde0e16285b6a2f7af993394f9c7/packages/app-builder-lib/templates/nsis/include/installUtil.nsh ↩

  6. electron-builder, packages/app-builder-lib/templates/nsis/uninstaller.nsh, "delete the installed files" block (customRemoveFiles, old-install, RMDir /r $INSTDIR), commit cf10da8. https://github.com/electron-userland/electron-builder/blob/cf10da8d4988399232e5db62fe533789bdc816b2/packages/app-builder-lib/templates/nsis/uninstaller.nsh ↩ ↩2

  7. electron-builder issue #7914, "Keep specific folders after update," 2023-12-01. https://github.com/electron-userland/electron-builder/issues/7914, accessed 2026-11-17. ↩

  8. Squirrel.Windows documentation, docs/using/install-process.md, commit 75b2e6c. https://github.com/Squirrel/Squirrel.Windows/blob/75b2e6c582af373d65e983693db0ee534ff94733/docs/using/install-process.md ↩ ↩2

  9. Squirrel.Windows documentation, docs/using/update-process.md, commit 968c571. https://github.com/Squirrel/Squirrel.Windows/blob/968c571bcb526711c3bad960dedb3acb1db97713/docs/using/update-process.md ↩ ↩2 ↩3

  10. Microsoft Learn, "KNOWNFOLDERID" (FOLDERID_Documents, FOLDERID_ProgramFiles, FOLDERID_UserProgramFiles). https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid, accessed 2026-11-17. ↩ ↩2 ↩3

  11. electron-builder, packages/app-builder-lib/templates/nsis/multiUser.nsh, lines 33 ($LocalAppData\Programs) and 84 ($PROGRAMFILES), commit c08f4f3. https://github.com/electron-userland/electron-builder/blob/c08f4f341b57cde0e16285b6a2f7af993394f9c7/packages/app-builder-lib/templates/nsis/multiUser.nsh ↩ ↩2

  12. Microsoft Learn, "Gaming with Least-Privileged User Accounts." https://learn.microsoft.com/en-us/windows/win32/dxtecharts/gaming-with-least-privileged-user-accounts, accessed 2026-11-17. ↩ ↩2

  13. electron-builder documentation, "NSIS," option allowToChangeInstallationDirectory (default false). https://www.electron.build/docs/nsis, accessed 2026-11-17. ↩

  14. Aaron Margosis, "FAQ: Where Do I Save Files, and How Exactly Do I Do That?", Microsoft (archived blog), 2011-09-25. https://learn.microsoft.com/en-us/archive/blogs/aaron_margosis/faq-where-do-i-save-files-and-how-exactly-do-i-do-that, accessed 2026-11-17. ↩

  15. Microsoft Learn, "robocopy" (Windows Commands), options /e and /xa. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy, accessed 2026-11-17. ↩