; Master HPI file

[version]
signature=hpi
version=3.2

[includes]
count=3
1=inc.hpi
2=install.hpi
3=driver.hpi


[components]
count=2
1=penguin_3.5
2=drake_830C

; *************************
; *                       *
; * AddPrinter            *
; *                       *
' *************************

[addprinter]
1=log,         logheader
2=set,         ap_macro, setmacro10
3=copyfile,    icm
4=hpi,         addpr
5=set,         license_check
6=ui,          $if,^$license_accepted^$,!=,1,ap_license,$
7=addreg,      installstate, $if,^$license_accepted^$,!=,1,aplicense,$
8=log,         logfooter
count=8

[ap_license]
sequence=11

[setmacro10]
1=10ap,$10$
2=10,$11$

[ap_macro]
1=ap,true

[icm]
1=hpdesk.icm,$11$,,hpdesk.icm,$23$
2=hpdesk.icm,$11$,,hpdesk.icm,$22$

[addpr]
1=driver.hpi,$if,^$os^$,==,winnt4,addprinter:main:ms13:nt4:simple,addprinter:main:ms13:9x:simple$,false

[aplicense]
1=, $softwarepath$, $softwaresubpath$\Install, License, $if,^$license^$,==,accept,1,0$


[license_check]
1=license_accepted_lookup,$reglookup, HKLM, ^$softwarepath^$\^$softwaresubpath^$\Install, License$
2=license_accepted,$if,^$lang^$,!=,nec,^$license_accepted_lookup^$,1$
count=2

; *************************
; *                       *
; * Install               *
; *                       *
' *************************

[install]
1=hpi, preboothpi
count=1 

[preboothpi]
1=master.hpi,preboot
count=1

; *************************
; *                       *
; * PreBoot               *
; *                       *
' *************************

[preboot]
1=log,             logheader
2=background,      background_on
3=set,             set_section, setup_preboot_macros
4=ui,              $if, ^$os^$, ==, winnt4, ntadminui, ,$
5=setupcomponents, preboot_component_setup
6=ui,              installui
7=statuson,        preboot_statuson
8=addreg,          setupinstall
9=hpi,             $if, ^$os^$, ==, winnt4, confighpi, ,$
;10=hpi, $if,^$usb^$,==,true,usbhpi,,$
10=installfiles,    preboot:installfiles
11=component,penguin_3.5,drake_830C 
12=addreg,         installstate
13=setupcomponents,postbootbundle_component_setup
14=statusoff,
15=log,            logfooter
16=set,            checkfordriverreboot
17=ui,             $if,^$dontdodriverreboot^$,==,true,,restartui,$
18=UpdateIni,      $if,^$restart^$,!=,true,cancel_postboot,$
19=hpi,            $if,^$restart^$,!=,true,preboot_gotopostboot,$
20=restart,        $if,^$restart^$,==,true,restart,$
21=background,     background_off  
count=21
RequiredSpace=6726780
ComponentCount=2

[confighpi]
1=driver.hpi, preboot:config_for_install, gosub
count=1

[checkfordriverreboot]
1=dontdodriverreboot, $if,^$lang^$,!=,nec,^$usb^$,true,$

[ntadminui]
sequence=4

[set_section]
1=cancel_warning,true

[setup_preboot_macros]
1=showereg,false
2=bundlemode,multi
3=ap, false
4=license_flag,$if,^$lang^$,!=,nec,true,false,$
5=restart,false
6=reboot_batch, true
7=10ap,$10$
8=id_web_installed, false


[preboot_component_setup]
file=$0$\master.hpi
section=preboot
mode=multi

[postbootbundle_component_setup]
file=$0$\master.hpi
section=postbootbundle
mode=multi

[installui]
sequence=1

[preboot_statuson]
CancelButton=1

[cancel_postboot]
1=hpfsched.ini,$10$,,Postboot_$product$,Enable,FALSE

[preboot_gotopostboot]
1=master.hpi,postboot,goto
                     
