App-V packaged Visual Studio Code fails on Windows 11 24H2 and 25H2: the --no-sandbox fix with trade-offs
We are in the process of migrating away from App-V to App Volumes over the next year. However, until the migration from Altiris to Workspace ONE UEM and App Volumes Manager is fully completed, we are keeping a number of App-V packages alive. In our testing, Visual Studio Code packaged with Microsoft App-V stopped launching on Windows 11 24H2 and 25H2, while the same package continued to work on 23H2. Testing newer Visual Studio Code versions did not solve the problem. However, launching Visual Studio Code with the --no-sandbox switch worked immediately. The Fix The practical workaround is simple: Code.exe --no-sandbox This strongly suggests that the failure is related to Electron's sandboxed startup path on newer Windows builds, rather than a normal packaging mistake or a problem limited to one specific Visual Studio Code version. Security Consequences That said, this...