3 # Runs the uninstall_installer to create the uninstall.exe that can be signed
4 # Uses set __COMPAT_LAYER=RunAsInvoker to not request elevation
6 # Copyright 2020 Graham Bloice <graham.bloice@trihedral.com>
8 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
10 # Copyright 1998 Gerald Combs
12 # SPDX-License-Identifier: GPL-2.0-or-later
18 Runs the uninstall_
<application
>_installer without invoking UAC
.
21 This script runs the uninstall_
<application
>_installer that creates an
22 uninstall exe but without invoking a UAC elevation prompt that is required
26 The path to the uninstall_
<application
>_installer
.exe
29 -Executable Path to the uninstaller installer
.
32 An unsigned uninstall-
<application
>.exe for signing
35 C
:\PS
> .\makeUninstall
.ps1 run\RelWithDebInfo\uninstall_wireshark_installer
.exe
39 [Parameter
(Mandatory
=$true, Position
=0)]
43 # Stop the process requesting elevation, runs as the user
44 $env:__COMPAT_LAYER
= "RunAsInvoker"
47 Start-Process
$Executable -Wait
-NoNewWindow