[preboot:installfiles]
Count=74
1=hpfinst.dlz,1,31,hpfinst.dll,$rootdir$,normal,128128,196610,0,685062949,1,0
2=hpfiui.exz,1,31,hpfiui.exe,$rootdir$,normal,196704,196610,0,974949465,1,0
3=license.txt,1,31,license.txt,$rootdir$,date,2138,196610,0,3640363537,0,0
4=license.txt,1,31,license.txt,$11$,date,2138,196610,0,3640363537,0,0
5=master.hpi,1,31,master.hpi,$rootdir$,date,12905,196610,0,0,0,0
6=master.hpi,1,31,master.hpi,$11$,date,12905,196610,0,0,0,0
7=inc.hpi,1,31,inc.hpi,$rootdir$,normal,26056,196610,0,0,0,0
8=inc.hpi,1,31,inc.hpi,$11$,normal,26056,196610,0,0,0,0
9=install.hpi,1,31,install.hpi,$rootdir$,normal,1423,196610,0,0,0,0
10=driver.hpi,1,31,driver.hpi,$rootdir$,date,15486,196610,0,0,0,0
11=driver.hpi,1,31,driver.hpi,$11$,date,15486,196610,0,0,0,0
12=congrat.bmz,1,,congrat.bmp,$rootdir$,normal,26196,196610,0,2760482341,1,0
13=inline.bmz,1,,inline.bmp,$rootdir$,normal,26196,196610,0,4115912131,1,0
14=intro.bmz,1,,intro.bmp,$rootdir$,normal,26196,196610,0,2156047663,1,0
15=restart.bmz,1,,restart.bmp,$rootdir$,normal,26838,196610,0,466997240,1,0
16=status.bmz,1,,status.bmp,$rootdir$,normal,26196,196610,0,776176529,1,0
17=unstall.bmz,1,,unstall.bmp,$rootdir$,normal,5446,196610,0,110378336,1,0
18=apps.hpi,1,31,apps.hpi,$rootdir$,date,32416,196610,0,0,0,0
19=ereg.hpi,1,31,ereg.hpi,$rootdir$,date,986,196610,0,0,0,0
20=hpinfo.daz,1,31,hpinfo.dat,$rootdir$,date,606,196610,0,673503840,1,0
21=hpfxicm.exz,1,31,hpfxicm.exe,$rootdir$,date,3424,196610,0,521614923,1,0
22=license.bmz,1,,license.bmp,$rootdir$,normal,26196,196610,0,2174071094,1,0
23=hpfsched.exz,1,,hpfsched.exe,$10$,normal,17760,131007093,66781184,2133699396,1,0
24=HPFhft23.dlz,1,,HPFhft23.dll,$11$,version,806848,131007093,66781184,2314078124,1,0
25=HPFc9523.dlz,1,,HPFc9523.dll,$11$,version,105984,131007093,66781184,602960823,1,1
26=HPFp9823.dlz,1,,HPFp9823.dll,$11$,version,33568,131007093,66781184,3185535864,1,1
27=HPF83r23.hlz,1,,HPF83r23.hlp,$10$,date,44242,131007093,66781184,3075475195,1,1
28=HPFlnk23.inz,1,,HPFlnk23.ini,$11$,date,4634,131007093,66781184,3298008054,1,1
29=HPFecp23.dlz,1,,HPFecp23.dll,$11$,version,33696,131007093,66781184,1006426294,1,1
30=HPFc1623.dlz,1,,HPFc1623.dll,$11$,version,67136,131007093,66781184,1720878563,1,1
31=HPF24r23.dlz,1,,HPF24r23.dll,$11$,version,49184,131007093,66781184,3837214730,1,1
32=HPFhrl23.dlz,1,,HPFhrl23.dll,$11$,version,4864,131007093,66781184,684378022,1,1
33=HPF83023.hpz,1,,HPF83023.hpc,$11$,date,13420,131007093,66781184,3046615249,1,0
34=HPFitk23.dlz,1,,HPFitk23.dll,$11$,version,6976,131007093,66781184,2089282626,1,1
35=HPFdjc23.drz,1,,HPFdjc23.drv,$11$,version,233344,131007093,66781184,502527190,1,1
36=HPFcui23.dlz,1,,HPFcui23.dll,$11$,version,102304,131007093,66781184,2629126396,1,1
37=HPFbkg23.exz,1,,HPFbkg23.exe,$11$,version,11744,131007093,66781184,1484675898,1,1
38=HPFlmn23.inz,1,,HPFlmn23.ini,$11$,date,31,131007093,66781184,148076646,1,1
39=HPFqpr23.dlz,1,,HPFqpr23.dll,$11$,version,10784,131007093,66781184,4068529047,1,0
40=HPFrss23.dlz,1,,HPFrss23.dll,$11$,version,2048,131007093,66781184,1753979829,1,1
41=HPFimg23.dlz,2,,HPFimg23.dll,$11$,version,851968,131007093,66781184,1143188774,1,1
42=HPFcps23.dlz,2,,HPFcps23.dll,$11$,version,158752,131007093,66781184,1996290474,1,1
43=HPFcfg23.exz,2,,HPFcfg23.exe,$10$,version,39520,131007093,66781184,3397530356,1,1
44=HPFlmn23.dlz,2,,HPFlmn23.dll,$11$,version,25600,131007093,66781184,1017809228,1,1
45=HPFlnk23.exz,2,,HPFlnk23.exe,$11$,version,45408,131007093,66781184,1408625424,1,1
46=HPFmon23.dlz,2,,HPFmon23.dll,$11$,version,16448,131007093,66781184,1040866781,1,1
47=HPFrsa23.dlz,2,,HPFrsa23.dll,$11$,version,117760,131007093,66781184,3096661952,1,1
48=HPFrdd23.dlz,2,,HPFrdd23.dll,$11$,version,5856,131007093,66781184,70726861,1,1
49=HPFwin23.dlz,2,,HPFwin23.dll,$11$,version,251424,131007093,66781184,444972073,1,1
50=HPF83d23.hlz,2,,HPF83d23.hlp,$10$,date,63413,131007093,66781184,321993356,1,1
51=HPFcfg23.hlz,2,,HPFcfg23.hlp,$10$,date,17731,131007093,66781184,3120308563,1,1
52=wpsljvpd.38z,2,,wpsljvpd.386,$11$,version,14085,131007093,66781184,326340594,1,0
53=HPF83t23.hlz,2,,HPF83t23.hlp,$10$,date,360534,131007093,66781184,295550748,1,1
54=HPFtrl23.dlz,2,,HPFtrl23.dll,$11$,version,1150912,131007093,66781184,740912484,1,0
55=HPFtbx23.exz,2,,HPFtbx23.exe,$11$,version,178144,131007093,66781184,4251465150,1,1
56=HPFtbx23.exz,2,,HPFtbx23.exe,$10$,version,178144,131007093,66781184,4251465150,1,1
57=HPFrsu23.dlz,2,,HPFrsu23.dll,$11$,version,12544,131007093,66781184,2324764649,1,1
58=HPFrst23.dlz,2,,HPFrst23.dll,$11$,version,24064,131007093,66781184,1924298142,1,1
59=HPFhid23.exz,2,,HPFhid23.exe,$11$,version,8480,131007093,66781184,3988157391,1,1
60=HPFcbl23.dlz,2,,HPFcbl23.dll,$11$,version,13472,131007093,66781184,3413668714,1,1
61=HPFdos23.dlz,2,,HPFdos23.dll,$11$,version,6336,131007093,66781184,1806200135,1,1
62=HPFsui23.dlz,3,,HPFsui23.dll,$11$,version,122880,131007093,66781184,1740535049,1,1
63=commctrl.dlz,3,,commctrl.dll,$11$,version,47936,196619,300,1337955208,1,0
64=HPFpcl23.dlz,3,,HPFpcl23.dll,$11$,version,50080,131007093,66781184,613199701,1,1
65=HPFpml23.dlz,3,,HPFpml23.dll,$11$,version,13184,131007093,66781184,1376913124,1,1
66=HPFmlc23.dlz,3,,HPFmlc23.dll,$11$,version,30176,131007093,66781184,2179090174,1,1
67=HPFnet23.dlz,3,,HPFnet23.dll,$11$,version,14336,131007093,66781184,1579867106,1,1
68=HPFmrl23.dlz,3,,HPFmrl23.dll,$11$,version,208576,131007093,66781184,3756949139,1,0
69=HPFsrl23.dlz,3,,HPFsrl23.dll,$11$,version,230368,131007093,66781184,407958744,1,0
70=HPFqps23.exz,3,,HPFqps23.exe,$11$,version,83744,131007093,66781184,1515044486,1,0
71=HPFtst23.dlz,3,,HPFtst23.dll,$11$,version,23296,131007093,66781184,4213014819,1,0
72=HPFprl23.dlz,3,,HPFprl23.dll,$11$,version,153984,131007093,66781184,1315060463,1,0
73=HPFnhd23.exz,3,,HPFnhd23.exe,$11$,version,8224,131007093,66781184,2499948307,1,1
74=HPFspl23.hlz,3,,HPFspl23.hlp,$10$,date,10713,131007093,66781184,2895479250,1,0

