regen pidl all: rm epan/dissectors/pidl/*-stamp; pushd epan/dissectors/pidl/ && make...
[wireshark-sm.git] / packaging / nsis / makeUninstall.ps1
blob601b3ff61c86f7742fc0951e6263891dc5f7a790
1 # MakeUninstall.ps1
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
14 #requires -version 2
17 .SYNOPSIS
18 Runs the uninstall_<application>_installer without invoking UAC.
20 .DESCRIPTION
21 This script runs the uninstall_<application>_installer that creates an
22 uninstall exe but without invoking a UAC elevation prompt that is required
23 by the uninstaller
25 .PARAMETER Executable
26 The path to the uninstall_<application>_installer.exe
28 .INPUTS
29 -Executable Path to the uninstaller installer.
31 .OUTPUTS
32 An unsigned uninstall-<application>.exe for signing
34 .EXAMPLE
35 C:\PS> .\makeUninstall.ps1 run\RelWithDebInfo\uninstall_wireshark_installer.exe
38 Param(
39 [Parameter(Mandatory=$true, Position=0)]
40 [String] $Executable
43 # Stop the process requesting elevation, runs as the user
44 $env:__COMPAT_LAYER = "RunAsInvoker"
46 # And run the process
47 Start-Process $Executable -Wait -NoNewWindow