new drivers path

This commit is contained in:
Dennis Trinks 2012-05-08 20:38:33 +02:00
parent 9c9b42aea3
commit 1f16eefad5
2 changed files with 13 additions and 23 deletions

View File

@ -58,32 +58,23 @@ else
comment "Patch Registry" comment "Patch Registry"
Registry_install /32Bit Registry_install /32Bit
; comment "Create shortcuts"
; LinkFolder_install
DosInAnIcon_Create DosInAnIcon_Create
comment "Reboot"
ExitWindows /Reboot
comment "Test for installation success"
; Test if software marked as installed in registry
; if (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] DisplayName") = "")
; logError "Fatal: After Installation 32 bit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] not found"
; isFatalError
; else
; comment "Successful Installation"
; endif
endif endif
[Files_install] [Files_install]
;copy -s "%ScriptPath%\drv\*.*" "$InstallDir$\brother7360" copy -s "$Drv_Dir$32\*.*" "$InstallDir$\opsi_projects_drivers"
copy -s "$Drv_Dir$32\*.*" "$InstallDir$\brother7360"
[Registry_install] [Registry_install]
; Example of setting some values of an registry key: ; Example of setting some values of an registry key:
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion] openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
set "DevicePath" = "%SystemRoot%\inf;%SystemRoot%\inf\brother7360" set "DevicePath" = "%SystemRoot%\inf;$InstallDir$\opsi_projects_drivers"
[DosInAnIcon_Create] [DosInAnIcon_Create]
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\brpom10a.inf rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpom10a.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\brimm10a.inf rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brimm10a.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\BRPRM10A.INF rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\BRPRM10A.INF

View File

@ -66,16 +66,15 @@ else
endif endif
[Files_install] [Files_install]
;copy -s "%ScriptPath%\drv\*.*" "$InstallDir$\brother7360" copy -s "$Drv_Dir$32\*.*" "$InstallDir$\opsi_projects_drivers"
copy -s "$Drv_Dir$32\*.*" "$InstallDir$\brother7360"
[Registry_install] [Registry_install]
; Example of setting some values of an registry key: ; Example of setting some values of an registry key:
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion] openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
set "DevicePath" = "%SystemRoot%\inf;$InstallDir$\brother7360" set "DevicePath" = "%SystemRoot%\inf;$InstallDir$\opsi_projects_drivers"
[DosInAnIcon_Create] [DosInAnIcon_Create]
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\brpom10a.inf rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brpom10a.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\brimm10a.inf rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\brimm10a.inf
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\brother7360\BRPRM10A.INF rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $InstallDir$\opsi_projects_drivers\BRPRM10A.INF