URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ac2883f5e8e0a461ba06733294738358eb527b8c
Submitter: "Graham Bloice <graham.bloice@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
ac2883f by Graham Bloice (graham.bloice@xxxxxxxxxxxxx):
NSIS uninstaller: ensure the uninstaller runs with elevated privileges
The uninstaller should run with elevated privileges to allow deletion
of files from protected directories.
Modifying the uninstall script to require elevation then causes the
uninstaller_installer that creates the uninstaller to also require
elevation which happens at build time so defeat that
by setting the env var __COMPAT_LAYER to "RunAsInvoker" before calling
the uninstaller_installer.
Achieving this from CMake requires a script to call to set the env var
and then calling the executable.
Change-Id: I056931bc4f9b41877b8f31d765d49fee11b54e39
Reviewed-on: https://code.wireshark.org/review/37955
Petri-Dish: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Actions performed:
from 4bea0e7 USB Audio: Dissect v2 Feature unit descriptor
add ac2883f NSIS uninstaller: ensure the uninstaller runs with elevated privileges
Summary of changes:
packaging/nsis/CMakeLists.txt | 2 +-
packaging/nsis/makeUninstall.ps1 | 47 ++++++++++++++++++++++++++++++++++++++++
packaging/nsis/uninstall.nsi | 1 -
3 files changed, 48 insertions(+), 2 deletions(-)
create mode 100644 packaging/nsis/makeUninstall.ps1