; HP DeskJet HPI File for Windows 3.1

[version]
signature=hpi
version=3.2

[includes]
1=inc.hpi

; install

[install:main:ms12:31]
1=ICM,         asianicm, miscicm
2=InstallFiles
3=DelFile,     $if,^$necsystem^$,==,0100,delpc98ecp,,4$
4=CopyFile,    $if,^$necsystem^$,==,0100,copypc98ecp,,4$
5=ProgMan,     removeitems_04, addgroup, additems_ms12, $if,^$lang^$,!=,nec,addstartupitem_ms12,,3$
6=ProgMan,     closeprogman
7=UpdateIni,   $if,^$japan^$,!=,0100,redir,,4$
8=UpdateIni,   default, clean_old_settings, settings, scheduler, schedulerini_reboot, schedulerini_postboot, djcini_ms12
9=UpdateIni,   $if,^$japan^$,!=,0100,systemini,,4$
10=AddPrinter,  addprinter
11=AppendToFile, $if,^$lang^$,==,tha,thai_gdi,,$
count=11

[install:main:ms13:31]
1=ICM,         asianicm, miscicm
2=InstallFiles
3=DelFile,     $if,^$necsystem^$,==,0100,delpc98ecp,,4$
4=CopyFile,    $if,^$necsystem^$,==,0100,copypc98ecp,,4$
5=ProgMan,     addgroup, additems_ms13
6=ProgMan,     closeprogman
7=UpdateIni,   $if,^$japan^$,!=,0100,redir,,4$
8=UpdateIni,   default, settings, scheduler, schedulerini_reboot, schedulerini_postboot, schedulerini_fbtrk, djcini_ms13, fibertrackini
9=UpdateIni,   $if,^$japan^$,!=,0100,systemini,,4$
10=AddPrinter,  addprinter
11=AppendToFile, $if,^$lang^$,==,tha,thai_gdi,,$
count=11

[install:main:ms13:scp:31]
1=ICM,         asianicm, miscicm
2=InstallFiles
3=DelFile,     $if,^$necsystem^$,==,0100,delpc98ecp,,4$
4=CopyFile,    $if,^$necsystem^$,==,0100,copypc98ecp,,4$
5=ProgMan,     addgroup, additems_ms13, $if,^$lang^$,!=,nec,addstartupitem_ms13,$
6=ProgMan,     closeprogman
7=UpdateIni,   qp
8=UpdateIni,   $if,^$japan^$,!=,0100,redir,,4$
9=UpdateIni,   default, settings, scheduler, schedulerini_reboot, schedulerini_postboot, djcini_ms13, djcini_ms13_sleek
10=UpdateIni,   $if,^$japan^$,!=,0100,systemini,,4$
11=AddPrinter,  addprinter
12=AppendToFile, $if,^$lang^$,==,tha,thai_gdi,,$
count=12

[install:main:ms13:pcl:31]
1=ICM,         asianicm, miscicm
2=InstallFiles
3=DelFile,     $if,^$necsystem^$,==,0100,delpc98ecp,,4$
4=CopyFile,    $if,^$necsystem^$,==,0100,copypc98ecp,,4$
5=ProgMan,     addgroup, additems_ms13
6=ProgMan,     closeprogman
7=UpdateIni,   qp
8=UpdateIni,   default, settings, scheduler, schedulerini_reboot, schedulerini_postboot, schedulerini_fbtrk, djcini_ms13, fibertrackini, $if, ^$lang^$, ==, nec, djcini_ms13_nec, $
9=UpdateIni,   $if,^$japan^$,!=,0100,systemini,,4$
10=AddPrinter,  addprinter
11=AppendToFile, $if,^$lang^$,==,tha,thai_gdi,,$
count=11


[install:main:ms13b:pcl:31]
1=ICM,         asianicm, miscicm
2=InstallFiles
3=DelFile,     $if,^$necsystem^$,==,0100,delpc98ecp,,4$
4=CopyFile,    $if,^$necsystem^$,==,0100,copypc98ecp,,4$
5=ProgMan,     addgroup, additems_ms13
6=ProgMan,     closeprogman
7=UpdateIni,   qp
8=UpdateIni,   default, settings, scheduler, schedulerini_reboot, schedulerini_postboot, schedulerini_fbtrk, djcini_ms13, fibertrackini, hpcini, $if, ^$lang^$, ==, nec, djcini_ms13_nec, $
9=UpdateIni,   $if,^$japan^$,!=,0100,systemini,,4$
10=AddPrinter,  addprinter
11=AppendToFile, $if,^$lang^$,==,tha,thai_gdi,,$
count=11

