This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ public static void run_as_admin()
126126 }
127127 catch ( Exception )
128128 {
129- MessageBox . Show ( "Please run Clab as administrator next time. This is required to configure the firewall" ) ;
129+ MessageBox . Show ( new Form { TopMost = true } ,
130+ "Please run Clab as administrator next time. This is required to configure the firewall" ,
131+ "Firewall Configuration [Access Denied]" ,
132+ MessageBoxButtons . OK ,
133+ MessageBoxIcon . Exclamation ) ;
130134 }
131135
132136 Environment . Exit ( 0 ) ;
Original file line number Diff line number Diff line change 66 <ApplicationManifest >app.manifest</ApplicationManifest >
77 <Version >0.0.1</Version >
88 <ApplicationIcon >icon\uninstall.ico</ApplicationIcon >
9+ <AssemblyName >uninstall</AssemblyName >
910 </PropertyGroup >
1011
1112 <ItemGroup >
2021 </COMReference >
2122 </ItemGroup >
2223
24+ <ItemGroup >
25+ <None Update =" uninstall.cmd" >
26+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
27+ </None >
28+ </ItemGroup >
29+
2330</Project >
Original file line number Diff line number Diff line change 11@ echo off
22set filepath = %1
33cd ..
4- start cmd.exe /k " timeout 2 > NUL && rmdir /s /q %filepath% "
4+ tasklist | find /i " Clab.exe" && taskkill /im Clab.exe /F || echo " Clab.exe" not running
5+ echo Uninstalling Clab...
6+ timeout 2 > NUL
7+ rmdir /s /q %filepath%
You can’t perform that action at this time.
0 commit comments