https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16731

            Bug ID: 16731
           Summary: uninstall.exe fails - "mmdbresolve.exe could not be
                    removed"
           Product: Wireshark
           Version: 3.2.5
          Hardware: x86
                OS: Windows 10
            Status: UNCONFIRMED
          Severity: Minor
          Priority: Low
         Component: Build process
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Build Information:
3.2.5 (v3.2.5-0-ged20ddea8138)

Compiled (64-bit) with Qt 5.12.8, with WinPcap SDK (WpdPack) 4.1.2, with GLib
2.52.3, with zlib 1.2.11, with SMI 0.4.8, with c-ares 1.15.0, with Lua 5.2.4,
with GnuTLS 3.6.3 and PKCS #11 support, with Gcrypt 1.8.3, with MIT Kerberos,
with MaxMind DB resolver, with nghttp2 1.39.2, with brotli, with LZ4, with
Zstandard, with Snappy, with libxml2 2.9.9, with QtMultimedia, with automatic
updates using WinSparkle 0.5.7, with AirPcap, with SpeexDSP (using bundled
resampler), with SBC, with SpanDSP, with bcg729.

Running on 64-bit Windows 10 (1903), build 18362, with Intel(R) Core(TM)
i5-4300U CPU @ 1.90GHz (with SSE4.2), with 12193 MB of physical memory, with
locale English_United States.1252, with light display mode, without HiDPI, with
Npcap version 0.9988, based on libpcap version 1.9.1, with GnuTLS 3.6.3, with
Gcrypt 1.8.3, with brotli 1.0.2, without AirPcap, binary plugins supported (19
loaded).

Built using Microsoft Visual Studio 2019 (VC++ 14.26, build 28806).

--
TL;DR - only tested on Windows 10. Got desired results.
 - What are implications of setting uninstall.exe to run as Administrator on
other/older Windows platforms?
 - If no change made to ExecutionLevel then uninstall should be changed to give
a better error message when it fails.


https://ask.wireshark.org/question/7526/mmdbresolveexe-could-not-be-removed/

If uninstall.exe is not "Run as administrator" it fails with an obtuse error
about mmdbresolve.
When Control Panel or Settings->Apps are used to uninstall, Windows does the
UAC popup and asks for permission.
Uninstall then runs fine if user selects ok to continue.

-------------------------------------------------------------------------------
The installer makes a request to run as Administrator causing Windows to pop up
the UAC question.

https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob;f=packaging/nsis/wireshark.nsi
"NSIS runs as Administrator ..."

The uninstaller is explicitly set to run in user mode which fails on the first
file deletion which happens to be mmdbresolve.exe.
I have tested a build with the line below commented out. When uninstall.exe is
run, it pops up UAC and if granted, uninstall runs ok.

https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob;f=packaging/nsis/uninstall.nsi
RequestExecutionLevel user

-------------------------------------------------------------------------------

https://nsis.sourceforge.io/Reference/RequestExecutionLevel
RequestExecutionLevel: none|user|highest|admin
"Windows Vista/7 automatically identifies NSIS installers and decides
administrator privileges are required."

https://docs.microsoft.com/en-us/cpp/build/reference/manifestuac-embeds-uac-information-in-manifest?view=vs-2019
/MANIFESTUAC (Embeds UAC information in manifest)

-------------------------------------------------------------------------------

Wireshark$ pwd
/mnt/c/Program Files/Wireshark

Wireshark$ strings -a ./uninstall.exe | grep -i executionlevel
--snip--
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
--snip--


Wireshark$ ls -l Wireshark-win64-3.2.5.exe
-rwxrwxrwx 1 foo bar 60082856 Jul  2 15:44 Wireshark-win64-3.2.5.exe

Wireshark$ strings -a ./Wireshark-win64-3.2.5.exe | grep -i executionlevel
--snip--
<requestedPrivileges><requestedExecutionLevel level="requireAdministrator"
uiAccess="false"/>
--snip--

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <[email protected]>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:[email protected]?subject=unsubscribe

Reply via email to