; install


[asianicm]
1=hpfaicm.exe,

[miscicm]
1=hpfmicm.exe,

[delpc98ecp]
1=$divid$ecp$pnum$,$11$,,

[copypc98ecp]
1=$divid$p98$pnum$.dll,$11$,,$divid$ecp$pnum$.dll,$11$,,

[addgroup]
1=AddGroup, $productname$ $printerversion$,
2=ShowGroup, $productname$ $printerversion$,1

[removeitems_04]
1=ShowGroup, $startup$,1
2=DelItem, $tbxdesc04$

[additems_ms12]
1=AddItem, $divid$tbx$pnum$.exe $pi$, $10$,,$tbxdesc$,,,0
2=AddItem, hpfiui.exe -c -vdivid=$divid$ -vpnum=$pnum$ -vproduct=$product$ -huninstall,  $rootdir$,,$uninstallname$,,,0
3=AddItem, $divid$$hnum$r$pnum$.hlp,    $10$,,$releasenotes$,,,0
 
[additems_ms13]
1=AddItem, $divid$tbx$pnum$.exe -n$pi$, $10$,,$tbxdesc$,,,0
2=AddItem, hpfiui.exe -c -vdivid=$divid$ -vpnum=$pnum$ -vproduct=$product$ -huninstall,  $rootdir$,,$uninstallname$,,,0
3=AddItem, $divid$$hnum$r$pnum$.hlp,    $10$,,$releasenotes$,,,0

[addstartupitem_ms12]
1=ShowGroup, $startup$,1
2=AddItem, $divid$tbx$pnum$.exe $pi$, $10$,,$tbxdesc$,,,1

[addstartupitem_ms13]
1=ShowGroup, $startup$,1
2=AddItem, $divid$tbx$pnum$.exe -n$pi$, $10$,,$tbxdesc$,,,1

[closeprogman]
1=Exit,1

[addprinter]
Name=$printer$
Driver=$printerdriver$
Port=$port$

[qp]
1=win.ini,$10$,,spooler,                                    qp.$sport$,           $divid$QPR$pnum$.DLL,

[redir]
1=win.ini,$10$,,HP_RDMAN^,$divid$DJC$pnum$.DRV,             $sport$.qp,           $divid$QPR$pnum$.DLL,
2=win.ini,$10$,,$divid$RDM$pnum$,                           LPT1.Redirected,      0,
3=win.ini,$10$,,$divid$RDM$pnum$,                           LPT2.Redirected,      0,
4=win.ini,$10$,,$divid$RDM$pnum$,                           LPT3.Redirected,      0,
5=win.ini,$10$,,$divid$RDM$pnum$,                           driver,               $divid$DJC$pnum$,
6=win.ini,$10$,,$divid$RDM$pnum$,                           $sport$.Redirected,   1,
7=win.ini,$10$,,$divid$RDM$pnum$,                           $sport$.Printer,      $printer$,
8=win.ini,$10$,,$divid$RDM$pnum$,                           $sport$.Driver,       $divid$DJC$pnum$,
9=win.ini,$10$,,$divid$RDM$pnum$,                          $sport$.JobTimeout,   15,
10=win.ini,$10$,,$divid$RDM$pnum$,                          $sport$.FlushTimeout, 5,
11=win.ini,$10$,,$divid$RDM$pnum$,                          $sport$.Emulation,    0,
12=win.ini,$10$,,$divid$RDM$pnum$,                          $sport$.Copies,       1,
; Redirector load
13=win.ini,$10$,,Windows,                                   load,                 $divid$RDM$pnum$, delfield
14=win.ini,$10$,,Windows,                                   load,                 $divid$RDM$pnum$, append

