Skip to content

Commit c42e7be

Browse files
committed
Update win-installers to remove certificate when uninstalling
1 parent 8cf4ae9 commit c42e7be

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install-beta.iss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define MyAppVersion "0.28.0-beta.1"
88
#define MyAppPublisher ".NET Foundation"
99
#define MyAppURL "https://aka.ms/devproxy"
10+
#define DevProxyExecutable "devproxy.exe"
1011

1112
[Setup]
1213
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
@@ -45,6 +46,9 @@ Source: ".\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsu
4546
[UninstallDelete]
4647
Type:files;Name:"{app}\rootCert.pfx"
4748

49+
[UninstallRun]
50+
Filename: "{app}\{#DevProxyExecutable}"; Parameters: "cert remove"; RunOnceId: "DelService"; Flags: runhidden;
51+
4852
[Code]
4953
procedure RemovePath(Path: string);
5054
var

install.iss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define MyAppVersion "0.28.0"
88
#define MyAppPublisher ".NET Foundation"
99
#define MyAppURL "https://aka.ms/devproxy"
10+
#define DevProxyExecutable "devproxy.exe"
1011

1112
[Setup]
1213
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
@@ -45,6 +46,9 @@ Source: ".\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsu
4546
[UninstallDelete]
4647
Type:files;Name:"{app}\rootCert.pfx"
4748

49+
[UninstallRun]
50+
Filename: "{app}\{#DevProxyExecutable}"; Parameters: "cert remove"; RunOnceId: "DelService"; Flags: runhidden;
51+
4852
[Code]
4953
procedure RemovePath(Path: string);
5054
var

0 commit comments

Comments
 (0)