Detecting Default Browser
Is it possible to detect the users default web browser from a NSIS script?
Thanks in advance,
Mike
Archive: Detecting Default Browser
Detecting Default Browser
Is it possible to detect the users default web browser from a NSIS script?
Thanks in advance,
Mike
Yes!
You can
Name "defBrow"
OutFile "defBrow.exe"
ShowInstDetails show
XPStyle on
Function .onInit
InitPluginsDir
FunctionEnd
Section
FileOpen $0 "$PLUGINSDIR\dummy.htm" "w"
FileClose $0
System::Call "Shell32::FindExecutable(t '$PLUGINSDIR\dummy.htm', i 0, t .r1)"
DetailPrint "Your Default Browser is:"
DetailPrint $1
SectionEnd