[default]
; Set the printer to the default printer in Windows
1=win.ini,$10$,,Windows,                                   device,               $printer$^,$divid$DJC$pnum$^,$port$,
2=win.ini,$10$,,Windows,                                   spooler,              yes
;
[settings]
1=win.ini,$10$,,$divid$ECP$pnum$^,$sport$,                 DefaultInputMode,     4
2=win.ini,$10$,,$divid$ECP$pnum$^,$sport$,                 DefaultOutputMode,    6
3=win.ini,$10$,,$divid$ECP$pnum$^,$sport$,                 RelaxState32Timeout,  1
4=win.ini,$10$,,$divid$ECP$pnum$^,$sport$,                 DigitalFilterEnable,  0
;
5=win.ini,$10$,,$divid$ECP$pnum$^,$printer$^,$sport$,      DefaultInputMode,     4
6=win.ini,$10$,,$divid$ECP$pnum$^,$printer$^,$sport$,      DefaultOutputMode,    6
7=win.ini,$10$,,$divid$ECP$pnum$^,$printer$^,$sport$,      RelaxState32Timeout,  1
8=win.ini,$10$,,$divid$ECP$pnum$^,$printer$^,$sport$,      DigitalFilterEnable,  0

[hpcini]
1=hpc.ini,$10$,,IndexToHPC,$pi$,HPF$bnum$$pnum$.hpc,
2=hpc.ini,$10$,,IndexToHPC,min,$pi$,minvalue
3=hpc.ini,$10$,,IndexToHPC,max,$pi$,maxvalue
4=hpc.ini,$10$,,IndexToModelName,$pi$,$printer$,
5=hpc.ini,$10$,,ModelNameToIndex,$printer$,$pi$,
6=hpc.ini,$10$,,$printer$,HPCFileName,HPF$bnum$$pnum$.hpc,
7=hpfdjc$pnum$.ini,$10$,,$printer$,HPCFileName,HPF$bnum$$pnum$.hpc,

[clean_old_settings]
1=win.ini,$10$,, Windows, Load, $divid$rdm$oldpnum$, delfield

[scheduler]
; Cable Test EXE Run
1=win.ini,$10$,,Windows,                                   run,                  hpfsched, delfield
2=win.ini,$10$,,Windows,                                   run,                  hpfsched, append

[schedulerini_cabletest]
1=hpfsched.ini,$10$,,Schedule,                             Count,                 CableTest_$product$, indexremove
2=hpfsched.ini,$10$,,Schedule,                             Count,                 CableTest_$product$, indexappend
3=hpfsched.ini,$10$,,CableTest_$product$,                  Type,                  Once
4=hpfsched.ini,$10$,,CableTest_$product$,                  Exec,                  $11$\$divid$lnk$pnum$.exe P52 $pi$
5=hpfsched.ini,$10$,,CableTest_$product$,                  Enable,                TRUE

[schedulerini_fbtrk]
1=hpfsched.ini,$10$,,Schedule,                             Count,                 FiberTrack_$product$, indexremove
2=hpfsched.ini,$10$,,Schedule,                             Count,                 FiberTrack_$product$, indexappend
3=hpfsched.ini,$10$,,FiberTrack_$product$,                 Type,                  Scheduled
4=hpfsched.ini,$10$,,FiberTrack_$product$,                 Exec,                  $rootdir$\$divid$fbt$pnum$.exe -p $sport$
5=hpfsched.ini,$10$,,FiberTrack_$product$,                 Next,                  $time_t,7776000$
6=hpfsched.ini,$10$,,FiberTrack_$product$,                 Freq,                  7776000
7=hpfsched.ini,$10$,,FiberTrack_$product$,                 Enable,                TRUE
8=hpfsched.ini,$10$,,FiberTrack_$product$,                 If,                    ini^,$rootdir$\$divid$fbt$pnum$.ini^,time^,showagain

[schedulerini_reboot]
1=hpfsched.ini,$10$,,Schedule,                             Count,                 Reboot_$product$,    indexremove
2=hpfsched.ini,$10$,,Schedule,                             Count,                 Reboot_$product$,    indexappend
3=hpfsched.ini,$10$,,Reboot_$product$,                     Type,                  Once
4=hpfsched.ini,$10$,,Reboot_$product$,                     Exec,                  $comspec$ /c $10$\hpinit.bat
5=hpfsched.ini,$10$,,Reboot_$product$,                     Enable,                TRUE

[schedulerini_postboot]
1=hpfsched.ini,$10$,,Schedule,                             Count,                 Postboot_$product$,    indexremove
2=hpfsched.ini,$10$,,Schedule,                             Count,                 Postboot_$product$,    indexappend
3=hpfsched.ini,$10$,,Postboot_$product$,                   Type,                  Once
4=hpfsched.ini,$10$,,Postboot_$product$,                   Exec,                  $rootdir$\hpfiui.exe -vdivid=$divid$ -vpnum=$pnum$ -vproduct=$product$ -hpostboot -vusb=false
5=hpfsched.ini,$10$,,Postboot_$product$,                   Enable,                TRUE