; *************************
; *                       *
; * PostBoot              *
; *                       *
' *************************

[postboot]
1=background,  background_on
2=set,         postboot_macros,setup_postboot_macros
3=ui,          congratsui
4=hpi,         $if, ^$showereg^$,==,true,postboot_gotodoereg,,$
5=hpi,         $if, ^$showbundledialog^$,==,true,hpi_postbootbundle,,$
6=set,         set_id_web_macros
7=ui,          $if,^$id_web_installed^$,==,true,id_web_ui,$
8=background,  background_off  
9=hpi,        run_alt_shell_goto
10=DelFile,     delinstallerfromtemp
count=10

[delinstallerfromtemp]
1=hpistr.hpi,$2$,,delayed

[postboot_macros]
1=showereg, $if, ^$mode^$,==,cdrom,^$showereg^$,false$
2=showbundledialog, $if, ^$mode^$,==,cdrom,^$showbundledialog^$,false$

[postboot_gotodoereg]
1=master.hpi,doereg,goto

[setup_postboot_macros]
1=isnotnt, $if, ^$os^$, !=, winnt4, true, false, $
2=commtesta, $if, ^$pnum^$, ==, 13, ^$isnotnt^$, true, $
3=commtestb, $if, ^$pnum^$, ==, 14, ^$isnotnt^$, ^$commtesta^$, $
4=commtestc, $if, ^$pnum^$, ==, 20, false, ^$commtestb^$, $
5=commtest, $if, ^$usb^$, ==, true, false, ^$commtestc^$, $
6=bundlemode, multi
7=cancel_warning,false
8=bundle_reboot_required,false
9=reboot_batch, false


