-
Run
fix.py
, a Python3 script, with SYSTEM privilege. (NOT Administrator privilege)More detail:
-
If you don't have Python3, just download Python3 installer with the following links:
-
For Windows X86: https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe
-
For Windows X64: https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe
Then open Python3 installer and you get the Python3 setup window. Make sure to check the checkbox "Add Python 3.7 to PATH" before you click on the Install button. So we don’t have to configure the PATH variable manually.
After the installation is done, you can open Command Prompt and type
python
to check if succeeded. If nothing wrong, you will get a python shell looking like:Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
-
-
Now you have Python3. It's time to launch Command Prompt with SYSTEM privilege.
-
Go to here and download a tool called
psexec
. -
Open Command Prompt with Administrator privilege and change current directory to directory where
psexec.exe
exists.Then type
psexec.exe -i -s -d cmd.exe
and you will get a new Command Prompt with SYSTEM privilege.
-
-
In Command Prompt with SYSTEM privilege, change current directory to directory where
fix.py
exists and typefix.py
to run
fix.py
script. If nothing wrong, the output should beTrigger "TRG_AFTER_UPDATE_Package_SRJournal" has been cleared. IsInbox of "Microsoft.Windows.HolographicFirstRun_cw5n1h2txyewy_xxxxx" has been set to 0. Trigger "TRG_AFTER_UPDATE_Package_SRJournal" has been restored.
-
-
Run PowerShell with Administrator privilege. Execute the following command:
Get-AppxPackage -all *HolographicFirstRun* | Remove-AppPackage -AllUsers
to uninstall
Microsoft.Windows.HolographicFirstRun
. -
Reboot
-
After reboot, kill
explorer.exe
andShellExperienceHost.exe
in Task Manager. -
Task Manager -> File -> Run new task
Click Browse button.
In newly-opened window, go to
%localappdata%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy
and deleteTempState
directory. -
Start explorer.exe in Task Manager and you will see
ms-resource:AppName/Text
is gone.
-
-
Save DoubleLabyrinth/ffae94cb9444bbdae1d11deeaa247310 to your computer and use it in GitHub Desktop.
import os, sqlite3 | |
conn = sqlite3.connect(os.path.expandvars(r'%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd')) | |
cursor = conn.execute( | |
''' | |
SELECT _PackageID, PackageFullName FROM main.Package | |
WHERE PackageFullName LIKE "Microsoft.Windows.HolographicFirstRun%"; | |
''' | |
) | |
records_to_update = {} | |
for row in cursor: | |
records_to_update[row[0]] = row[1] | |
cursor = conn.execute( | |
''' | |
SELECT name, sql FROM main.sqlite_master | |
WHERE type = "trigger" AND tbl_name = "Package" AND name LIKE "TRG_AFTER_UPDATE%"; | |
''' | |
) | |
triggers_backup = {} | |
for row in cursor: | |
triggers_backup[row[0]] = row[1] | |
# Delete update triggers for table "Package" | |
for TriggerName, TriggerSQL in triggers_backup.items(): | |
conn.execute( | |
''' | |
DROP TRIGGER %s; | |
''' % TriggerName | |
) | |
conn.commit() | |
print('Trigger "%s" has been cleared.' % TriggerName) | |
# Set IsInbox to 0 | |
for PackageID, PackageFullName in records_to_update.items(): | |
conn.execute( | |
''' | |
UPDATE main.Package SET IsInbox = 0 WHERE _PackageID = %d; | |
''' % PackageID | |
) | |
conn.commit() | |
print('IsInbox of "%s" has been set to 0.' % PackageFullName) | |
# Restore triggers | |
for TriggerName, TriggerSQL in triggers_backup.items(): | |
conn.execute( | |
''' | |
%s; | |
''' % TriggerSQL | |
) | |
conn.commit() | |
print('Trigger "%s" has been restored.' % TriggerName) | |
On line 18, the trigger name should be changed from "TRG_AFTER_UPDATE%" to "TRG_AFTERUPDATE%"
I have uninstalled Microsoft Edge succesfully by above fix, (with a small edit), thanks.
When I ran
fix.py
in Command Prompt with SYSTEM privilege I got:
Can't find a default Python.
I have Python path in user variables for admin, do I have to add it in system variables too?
i try to execute fix.py but i have an error on ligne :
SELECT _PackageID, PackageFullName FROM main.Package WHERE PackageFullName LIKE "Microsoft.Windows.HolographicFirstRun%";
on SELECT command : SyntaxError : invalid syntax
i don't know what to do.
canyou help please ?
When I ran
fix.py
in Command Prompt with SYSTEM privilege I got:
Can't find a default Python.
I have Python path in user variables for admin, do I have to add it in system variables too?
When I ran
fix.py
in Command Prompt with SYSTEM privilege I got:
Can't find a default Python.
I have Python path in user variables for admin, do I have to add it in system variables too?
i try to execute fix.py but i have an error on ligne :
SELECT _PackageID, PackageFullName FROM main.Package WHERE PackageFullName LIKE "Microsoft.Windows.HolographicFirstRun%";
on SELECT command : SyntaxError : invalid syntax
i don't know what to do.
canyou help please ?
Does anyone know how to fix this?