[fibertrackini]
1=$divid$fbt$pnum$.ini,$rootdir$,,Buttons,                 HelpButtonExec,        $11$\$divid$lnk$pnum$.exe H105 $pi$
2=$divid$fbt$pnum$.ini,$rootdir$,,Time,                    ShowAgain,             1
3=$divid$fbt$pnum$.ini,$rootdir$,,Files,                   PrintFileName,         $rootdir$\$divid$fbt$pnum$.pcl

[systemini]
1=system.ini,$10$,,386Enh,                                  device,               WPSLJVPD.386, exclusive

[djcini_ms12]
1=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            1HPCFileName,         $divid$$bnum$$pnum$.hpc
2=$divid$djc$pnum$.ini,$10$,,Common,                        0HPCFileName,         $divid$$bnum$$pnum$.hpc 
3=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            2CableTest,           0100
4=$divid$djc$pnum$.ini,$10$,,Common,                        0AsianEnv,            $asianenv$
5=$divid$djc$pnum$.ini,$10$,,Common,                        0NECSystem,           $necsystem$
6=$divid$djc$pnum$.ini,$10$,,Common,                        0UseHPSpooler,        $usehpspooler$

[djcini_ms13]
1=$divid$djc$pnum$.ini,$10$,,$printer$,                     HPCFileName,         $divid$$bnum$$pnum$.hpc
2=$divid$djc$pnum$.ini,$10$,,Common,                        HPCFileName,         $divid$$bnum$$pnum$.hpc 
3=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            CableTest,           0100
4=$divid$djc$pnum$.ini,$10$,,Common,                        AsianEnv,            $asianenv$
5=$divid$djc$pnum$.ini,$10$,,Common,                        NECSystem,           $necsystem$
6=$divid$djc$pnum$.ini,$10$,,Common,                        UseHPSpooler,        $usehpspooler$
7=$divid$djc$pnum$.ini,$10$,,$divid$mlc$pnum$,              DoMLCSync,           $mlcsync$

[djcini_ms13_nec]
1=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            CableTest,           0100


[djcini_ms13_sleek]
1=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            PERS0,               $divid$pem$pnum$.exe
2=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            PERS1,               $divid$djc$pnum$.drv
3=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            PERS^$1,             $divid$dos$pnum$.dll^,raw
4=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            PERSDEFAULT,         $divid$pem$pnum$.exe
5=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            XAxis,               00
6=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            YAxis,               ff
7=$divid$djc$pnum$.ini,$10$,,$sport$^,$printer$,            KBidi,               ff

[printman]
1=win.ini,$10$,,windows,                                    load,                 printman, delfield
2=win.ini,$10$,,windows,                                    run,                  printman, delfield

[thai_gdi]
1=$10$\hpinit.bat, $10$\thaigdi.exe

; uninstall

[uninstall:main:ms12:31]                        
1=Set,          setmacro
2=SendMessage,  killredir,killtbx,
3=Progman,      delitems, delgroup, delstartup, closeprogman,
4=DelPrinter,   delprinter,
5=DelFile
6=DelFile,      delmiscini
7=UpdateIni,    cleanwinini, scheduler, schedulerini_reboot
count=7

[uninstall:main:ms13:31]                        
1=Set,          setmacro
2=SendMessage,  killredir,killtbx,
3=Progman,      delitems, delgroup, delstartup, closeprogman,
4=DelPrinter,   delprinter,
5=DelFile,unstall:830C
6=DelFile,      delmiscini
7=UpdateIni,    cleanwinini, scheduler, schedulerini_reboot
count=7

[setmacro]
;1=rootdir, $24$\hp$product$
1=rootdir, $reglookup, HKCR, SOFTWARE\Hewlett-Packard\^$divid^$\^$pnum^$\^$product^$\env, rootdir$

; Disabled for now - need to add a delay?
[killtbx]
1=,$tbxcaption$,close,0,0

; Disabled for now - need to add a delay?
[killredir]
1=,$redircaption$,close,0,0


[delitems]
1=ShowGroup, $productname$ $printerversion$, 1
2=DelItem, $tbxdesc$
3=DelItem, $releasenotes$
4=DelItem, $productname$ $uninstall$

[delgroup]
1=DelGroup, $productname$ $printerversion$

[delstartup]
1=ShowGroup, $startup$
2=DelItem, $tbxdesc$

[closeprogman]
1=Exit,1

[delprinter]
1=$printer$


