File tree Expand file tree Collapse file tree 5 files changed +145
-12
lines changed Expand file tree Collapse file tree 5 files changed +145
-12
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ Section "Uninstall"
9494 ; Execute the dedicated uninstall script to handle all cleanup tasks
9595 ExecWait ' powershell.exe -ExecutionPolicy ByPass -File "$INSTDIR\uninstall.ps1"'
9696
97+ ; Remove shortcuts created at install (if present)
98+ Delete " $SMPROGRAMS\${APP_NAME}.lnk"
99+ Delete " $DESKTOP\${APP_NAME}.lnk"
100+
97101 ; Remove files
98102 RMDir /r " $INSTDIR"
99103SectionEnd
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ requires-python = "==3.13.*"
1111dependencies = [
1212 " libinspector==1.0.12" ,
1313 " streamlit>=1.50.0" ,
14+ " matplotlib==3.10.3" ,
1415]
1516authors = [
1617 {
name =
" Danny Huang" ,
email =
" [email protected] " },
Original file line number Diff line number Diff line change @@ -44,22 +44,17 @@ $CurrentDir = $PSScriptRoot
4444# Check if uv is available. If it's not, we assume the initial setup needs to run.
4545$NpcapFound = Test-NpcapInstalled
4646if (-not (Get-Command uv - ErrorAction SilentlyContinue) -or -not $NpcapFound ) {
47- Write-Warning " 'uv' not found. Launching initial setup script: $DependencyScript "
47+ Write-Warning " Launching initial setup script: $DependencyScript "
4848
4949 # Execute install.ps1 directly (since we are already running as Admin)
5050 # The dependency script handles uv installation and Npcap checks.
5151 & " $CurrentDir \$DependencyScript "
5252
53- Write-Host " Setup finished. Re-verifying installation..."
54-
5553 # Crucial: After UV is installed, we must start a new shell session
5654 # for the PATH variable (where uv is located) to be properly updated.
57- if (-not (Get-Command uv - ErrorAction SilentlyContinue)) {
58- Write-Host " UV installation successful, but the PATH variable needs refreshing."
59- Write-Host " Please close this window and run the desktop shortcut again."
60- Read-Host " Press Enter to exit and relaunch"
61- exit
62- }
55+ Write-Host " Setup finished!!"
56+ Read-Host " Please close this window by clicking the X and click IoT Inspector again."
57+ exit
6358}
6459
6560# --- 3. Virtual Environment Setup (Non-Admin system tasks) ---
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ $filesToDelete = @(
3737 " setup.py" ,
3838 " uv.lock" ,
3939 " README.md" ,
40- " LICENSE" ,
41- " npcap-1.76.exe"
40+ " LICENSE"
4241)
4342
4443foreach ($file in $filesToDelete ) {
You can’t perform that action at this time.
0 commit comments