tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Sample.nsi (775B)


      1 ; liteFirewall - Sample script
      2 
      3 !ifdef TARGETDIR
      4 !addplugindir "${TARGETDIR}"
      5 !else
      6 !addplugindir "..\bin"
      7 !endif
      8 
      9 Name "Sample liteFirewall"
     10 OutFile "Sample.exe"
     11 ShowInstDetails show	
     12 
     13 Section "Main program"
     14 ; Add NOTEPAD to the authorized list
     15 liteFirewallW::AddRule "$WINDIR\Notepad.exe" "liteFirewall Test"
     16 Pop $0
     17 Exec "rundll32.exe shell32.dll,Control_RunDLL firewall.cpl"
     18 MessageBox MB_OK "Program added to Firewall exception list.$\r$\n(close the control panel before clicking OK)"
     19 
     20 ; Remove NOTEPAD from the authorized list
     21 liteFirewallW::RemoveRule "$WINDIR\Notepad.exe" "liteFirewall Test"
     22 Pop $0
     23 Exec "rundll32.exe shell32.dll,Control_RunDLL firewall.cpl"
     24 MessageBox MB_OK "Program removed to Firewall exception list"
     25 SectionEnd