[congratsui]
sequence=5

[bundledui]
sequence=6

[postboot_statuson]
CancelButton=1

; *************************
; *                       *
; * Bundled               *
; *                       *
' *************************

[bundled]
1=background,     background_on
2=ui,             insert_cd_ui
3=set,            set_id_ad_macros
4=ui,             $if, ^$displayinstantdeliveryad^$, ==, true, instant_delivery_ad, $ 
5=set,            setup_bundled_macros
6=setupcomponents,bundled_component_setup
7=set,            check_ereg_registered_flags_$bits$
8=ui,             bundledui
9=statuson,       bundled_statuson
10=component
11=statusoff,
12=hpi,           bundle_check_reboot
count=12

[setup_bundled_macros]
1=bundlemode,single
2=cancel_warning,false
3=bundle_reboot_required,false
4=reboot_batch, false

[bundled_component_setup]
file=$0$\master.hpi
section=bundled
mode=single

[insert_cd_ui]
sequence=10

; *************************
; *                       *
; * Uninstall             *
; *                       *
' *************************

[uninstall]
1=log,         logheader
2=background,  background_on
3=set,         setup_uninstall_macros
4=ui,          $if,^$os^$,==,winnt4,ntadminui,,$
5=ui,          uninstallui
6=statuson,    uninstall_statuson
7=AddReg,      uninstallstate
8=component,penguin_3.5,drake_830C
9=statusoff,
10=log,         logfooter
11=ui,         restartui
12=restart,    $if,^$restart^$,==,true,restart,$
13=background, background_off
count=13

[setup_uninstall_macros]
1=reboot_batch, true

[background_on]
control=1
rgbtop=0,13,207
rgbbottom=0,204,202

[background_off]
control=0

[uninstallui]
sequence=2

[restartui]
sequence=3

