Since Windows 10 build 1809, the shell variable 0x14 has been being
overloaded and redirected to the user's profile.
Thereby will place the file copied by Shell.Application.Namespace(0x14).CopyHere() into C:\Users\<username>\AppData\Local\Microsoft\Windows\Fonts.
The uninstall script was processing $([Environment]::GetFolderPath('Fonts')), so there was a difference between the install directory and the uninstall directory.
To quickly solve this problem, the font-helper extension was added as a dependency, and the extension's function replaced adding and removing fonts.
Since Windows 10 build 1809, the shell variable 0x14 has been being overloaded and redirected to the user's profile.
Thereby will place the file copied by
Shell.Application.Namespace(0x14).CopyHere()
intoC:\Users\<username>\AppData\Local\Microsoft\Windows\Fonts
.The uninstall script was processing
$([Environment]::GetFolderPath('Fonts'))
, so there was a difference between the install directory and the uninstall directory.To quickly solve this problem, the font-helper extension was added as a dependency, and the extension's function replaced adding and removing fonts.