webview2-user-data-relocation
CommunityKeep WebView2 data out of install folders.
Software Engineering#installer#environment#desktop#windows#webview2#localappdata#uninstall-cleanliness
AuthorBSchafer01
Version1.0.0
Installs0
System Documentation
What problem does it solve?
WebView2 profiles and caches can live next to the installed binaries, which complicates MSI uninstall and leaves the install root mutable. This Skill relocates WebView2 user data to a dedicated app-owned folder under LOCALAPPDATA to keep the installed payload clean and maintainable.
Core Features & Use Cases
- Create a stable app-owned folder under %LOCALAPPDATA% for WebView2 User Data (profile and cache).
- Bootstrap WebView2 with an explicit environment via CoreWebView2Environment.CreateAsync(userDataFolder: ...).
- Launch WebView2 using the explicit environment to prevent stray App.exe.WebView2 folders beside the executable.
- Improve MSI uninstall cleanliness and per-user install integrity by isolating runtime data.
Quick Start
Configure your app to create a LOCALAPPDATA userDataFolder and initialize CoreWebView2Environment with that path, then call EnsureCoreWebView2Async using the created environment.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: webview2-user-data-relocation Download link: https://github.com/BSchafer01/PanelNester/archive/main.zip#webview2-user-data-relocation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.