done
This commit is contained in:
parent
bf2e657c54
commit
451a1631ea
@ -12,7 +12,11 @@ DefVar $ProductId$
|
|||||||
DefVar $MinimumSpace$
|
DefVar $MinimumSpace$
|
||||||
DefVar $InstallDir$
|
DefVar $InstallDir$
|
||||||
DefVar $ExitCode$
|
DefVar $ExitCode$
|
||||||
|
DefVar $INST_SystemType$
|
||||||
|
DefVar $INST_architecture$
|
||||||
|
|
||||||
|
Set $INST_SystemType$ = GetSystemType
|
||||||
|
Set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||||
|
|
||||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||||
@ -52,21 +56,50 @@ else
|
|||||||
|
|
||||||
Message "Installing " + $ProductId$ + " ..."
|
Message "Installing " + $ProductId$ + " ..."
|
||||||
|
|
||||||
comment "Copy files"
|
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||||
Files_install /32Bit
|
Files_install_64
|
||||||
|
Winbatch_install_64
|
||||||
|
Sub_check_exitcode
|
||||||
|
Files_Delete_64
|
||||||
|
endif
|
||||||
|
|
||||||
comment "Patch Registry"
|
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||||||
Registry_install /32Bit
|
Files_install_32
|
||||||
|
Winbatch_install_32
|
||||||
|
Sub_check_exitcode
|
||||||
|
Files_Delete_32
|
||||||
|
endif
|
||||||
|
|
||||||
DosInAnIcon_Create
|
; comment "Copy files"
|
||||||
|
; Files_install /32Bit
|
||||||
|
|
||||||
comment "Reboot"
|
; comment "Patch Registry"
|
||||||
ExitWindows /Reboot
|
; Registry_install /32Bit
|
||||||
|
|
||||||
|
; DosInAnIcon_Create
|
||||||
|
|
||||||
|
; comment "Reboot"
|
||||||
|
; ExitWindows /Reboot
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
[Files_install]
|
[Files_install_32]
|
||||||
copy -s "$Drv_Dir$32\*.*" "$InstallDir$\opsi_projects_drivers"
|
copy -s "$Drv_Dir32$*.*" "$LogDir$\X86"
|
||||||
|
|
||||||
|
[Files_install_64]
|
||||||
|
copy -s "$Drv_Dir64$*.*" "$LogDir$\X64"
|
||||||
|
|
||||||
|
[Winbatch_install_32]
|
||||||
|
$LogDir$\X86\DPInst.exe /S
|
||||||
|
|
||||||
|
[Winbatch_install_64]
|
||||||
|
$LogDir$\X64\DPInst.exe /S
|
||||||
|
|
||||||
|
[Files_Delete_32]
|
||||||
|
delete -sf $LogDir$\X86
|
||||||
|
|
||||||
|
[Files_Delete_64]
|
||||||
|
delete -sf $LogDir$\X64
|
||||||
|
|
||||||
[Registry_install]
|
[Registry_install]
|
||||||
; Example of setting some values of an registry key:
|
; Example of setting some values of an registry key:
|
||||||
@ -78,3 +111,14 @@ set "DevicePath" = "%SystemRoot%\inf;$InstallDir$\opsi_projects_drivers"
|
|||||||
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpom10a.inf
|
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpom10a.inf
|
||||||
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brimm10a.inf
|
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brimm10a.inf
|
||||||
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\BRPRM10A.INF
|
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\BRPRM10A.INF
|
||||||
|
|
||||||
|
[Sub_check_exitcode]
|
||||||
|
comment "Test for installation success via exit code"
|
||||||
|
set $ExitCode$ = getLastExitCode
|
||||||
|
if ($ExitCode$ = "0") or ($ExitCode$ = "768")
|
||||||
|
comment "Looks good: setup program gives exitcode zero"
|
||||||
|
else
|
||||||
|
comment "Setup program gives a exitcode unequal zero: "+ $ExitCode$
|
||||||
|
isFatalError
|
||||||
|
endif
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
1182219249c94ccae001dfa6e93b2c92b07234b2 /home/dtrinks/.opsi-dist-cache/brother.com/brother7360/1//brother7360.png
|
1182219249c94ccae001dfa6e93b2c92b07234b2 /home/dtrinks/.opsi-dist-cache/brother.com/brother.mfc7360/1//brother7360.png
|
||||||
|
@ -15,17 +15,21 @@ TYPE="public"
|
|||||||
DL_FILE[0]="brother7360.png"
|
DL_FILE[0]="brother7360.png"
|
||||||
DL_SOURCE[0]="http://www.brother.com/library/fragments/brother_common_header_com/images/head_brotherlogo.gif"
|
DL_SOURCE[0]="http://www.brother.com/library/fragments/brother_common_header_com/images/head_brotherlogo.gif"
|
||||||
|
|
||||||
DL_FILE[1]="brother7360.exe"
|
DL_FILE[1]="brother7360_32.zip"
|
||||||
DL_SOURCE[1]="http://welcome.solutions.brother.com/BSC/public/files/dlf/dlf004578/Y10E_C1-gdi-32-B1.EXE"
|
DL_SOURCE[1]="http://opsi-builder.dtnet.de/dist/brother.com/brother.mfc7360/1/brother7360_x86.zip"
|
||||||
DL_ARCH[1]="X86"
|
DL_ARCH[1]="X86"
|
||||||
#DL_WINST_NAME[1]=Install32Exe
|
DL_EXTRACT_FORMAT[1]="unzip"
|
||||||
|
|
||||||
DL_DOWNLOADER[1]="wget"
|
DL_FILE[2]="brother7360_64.zip"
|
||||||
DL_EXTRACT_FORMAT[1]="7zip"
|
DL_SOURCE[2]="http://opsi-builder.dtnet.de/dist/brother.com/brother.mfc7360/1/brother7360_x64.zip"
|
||||||
|
DL_ARCH[2]="X64"
|
||||||
|
DL_EXTRACT_FORMAT[2]="unzip"
|
||||||
|
|
||||||
# File array index for the image showing while installing the program
|
# File array index for the image showing while installing the program
|
||||||
ICON_DL_INDEX=0
|
ICON_DL_INDEX=0
|
||||||
|
|
||||||
WINST_NAME[0]="Drv_Dir"
|
WINST_NAME[0]="Drv_Dir32"
|
||||||
WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\"
|
WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\"
|
||||||
|
|
||||||
|
WINST_NAME[1]="Drv_Dir64"
|
||||||
|
WINST_VALUE[1]="@DL_EXTRACT_WINST_PATH[2]@\\"
|
||||||
|
Loading…
Reference in New Issue
Block a user