Solved Wine: uninstaller

… <https://wiki.winehq.org/FAQ#How_do_I_uninstall_individual_Windows_applications.3F>:

You can run Wine's uninstaller command; this is like Windows' "Add/Remove Programs" function. To uninstall 64 bit applications, including wine-mono, you need to run it with wine64. The uninstaller should remove menu and desktop entries... but it's not well tested; it might not work with all apps. See below for a reliable way to remove *all* Windows apps.

How is this uninstaller used?

Code:
% which uninstaller
uninstaller: Command not found.
% pkg info --list wine | grep uninstaller
        /usr/local/lib/wine/fakedlls/uninstaller.exe
        /usr/local/lib/wine/uninstaller.exe.so
% /usr/local/lib/wine/fakedlls/uninstaller.exe
/usr/local/lib/wine/fakedlls/uninstaller.exe: Permission denied.
% sudo /usr/local/lib/wine/fakedlls/uninstaller.exe
grahamperrin's password:
sudo: /usr/local/lib/wine/fakedlls/uninstaller.exe: command not found
% file /usr/local/lib/wine/fakedlls/uninstaller.exe
/usr/local/lib/wine/fakedlls/uninstaller.exe: PE32+ executable (console) x86-64, for MS Windows
% wine /usr/local/lib/wine/fakedlls/uninstaller.exe
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:err:winediag:WS_getaddrinfo Failed to resolve your host name IP
0068:err:vulkan:get_vulkan_driver Wine was built without Vulkan support.
0024:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000035a).
wine: could not load kernel32.dll, status c0000135
% 008c:err:rpc:I_RpcReceive we got fault packet with status 0x1c010003

%
 
wine uninstaller

I am using wine-devel
 

Attachments

  • uninstaller_wine.png
    uninstaller_wine.png
    7 KB · Views: 162
Thanks. Now I see, wine uninstaller.exe also works; also opens the Add/Remove Programs control panel.

I guess, using Wine File Manager winefile to open the control panel should be equivalent:

1636094651685.png

– although there's Bug 51977 – winefile: Add/Remove Programs rundll32.exe is windowed but not properly controllable by the window manager (missing from Task Manager).

As with uninstallation of Zotero, there's .desktop file debris after uninstallation of Mozilla Firefox (x86 en-GB) 91.0:

1636093910714.png

Code:
% cat /usr/home/grahamperrin/.local/share/applications/wine/Programs/Firefox.desktop
[Desktop Entry]
Name=Firefox
Exec=env WINEPREFIX="/home/grahamperrin/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/grahamperrin/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Firefox.lnk
Type=Application
StartupNotify=true
Path=/home/grahamperrin/.wine/dosdevices/c:/Program Files/Mozilla Firefox
Icon=F0E6_firefox.0
StartupWMClass=firefox.exe
% file /home/grahamperrin/.wine/dosdevices/c:/Program\ Files/Mozilla\ Firefox
/home/grahamperrin/.wine/dosdevices/c:/Program Files/Mozilla Firefox: cannot open `/home/grahamperrin/.wine/dosdevices/c:/Program Files/Mozilla Firefox' (No such file or directory)
% rm /usr/home/grahamperrin/.local/share/applications/wine/Programs/Firefox.desktop
%

Alexander88207 should I treat the debris as negligible, or a bug?
 
Thanks, I was confused for a few minutes because what's in your screenshot – five commands – differs from the four commands that appear first below (linked) 4.2.

Eventually I realised, those five commands are from 4.4, which is for starting from scratch (not what I want; I uninstalled some, not all, applications).

I guess, Firefox and Zotero are simply amongst the applications with which wine uninstaller does not work as well as it should.
 
I wouldn't even trust any windows uninstaller (yep, every application comes with its own which is just noted somewhere in registry) to perform a correct uninstall. Many of them leave crap around in your (windows) system.

With wine, there's a much nicer alternative: Create a separate WINEPREFIX for every windows app you install. If you want to dump it, just dump the whole prefix.
 
Back
Top