; Broadcom 802.11 Network Adapter Setup for Windows 10
; Copyright (C) 2012, Broadcom Corp.

[Version]
Signature="$Windows NT$"

[Setup]
OEM		   = 	Bcm
DefaultInstallPath	= %16422%\Broadcom\Broadcom 802.11 Network Adapter
UninstallLog		= %16422%\Broadcom\Broadcom 802.11 Network Adapter\uninstall.log
DriverStore		= %16422%\Broadcom\Broadcom 802.11 Network Adapter\Driver
SupportedOS		= 10.0

[Install]
ConditionalSection	= gsmu.upgrade,gsmu.driver.upgrade
UninstallLog		= uninstall.log
CopyFiles		= install.copyfiles
AddReg			= install.addreg, addremove.addreg
DriverInf          =	Drivers\@OS@\WL\bcmwdidhdsdio.inf

[Install.amd64]
ConditionalSection	= gsmu.upgrade,gsmu.driver.upgrade
UninstallLog		= uninstall.log
CopyFiles		= install.copyfiles.amd64
AddReg			= install.addreg, addremove.addreg.amd64
DriverInf          =	Drivers\@OS@\WL\x64\bcmwdidhdsdio.inf

[cond.driver]

[install.driver]

[Upgrade.amd64]
PreRun =	uninstall.run
DelReg =	install.delreg

[Upgrade]
PreRun =	uninstall.run
DelReg =	install.delreg

[Uninstall.amd64]
PreRun =	uninstall.run
DelReg =	install.delreg
DelDirs =	app.deldirs
UninstallInf =	bcmdhd64.inf, bcmfn2.inf

[Uninstall]
PreRun =	uninstall.run
DelReg =	install.delreg
DelDirs =	app.deldirs
UninstallInf =	bcmdhd64.inf, bcmfn2.inf

[install.copyfiles.amd64]
;bcmwlapiu.dll,x64\bcmwlapiu.dll,,	0x00000006
;@CCX@Uninst_EAPModules.bat,EAP_Plugin_Installer\Uninst_EAPModules.bat,, 0x00000006
bcmwlu00.exe,bcmwlu00.exe,,	0x00000006
bcmwls64.exe,,,	0x00000006
PackageVersion.dll,,,	0x00000006
dpinst64.exe,,,	0x00000006

[install.copyfiles]
;bcmwlapiu.dll,,, 0x00000006
;@CCX@Uninst_EAPModules.bat,EAP_Plugin_Installer\Uninst_EAPModules.bat,, 0x00000006
bcmwlu00.exe,,,	0x00000006
bcmwls32.exe,,,	0x00000006
PackageVersion.dll,,,	0x00000006
dpinst32.exe,,,	0x00000006

[app.deldirs]
; Flags are 1=FLG_DEL_DIR_FORCE, 0=FLG_DEL_DIR_IF_EMPTY
"%16422%\Broadcom\Broadcom 802.11 Network Adapter\Driver", 0x00000001
"%16422%\Broadcom\Broadcom 802.11 Network Adapter",0x00000001
"%16422%\Broadcom",0x00000000

[driver.addreg]
;No space between each column
;*PriorityVLANTag,STR,1
;WakeUpCapabilities,NUM,2

[install.addreg]
;@WAPI@HKLM,"Software\Broadcom\802.11", "EnableWapi", 0x00014001, 1, "", 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;       Entries for uninstall
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",UninstallString,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe"" verbose /rootkey=""Software\Broadcom\802.11\UninstallInfo"" /rootdir=""%16422%\Broadcom\Broadcom 802.11 Network Adapter"" driver", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",DisplayName,0,"Broadcom 802.11 Network Adapter", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",DisplayIcon,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe""", "", 0
; Extended uninstall entries
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",InstallLocation,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter""", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",MajorVersion,0x00010001,1, "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",MinorVersion,0x00010001,478, "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",DisplayVersion,0,"1.478.0.0", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",NoModify,0x00010001,1, "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",NoRepair,0x00010001,1, "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",Publisher,0,"Broadcom Corporation", "", 0
;@APP_ONLY@HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",Install_Type,0,"2", "", 0

[addremove.addreg.amd64]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",UpgradeString,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwls64.exe"" upgrade", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",QuietUninstallString,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwls64.exe"" uninstall driver", "", 0

