Question Can't open some programs after changing main user folder name.

May 25, 2021
1
0
10
0
I changed the name of my main user folder and now I can't open OR uninstall certain programs, one of which I use very often.
Below is the error I get when trying to open Discord. I can't uninstall it either, because windows tries to uninstall discord within my old user folder, which obviously doesn't exist anymore.
[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: Cannot find module 'C:\Users\geoff\AppData\Roaming\BetterDiscord\data\betterdiscord.asar'
Require stack:
- C:\Users\F2iFov\AppData\Local\Discord\app-1.0.9001\resources\app\index.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at Function.o._resolveFilename (electron/js2c/browser_init.js:281:681)
at Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (C:\Users\F2iFov\AppData\Local\Discord\app-1.0.9001\resources\app\index.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:967:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
at Module.load (internal/modules/cjs/loader.js:815:32)

[OK]
 

ASK THE COMMUNITY