; The name of the installer
Name "WiFi Off"

; The file to write
OutFile "wifiOff.exe"

;Icon
Icon "icons\wifioff.ico"

;removing the Nullsoft brand
BrandingText " "

;Silent Installing - no windows
SilentInstall silent

; hide the "show details" box
ShowInstDetails nevershow

; automatically close the installer when done.
AutoCloseWindow true

; Request application privileges for Windows Vista
RequestExecutionLevel user


Section ""
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "WifiEnabled"

;Executing the Application
nsExec::Exec "$EXEDIR\ioperm.exe -i"
nsExec::Exec "$EXEDIR\hsect2.exe -W 0"
;nsExec::Exec "$EXEDIR\ioperm.exe -u"

SectionEnd