Incorrect deletion of Cortana

clqwnless

New Member
Hello! Today I had an idea in my toolbox script to add an option that deletes Cortana (Windows Search).
Image based on: Windows 10 2019 IOT LTSC (17763.107 build)
Everything would be fine if, when removing Cortana from C:\Windows\SystemApps,
ShellExperienceHost (Start Menu) would work fine - if Cortana was deleted, Start menu will work abnormal, when you run it first time after a reboot or sign up
However, on subsequent launches, it works fine as long as the explorer process is alive.
If the explorer process is killed and started again, the same thing will happen.
I noticed that ntlite deletes it correctly. That is, such a problem does not arise.
How can this be fixed?
 

Attachments

  • img.PNG
    img.PNG
    455.6 KB
What separates NTLite from other scripts or toolkits, is the extensive use of component-based servicing (DISM) to remove features. Simply removing a file doesn't clean up all of the dependencies. Without careful research you end up breaking features.

nuhi isn't going to share his work, because it's how he makes a living. Removals are easy, fixing the consequences is hard.
 
As it turned out, everything is not so complicated.
Of course, if I wanted to add an option to remove cortana in the toolbox so that there would be no bug, I think I would have to go through a lot of trouble.

So, the most important thing is to perform these steps before installation of windows.
You need to remove cortana from the mounted image, located at the path "%MOUNTPATH%\Windows\SystemApps\Microsoft.Windows.Cortana_xxxxxxx"
And most importantly, clear all folders in the registry associated with Cortana in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx.
 

Attachments

  • success.PNG
    success.PNG
    217.2 KB
You should learn DISM /Remove-ProvisionedAppxPackage on offline images, instead of deleting mounted folders.
 
Hello! I understand that it would be better if I avoided such cases by removing. But I have no choice. The image is based on Windows 10 2019 LTSC (1809), but Cortana is available as a Windows app only after the 2004 build. If I had the possibility to remove it using DISM, I would remove it
 
Back
Top