+++ /dev/null
-#\r
-# InstDrv Example, (c) 2003 Jan Kiszka (Jan Kiszka@web.de)\r
-#\r
-\r
-Name "InstDrv.dll test"\r
-\r
-OutFile "InstDrv-Test.exe"\r
-\r
-ShowInstDetails show\r
-\r
-ComponentText "InstDrv Plugin Usage Example"\r
-\r
-Page components\r
-Page instfiles\r
-\r
-Section "Install a Driver" InstDriver\r
- InstDrv::InitDriverSetup /NOUNLOAD "{4d36e978-e325-11ce-bfc1-08002be10318}" "IrCOMM2k"\r
- Pop $0\r
- DetailPrint "InitDriverSetup: $0"\r
-\r
- InstDrv::DeleteOemInfFiles /NOUNLOAD\r
- Pop $0\r
- DetailPrint "DeleteOemInfFiles: $0"\r
- StrCmp $0 "00000000" PrintInfNames ContInst1\r
-\r
- PrintInfNames:\r
- Pop $0\r
- DetailPrint "Deleted $0"\r
- Pop $0\r
- DetailPrint "Deleted $0"\r
-\r
- ContInst1:\r
- InstDrv::CreateDevice /NOUNLOAD\r
- Pop $0\r
- DetailPrint "CreateDevice: $0"\r
-\r
- SetOutPath $TEMP\r
- File "ircomm2k.inf"\r
- File "ircomm2k.sys"\r
-\r
- InstDrv::InstallDriver /NOUNLOAD "$TEMP\ircomm2k.inf"\r
- Pop $0\r
- DetailPrint "InstallDriver: $0"\r
- StrCmp $0 "00000000" PrintReboot ContInst2\r
-\r
- PrintReboot:\r
- Pop $0\r
- DetailPrint "Reboot: $0"\r
-\r
- ContInst2:\r
- InstDrv::CountDevices\r
- Pop $0\r
- DetailPrint "CountDevices: $0"\r
-SectionEnd\r
-\r
-Section "Uninstall the driver again" UninstDriver\r
- InstDrv::InitDriverSetup /NOUNLOAD "{4d36e978-e325-11ce-bfc1-08002be10318}" "IrCOMM2k"\r
- Pop $0\r
- DetailPrint "InitDriverSetup: $0"\r
-\r
- InstDrv::DeleteOemInfFiles /NOUNLOAD\r
- Pop $0\r
- DetailPrint "DeleteOemInfFiles: $0"\r
- StrCmp $0 "00000000" PrintInfNames ContUninst1\r
-\r
- PrintInfNames:\r
- Pop $0\r
- DetailPrint "Deleted $0"\r
- Pop $0\r
- DetailPrint "Deleted $0"\r
-\r
- ContUninst1:\r
- InstDrv::RemoveAllDevices\r
- Pop $0\r
- DetailPrint "RemoveAllDevices: $0"\r
- StrCmp $0 "00000000" PrintReboot ContUninst2\r
-\r
- PrintReboot:\r
- Pop $0\r
- DetailPrint "Reboot: $0"\r
-\r
- ContUninst2:\r
- Delete "$SYSDIR\system32\ircomm2k.sys"\r
-SectionEnd
\ No newline at end of file