[cleanwinini]
1=win.ini,$10$,, Windows,                        Load,          $divid$rdm$pnum$, delfield
2=win.ini,$10$,, HP_RDMAN^,$divid$DJC$pnum$.DRV,     ,                          , delsection

3=win.ini,$10$,, Windows,                        Device,                          ,

4=win.ini,$10$,, $divid$RDM$pnum$,                   ,                          , delsection

5=win.ini,$10$,, $divid$ECP$pnum$^,$printer$^,LPT1,  ,                          , delsection
6=win.ini,$10$,, $divid$ECP$pnum$^,$printer$^,LPT2,  ,                          , delsection
7=win.ini,$10$,, $divid$ECP$pnum$^,$printer$^,LPT3,  ,                          , delsection

8=win.ini,$10$,, Windows,                         Run,          hpfsched,     delfield


[delmiscini]
count=5
1=$divid$css$pnum$.ini,$10$, ,normal
2=$divid$djc$pnum$.ini,$10$, ,normal
3=$divid$tbx$pnum$.ini,$10$, ,normal
4=$divid$vlk$pnum$.dat,$10$, ,normal
5=$divid$fbt$pnum$.ini,$rootdir$, ,normal

; shared

[strings,common]
default_rootdir=$26$\$product$
printerdriver=$divid$DJC$pnum$
restart_later_button=FALSE
ecpdll=$divid$ECP$pnum$.dll
ecpdll_pc98=$divid$P98$pnum$.dll
commtest_exec=$11$\$divid$lnk$pnum$.exe P52 $pi$



[unstall:830C]
Count=48
1=HPFhft23.dll, $11$, ,normal,0
2=HPFc9523.dll, $11$, ,normal,1
3=HPFp9823.dll, $11$, ,normal,1
4=HPF83r23.hlp, $10$, ,normal,1
5=HPFlnk23.ini, $11$, ,normal,1
6=HPFecp23.dll, $11$, ,normal,1
7=HPFc1623.dll, $11$, ,normal,1
8=HPF24r23.dll, $11$, ,normal,1
9=HPFhrl23.dll, $11$, ,normal,1
10=HPF83023.hpc, $11$, ,normal,0
11=HPFitk23.dll, $11$, ,normal,1
12=HPFdjc23.drv, $11$, ,normal,1
13=HPFcui23.dll, $11$, ,normal,1
14=HPFbkg23.exe, $11$, ,normal,1
15=HPFlmn23.ini, $11$, ,normal,1
16=HPFrss23.dll, $11$, ,normal,1
17=HPFimg23.dll, $11$, ,normal,1
18=HPFcps23.dll, $11$, ,normal,1
19=HPFcfg23.exe, $10$, ,normal,1
20=HPFlmn23.dll, $11$, ,normal,1
21=HPFlnk23.exe, $11$, ,normal,1
22=HPFmon23.dll, $11$, ,normal,1
23=HPFrsa23.dll, $11$, ,normal,1
24=HPFrdd23.dll, $11$, ,normal,1
25=HPFwin23.dll, $11$, ,normal,1
26=HPF83d23.hlp, $10$, ,normal,1
27=HPFcfg23.hlp, $10$, ,normal,1
28=HPF83t23.hlp, $10$, ,normal,1
29=HPFtrl23.dll, $11$, ,normal,0
30=HPFtbx23.exe, $11$, ,normal,1
31=HPFtbx23.exe, $10$, ,normal,1
32=HPFrsu23.dll, $11$, ,normal,1
33=HPFrst23.dll, $11$, ,normal,1
34=HPFhid23.exe, $11$, ,normal,1
35=HPFcbl23.dll, $11$, ,normal,1
36=HPFdos23.dll, $11$, ,normal,1
37=HPFsui23.dll, $11$, ,normal,1
38=HPFpcl23.dll, $11$, ,normal,1
39=HPFpml23.dll, $11$, ,normal,1
40=HPFmlc23.dll, $11$, ,normal,1
41=HPFnet23.dll, $11$, ,normal,1
42=HPFmrl23.dll, $11$, ,normal,0
43=HPFsrl23.dll, $11$, ,normal,0
44=HPFqps23.exe, $11$, ,normal,0
45=HPFtst23.dll, $11$, ,normal,0
46=HPFprl23.dll, $11$, ,normal,0
47=HPFnhd23.exe, $11$, ,normal,1
48=HPFspl23.hlp, $10$, ,normal,0