[bundled_statuson]
CancelButton=1

[uninstall_statuson]
CancelButton=0

[restart]

[logheader]
1=date = $date$
2=time = $time$
3=o/s = $os$ $os_major$.$os_minor$ (build $os_build$)
4=cpu = $cpu$
5=RAM = $ram$ bytes 
6=User = $username$
count=6

[logfooter]
1=Time = $time$
count=1

[setupinstall]
1=, $softwarepath$, $softwaresubpath$\Install, SetupInstall,  1

[installstate]
1=, $softwarepath$, $softwaresubpath$\Install, InstallState,  1

[uninstallstate]
1=, $softwarepath$, $softwaresubpath$\Install, InstallState,  0


; *************************
; *                       *
; * InstEreg              *
; *                       *
' *************************


[instereg]
1=log,         logheader
2=component
3=run,         runereg
4=log,         logfooter
count=4



; *************************
; *                       *
; * DoEReg                *
; *                       *
' *************************

[doereg]
1=set,       setup_doereg_macros, check_ereg_registered_flags_$bits$ 
2=addreg,    $if,^$bits^$,==,32,clear_ereg_reg_hooks,,$ 
3=updateini, $if,^$bits^$,==,16,clear_ereg_ini_hooks,,$ 
4=run,       $if,^$ereg_registered^$,!=,1,runereg,$
5=hpi,       $if,^$ereg_registered^$,==,1,hpi_postbootbundle,$ 
6=waitreg,   $if,^$bits^$,==,32,wait_ereg_reg,,$ 
7=waitini,   $if,^$bits^$,==,16,wait_ereg_ini,,$ 
8=hpi,       hpi_postbootbundle 
count=8

[setup_doereg_macros]
1=reboot_batch, false
2=useeregproducta, $if, ^$product^$, ==, 610C, false, true, $
3=useeregproductb, $if, ^$product^$, ==, 810C, false, ^$useeregproducta^$, $
4=useeregproductc, $if, ^$product^$, ==, 815C, false, ^$useeregproductb^$, $
5=useeregproduct,  $if, ^$product^$, ==, 830C, false, ^$useeregproductc^$, $
6=eregproduct, $if, ^$useeregproduct^$, ==, true, ^$product^$, none,$

[clear_ereg_reg_hooks]
1=HKLM, $softwarepath$, Hewlett-Packard\$divid$\EReg\1.0\$eregproduct$\EregFinished, ,0,

[clear_ereg_ini_hooks]
1=hpfinst.ini,$10$,,Ereg^,1.0^,$eregproduct$,EregFinished, 0, DWORD

[runereg]
1=$eregroot$\ereg\iqplayer.exe

[wait_ereg_reg]
1=HKLM, $softwarepath$\Hewlett-Packard\$divid$\EReg\1.0\$eregproduct$\EregFinished,,1,value

[wait_ereg_ini]
1=$10$\hpfinst.ini,Ereg^,1.0^,$eregproduct$,EregFinished,1,value

[check_ereg_registered_flags_16]
1=ereg_16_registered,$inilookup, Ereg^^,1.0^^,^$product^$,Registered,hpfinst.ini,^$10^$,,$
2=dogz_enu,$if,^$ereg_16_registered^$,==,1,true,false$
3=dogz_fra,$dogz_enu$
4=dogz_enu,$if,^$lang^$,==,enu,^$dogz_enu^$,false$
5=dogz_fra,$if,^$lang^$,==,fra,^$dogz_fra^$,false$
6=ereg_registered,$ereg_16_registered$
count=6

[check_ereg_registered_flags_32]
1=ereg_32_registered,$reglookup, HKLM, SOFTWARE\Hewlett-Packard\^$divid^$\EReg\1.0\^$eregproduct^$\Registered,,$
2=dogz_enu,$if,^$ereg_32_registered^$,==,1,true,false$
3=dogz_fra,$dogz_enu$
4=dogz_enu,$if,^$lang^$,==,enu,^$dogz_enu^$,false$
5=dogz_fra,$if,^$lang^$,==,fra,^$dogz_fra^$,false$
6=ereg_registered,$ereg_32_registered$
count=6


