2 # InstDrv Example, (c) 2003 Jan Kiszka (Jan Kiszka@web.de)
\r
5 Name "InstDrv.dll test"
\r
7 OutFile "InstDrv-Test.exe"
\r
11 ComponentText "InstDrv Plugin Usage Example"
\r
16 Section "Install a Driver" InstDriver
\r
17 InstDrv::InitDriverSetup /NOUNLOAD "{4d36e978-e325-11ce-bfc1-08002be10318}" "IrCOMM2k"
\r
19 DetailPrint "InitDriverSetup: $0"
\r
21 InstDrv::DeleteOemInfFiles /NOUNLOAD
\r
23 DetailPrint "DeleteOemInfFiles: $0"
\r
24 StrCmp $0 "00000000" PrintInfNames ContInst1
\r
28 DetailPrint "Deleted $0"
\r
30 DetailPrint "Deleted $0"
\r
33 InstDrv::CreateDevice /NOUNLOAD
\r
35 DetailPrint "CreateDevice: $0"
\r
41 InstDrv::InstallDriver /NOUNLOAD "$TEMP\ircomm2k.inf"
\r
43 DetailPrint "InstallDriver: $0"
\r
44 StrCmp $0 "00000000" PrintReboot ContInst2
\r
48 DetailPrint "Reboot: $0"
\r
51 InstDrv::CountDevices
\r
53 DetailPrint "CountDevices: $0"
\r
56 Section "Uninstall the driver again" UninstDriver
\r
57 InstDrv::InitDriverSetup /NOUNLOAD "{4d36e978-e325-11ce-bfc1-08002be10318}" "IrCOMM2k"
\r
59 DetailPrint "InitDriverSetup: $0"
\r
61 InstDrv::DeleteOemInfFiles /NOUNLOAD
\r
63 DetailPrint "DeleteOemInfFiles: $0"
\r
64 StrCmp $0 "00000000" PrintInfNames ContUninst1
\r
68 DetailPrint "Deleted $0"
\r
70 DetailPrint "Deleted $0"
\r
73 InstDrv::RemoveAllDevices
\r
75 DetailPrint "RemoveAllDevices: $0"
\r
76 StrCmp $0 "00000000" PrintReboot ContUninst2
\r
80 DetailPrint "Reboot: $0"
\r
83 Delete "$SYSDIR\system32\ircomm2k.sys"
\r