add bootimedefrag
This commit is contained in:
parent
ed28901ba2
commit
f6166df488
BIN
CLIENT_DATA/ALL/boottimedefrag.exe
Normal file
BIN
CLIENT_DATA/ALL/boottimedefrag.exe
Normal file
Binary file not shown.
@ -24,6 +24,8 @@ DefVar $INST_architecture$
|
|||||||
DefVar $OLD_VERSION$
|
DefVar $OLD_VERSION$
|
||||||
DefVar $OLD_CREATOR_TAG$
|
DefVar $OLD_CREATOR_TAG$
|
||||||
DefVar $OLD_RELEASE$
|
DefVar $OLD_RELEASE$
|
||||||
|
DefVar $RealDefraggler32Exe$
|
||||||
|
DefVar $RealDefraggler64Exe$
|
||||||
|
|
||||||
DefStringList $languageInfo$
|
DefStringList $languageInfo$
|
||||||
set $languageInfo$ = getLocaleInfoMap
|
set $languageInfo$ = getLocaleInfoMap
|
||||||
@ -59,6 +61,9 @@ Set $InstallDir64$ = "%ProgramFiles64Dir%\Defraggler"
|
|||||||
|
|
||||||
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
|
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
|
||||||
|
|
||||||
|
Set $RealDefraggler32Exe$ = $InstallDir32$ + "\" + $Defraggler32Exe$
|
||||||
|
Set $RealDefraggler64Exe$ = $InstallDir64$ + "\" + $Defraggler64Exe$
|
||||||
|
|
||||||
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
||||||
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
|
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
|
||||||
isFatalError
|
isFatalError
|
||||||
@ -78,12 +83,12 @@ else
|
|||||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
|
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
|
||||||
comment "Start setup program"
|
comment "Start setup program"
|
||||||
ChangeDirectory "%SCRIPTPATH%"
|
ChangeDirectory "%SCRIPTPATH%"
|
||||||
|
comment "Patch Registry"
|
||||||
|
Registry_install /32Bit
|
||||||
Winbatch_install_32
|
Winbatch_install_32
|
||||||
Sub_check_exitcode
|
Sub_check_exitcode
|
||||||
comment "Copy files"
|
comment "Copy files"
|
||||||
Files_install_32 /32Bit
|
Files_install_32 /32Bit
|
||||||
comment "Patch Registry"
|
|
||||||
Registry_install /32Bit
|
|
||||||
comment "Create shortcuts"
|
comment "Create shortcuts"
|
||||||
LinkFolder_install
|
LinkFolder_install
|
||||||
endif
|
endif
|
||||||
@ -92,12 +97,12 @@ else
|
|||||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
||||||
comment "Start setup program"
|
comment "Start setup program"
|
||||||
ChangeDirectory "%SCRIPTPATH%"
|
ChangeDirectory "%SCRIPTPATH%"
|
||||||
|
comment "Patch Registry"
|
||||||
|
Registry_install /64Bit
|
||||||
Winbatch_install_64
|
Winbatch_install_64
|
||||||
Sub_check_exitcode
|
Sub_check_exitcode
|
||||||
comment "Copy files"
|
comment "Copy files"
|
||||||
Files_install_64 /64Bit
|
Files_install_64 /64Bit
|
||||||
comment "Patch Registry"
|
|
||||||
Registry_install /64Bit
|
|
||||||
comment "Create shortcuts"
|
comment "Create shortcuts"
|
||||||
LinkFolder_install
|
LinkFolder_install
|
||||||
endif
|
endif
|
||||||
@ -106,6 +111,7 @@ endif
|
|||||||
|
|
||||||
[Winbatch_install_32]
|
[Winbatch_install_32]
|
||||||
"$InstallExe$" /S /D="$InstallDir32$" /L=$LanguageId$
|
"$InstallExe$" /S /D="$InstallDir32$" /L=$LanguageId$
|
||||||
|
"%ScriptPath%\ALL\boottimedefrag.exe" "$RealDefraggler32Exe$"
|
||||||
|
|
||||||
[Files_install_32]
|
[Files_install_32]
|
||||||
; copy the ini file to the InstallDir
|
; copy the ini file to the InstallDir
|
||||||
@ -117,6 +123,7 @@ copy "$IniCfgFile$" "$InstallDir32$"
|
|||||||
|
|
||||||
[Winbatch_install_64]
|
[Winbatch_install_64]
|
||||||
"$InstallExe$" /S /D="$InstallDir64$" /L=$LanguageId$
|
"$InstallExe$" /S /D="$InstallDir64$" /L=$LanguageId$
|
||||||
|
"%ScriptPath%\ALL\boottimedefrag.exe" "$RealDefraggler64Exe$"
|
||||||
|
|
||||||
[Files_install_64]
|
[Files_install_64]
|
||||||
; copy the ini file to the InstallDir
|
; copy the ini file to the InstallDir
|
||||||
|
BIN
boottimedefrag.au3
Normal file
BIN
boottimedefrag.au3
Normal file
Binary file not shown.
@ -27,6 +27,12 @@ DL_WINST_NAME[1]=InstallExe
|
|||||||
# 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]="Defraggler32Exe"
|
||||||
|
WINST_VALUE[0]="Defraggler.exe"
|
||||||
|
|
||||||
|
WINST_NAME[1]="Defraggler64Exe"
|
||||||
|
WINST_VALUE[1]="Defraggler64.exe"
|
||||||
|
|
||||||
OPSI_INI_SECTION[0]="X86"
|
OPSI_INI_SECTION[0]="X86"
|
||||||
OPSI_INI_OPTION[0]="UninstallProg32"
|
OPSI_INI_OPTION[0]="UninstallProg32"
|
||||||
OPSI_INI_VALUE[0]="uninst.exe"
|
OPSI_INI_VALUE[0]="uninst.exe"
|
||||||
|
Loading…
Reference in New Issue
Block a user