; *************************
; *                       *
; * PostBootBundle        *
; *                       *
' *************************
[hpi_postbootbundle]
1=master.hpi,postbootbundle,goto

[postbootbundle]
1=set,        setup_postboot_macros
2=ui,         insert_cd_ui
3=set,        set_id_ad_macros
4=ui,         $if, ^$displayinstantdeliveryad^$, ==, true, instant_delivery_ad, $ 
5=set,        check_ereg_registered_flags_$bits$
6=ui,         bundledui
7=component
8=set,        set_id_web_macros
9=ui,         $if,^$id_web_installed^$,==,true,id_web_ui,$
10=hpi,       bundle_check_reboot
count=10


; ********************************
; *                              *
; * Instant Delivery Web Dialog  *
; *                              *
' ********************************

[set_id_web_macros]
1=action_button,$0$\instdlv.url
2=large_logo,instdlv.bmp
3=component_name,HP Instant Delivery

[id_web_ui]
sequence=12


; ******************************************
; *                                        *
; * Instant Delivery Advertisement Dialog  *
; *                                        *
' ******************************************
[set_id_ad_macros]
1=action_button,$0$\instdlv.url
2=large_logo,$4$\$lang$\id\instdlv.bmp
3=component_name,HP Instant Delivery

[instant_delivery_ad]
sequence=12




; *************************
; *                       *
; * Bundled Check Reboot  *
; *                       *
' *************************

[bundle_check_reboot]
1=master.hpi,bundlereboot,goto

[bundlereboot]
1=set,            setup_bundlereboot_macros
2=ui,             $if,^$bundle_reboot_required^$,==,true,restartui,$
3=restart,        $if,^$bundle_reboot_required^$,==,true,restart,$
4=set,            setdogz
5=background,     background_off  
6=hpi,            $if,^$dogz_enu^$,==,true,goto_rundogz,$
7=hpi,            $if,^$dogz_fra^$,==,true,goto_rundogz,$
8=hpi,            run_alt_shell_goto
count=8


[setup_bundlereboot_macros]
1=restart,false
2=reboot_batch, false

[setdogz]
1=dogz_enu,$if,^$restart^$,==,true,false,^$dogz_enu^$$

[goto_rundogz]
1=apps.hpi,rundogz,goto


; *************************
; *                       *
; * Run AltShell          *
; *                       *
' *************************

[run_alt_shell_goto]
1=master.hpi,run_alt_shell,goto

[run_alt_shell]
1=ui,             $if,^$altshell^$,==,true, insert_cd_ui,,$
2=run,            $if,^$altshell^$,==,true, exec_altshell,,$
count=2

[exec_altshell]
1=$4$\shell\printess.exe


; *************************
; *                       *
; * MakeDisk              *
; *                       *
' *************************

[makedisk]
1=background,  background_on
2=set,         setup_makedisk_macros
3=ui,          insert_cd_ui, makedisk1_ui
4=statuson,    statuson
5=makedisk,    makedisk
6=statusoff,   statusoff
7=ui,          makedisk2_ui
8=background,  background_off  
count=8

[setup_makedisk_macros]
1=reboot_batch, false

[makedisk1_ui]
sequence=7

[makedisk]

[makedisk2_ui]
sequence=8

; *************************
; *                       *
; * HPInfo                *
; *                       *
' *************************

[hpinfo]
1=ui,  hpinfoui
2=set, setup_hpinfo_macros
count=2

[hpinfoui]
sequence=9

[setup_hpinfo_macros]
1=reboot_batch, false




[penguin_3.5]
preboot=install.hpi, install:main, Penguin Installer, false, 657881, $26$\$product$, $24$\$instroot$, , , 1, $4$\chs\nt4inf, , diskset
uninstall=install.hpi, uninstall:main, Penguin Installer, false, 657881, $26$\$product$, $24$\$instroot$, , , 1
[drake_830C]
preboot=driver.hpi, install:main:ms13:pcl:31, Drake Driver for the 830C, , 6068899, $26$\$product$, $24$\$instroot$, , , 1, $4$\chs\nt4inf, , diskset
uninstall=driver.hpi, uninstall:main:ms13:31, Drake Driver for the 830C, , 6068899, $26$\$product$, $24$\$instroot$, , , 1