[addremove.addreg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",UpgradeString,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwls32.exe"" upgrade", "", 0
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",QuietUninstallString,0,"""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwls32.exe"" uninstall driver", "", 0

[install.delreg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Network Adapter",,0x00002000
;@WAPI@HKLM,"Software\Broadcom\802.11",,0x00006000

[gsmu.upgrade]
; Each line in this section is processed in order until a match is
; found. First the registry value at the key given in the first and
; second fields is stricmp() compared with value in third field. If it
; matches, the company name and version number from the version
; resource are compared against the fourth field and fifth fields. If
; the file version is lesser than or equal, the actions in the section
; given by the key are added to the queue.
; Run the latest uninstaller, note special "Run" command
UpgradeRun,,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11b Network Adapter",UpgradeString,,,,,
; Catch all old uninstallers
Upgrade,gsmu,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11b Network Adapter",UninstallString,""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe"", "verbose",,,

[gsmu.app.upgrade]
UpgradeRun,,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Application",UpgradeString,,,,,
Upgrade,gsmu.app,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Application",UninstallString,""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe"","verbose /rootkey=Software\Broadcom\802.11_App\UninstallInfo",,,

[gsmu.driver.upgrade]
Upgrade,gsmu,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11b Network Adapter",UninstallString,""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe"","verbose /rootkey=Software\Broadcom\802.11\UninstallInfo",,,

[gsmu]
PreRun=gsmu.services
DelReg=gsmu.delreg
RegDelFiles=SOFTWARE\Broadcom\802.11\UninstallInfo\InstalledFiles

[gsmu.app]
PreRun=gsmu.app.services
DelReg=gsmu.app.delreg
RegDelFiles=SOFTWARE\Broadcom\802.11_App\UninstallInfo\InstalledFiles

[gsmu.services]
""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe" services /rootkey=SOFTWARE\Broadcom\802.11\UninstallInfo", 0x04
""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe" preupdate /rootkey=SOFTWARE\Broadcom\802.11\UninstallInfo", 0x04

[gsmu.app.services]
""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe" services /rootkey=SOFTWARE\Broadcom\802.11_App\UninstallInfo", 0x04
""%16422%\Broadcom\Broadcom 802.11 Network Adapter\bcmwlu00.exe" preupdate /rootkey=SOFTWARE\Broadcom\802.11_App\UninstallInfo", 0x04

[gsmu.delreg]
HKLM,"SOFTWARE\Broadcom\802.11\UninstallInfo",,0x00002000
HKLM,"SOFTWARE\Broadcom\802.11",SupportedApps,0x00002000
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11b Network Adapter",,0x00002000

[gsmu.app.delreg]
HKLM,"SOFTWARE\Broadcom\802.11_App\UninstallInfo",,0x00002000
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Broadcom 802.11 Application",,0x00002000

[app.run]

[app.run.amd64]

[uninstall.run.amd64]

[uninstall.run]
;@CCX@"%16422%\Broadcom\Broadcom 802.11 Network Adapter\Uninst_EAPModules.bat", ,	0x00

[DestinationDirs]
DefaultDestDir=11
install.copyfiles.amd64=16422,Broadcom\Broadcom 802.11 Network Adapter
install.copyfiles=16422,Broadcom\Broadcom 802.11 Network Adapter

[SourceDisksNames]
1="Broadcom 802.11 Application Install Disk"

[SourceDisksFiles]
;bcmwlapiu.dll=1
;@CCX@Uninst_EAPModules.bat=1
bcmwlu00.exe=1
bcmwls32.exe=1
bcmwls64.exe=1
dpinst64.exe=1
dpinst32.exe=1

[help.copyfiles]

[strings]


[strings.2c01] 

[strings.0401] 

[strings.3801] 

[strings.0416] 

[strings.0402] 

[strings.0804] 

[strings.1004] 

[strings.0c04] 

[strings.0404] 

[strings.041a] 

[strings.0405] 

[strings.0406] 

[strings.0813] 

[strings.0413] 

[strings.0c09] 

[strings.1009] 

[strings.040f] 

[strings.0421] 

[strings.1809] 

[strings.043e] 

[strings.1409] 

[strings.3409] 

[strings.1c09] 

[strings.0809] 

[strings.0409] 

[strings.0425] 

[strings.040b] 

[strings.0c0c] 

[strings.040c] 

[strings.180c] 

[strings.100c] 

[strings.0c07] 

[strings.0407] 

[strings.1407] 

[strings.1007] 

[strings.0807] 

[strings.0408] 

[strings.040d] 

[strings.040e] 

[strings.0410] 

[strings.0810] 

[strings.0411] 

[strings.0412] 

[strings.0426] 

[strings.0427] 

[strings.0414] 

[strings.0415] 

[strings.0816] 

[strings.0418] 

[strings.0419] 

[strings.041b] 

[strings.0424] 

[strings.2c0a] 

[strings.400a] 

[strings.340a] 

[strings.240a] 

[strings.300a] 

[strings.080a] 

[strings.180a] 

[strings.280a] 

[strings.0c0a] 

[strings.380a] 

[strings.200a] 

[strings.041d] 

[strings.041e] 

[strings.041f]
