added 64bit Driver an cleaned

This commit is contained in:
Dennis Trinks
2015-04-23 13:25:26 +02:00
parent 708c4dda38
commit 7b6f93fe0c
4 changed files with 58 additions and 26 deletions

View File

@@ -12,7 +12,11 @@ DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $INST_SystemType$
DefVar $INST_architecture$
Set $INST_SystemType$ = GetSystemType
Set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
@@ -51,32 +55,49 @@ else
endif
Message "Installing " + $ProductId$ + " ..."
comment "Copy files"
Files_install /32Bit
comment "Patch Registry"
Registry_install /32Bit
; comment "Create shortcuts"
; LinkFolder_install
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Files_install_64
Winbatch_install_64
Sub_check_exitcode
Files_Delete_64
endif
DosInAnIcon_Create
comment "Reboot"
ExitWindows /Reboot
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Files_install_32
Winbatch_install_32
Sub_check_exitcode
Files_Delete_32
endif
comment "Reboot"
ExitWindows /Reboot
endif
[Files_install]
copy -s "$Drv_Dir$ger\*.*" "$InstallDir$\opsi_projects_drivers"
[Files_install_32]
copy -s "$Drv_Dir32$ger\*.*" "$LogDir$\X86"
[Registry_install]
; Example of setting some values of an registry key:
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
set "DevicePath" = "%SystemRoot%\inf;$InstallDir$\opsi_projects_drivers"
[Files_install_64]
copy -s "$Drv_Dir64$ger\*.*" "$LogDir$\X64"
[Winbatch_install_32]
$LogDir$\X86\DPInst.exe /S
[DosInAnIcon_Create]
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brim7320.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpo7320.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpr7320.inf
[Winbatch_install_64]
$LogDir$\X64\DPInst.exe /S
[Files_Delete_32]
delete -sf $LogDir$\X86
[Files_Delete_64]
delete -sf $LogDir$\X64
[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