Add CCEnhancer

This commit is contained in:
Mario Fetka 2015-11-26 12:59:04 +01:00
parent 4e402e892a
commit 4c06337ca1
3 changed files with 47 additions and 35 deletions

View File

@ -0,0 +1 @@
f6dc9bca4fcc13182e75b314bebdfbc387103e1a /home/mario/.opsi-dist-cache/piriform.ccleaner-5.11.5408/X86/CCEnhancer-4.3.2-multilingual.zip

View File

@ -85,7 +85,7 @@ else
comment "Patch Registry" comment "Patch Registry"
Registry_install /32Bit Registry_install /32Bit
comment "Create shortcuts" comment "Create shortcuts"
LinkFolder_install LinkFolder_install_64
endif endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
@ -99,7 +99,7 @@ else
comment "Patch Registry" comment "Patch Registry"
Registry_install /64Bit Registry_install /64Bit
comment "Create shortcuts" comment "Create shortcuts"
LinkFolder_install LinkFolder_install_32
endif endif
endif endif
@ -111,6 +111,9 @@ endif
; copy the ini file to the InstallDir ; copy the ini file to the InstallDir
copy "$IniCfgFile$" "$InstallDir32$" copy "$IniCfgFile$" "$InstallDir32$"
copy -s "$CCEnhancerPath$" "$InstallDir32$"
[Winbatch_install_64] [Winbatch_install_64]
"$InstallExe$" /S /D="$InstallDir64$" /L=$LanguageId$ "$InstallExe$" /S /D="$InstallDir64$" /L=$LanguageId$
@ -118,6 +121,8 @@ copy "$IniCfgFile$" "$InstallDir32$"
; copy the ini file to the InstallDir ; copy the ini file to the InstallDir
copy "$IniCfgFile$" "$InstallDir64$" copy "$IniCfgFile$" "$InstallDir64$"
copy -s "$CCEnhancerPath$" "$InstallDir64$"
[Registry_install] [Registry_install]
; Example of setting some values of an registry key: ; Example of setting some values of an registry key:
; ;
@ -128,43 +133,39 @@ copy "$IniCfgFile$" "$InstallDir64$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Piriform\CCleaner] openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Piriform\CCleaner]
set "UpdateCheck" = "0" set "UpdateCheck" = "0"
[LinkFolder_install] [LinkFolder_install_32]
set_basefolder common_desktopdirectory set_basefolder common_desktopdirectory
set_subfolder "" set_subfolder ""
delete_element "CCleaner" delete_element "CCleaner"
; Example of deleting a folder from AllUsers startmenu: set_basefolder common_programs
; set_subfolder CCleaner
; set_basefolder common_programs
; delete_subfolder $ProductId$ set_link
; name: CCleaner Enhancer
; Example of creating an shortcut to the installed exe in AllUsers startmenu: target: $InstallDir32$/CCEnhancer.exe
; parameters:
; set_basefolder common_programs working_dir: $InstallDir32$
; set_subfolder $ProductId$ icon_file: $InstallDir32$/CCEnhancer.exe
; icon_index: 0
; set_link end_link
; name: $ProductId$
; target: <path to the program> [LinkFolder_install_64]
; parameters: set_basefolder common_desktopdirectory
; working_dir: $InstallDir$ set_subfolder ""
; icon_file: delete_element "CCleaner"
; icon_index:
; end_link set_basefolder common_programs
; set_subfolder CCleaner
; Example of creating an shortcut to the installed exe on AllUsers desktop:
; set_link
; set_basefolder common_desktopdirectory name: CCleaner Enhancer
; set_subfolder "" target: $InstallDir64$/CCEnhancer.exe
; parameters:
; set_link working_dir: $InstallDir64$
; name: $ProductId$ icon_file: $InstallDir64$/CCEnhancer.exe
; target: <path to the program> icon_index: 0
; parameters: <some_param> end_link
; working_dir: $InstallDir$
; icon_file: <path to icon file>
; icon_index: 2
; end_link
[Sub_check_exitcode] [Sub_check_exitcode]
comment "Test for installation success via exit code" comment "Test for installation success via exit code"

View File

@ -6,6 +6,7 @@ PN="piriform.ccleaner"
NAME="CCleaner" NAME="CCleaner"
DESCRIPTION="Die kostenlose Optimierungssoftware CCleaner dient zur Optimierung und zum Aufraeumen von Microsoft Windows." DESCRIPTION="Die kostenlose Optimierungssoftware CCleaner dient zur Optimierung und zum Aufraeumen von Microsoft Windows."
VERSION="5.11.5408" VERSION="5.11.5408"
CCEVERSION="4.3"
RELEASE="1" RELEASE="1"
PRIORITY="0" PRIORITY="0"
ADVICE="" ADVICE=""
@ -22,9 +23,18 @@ DL_SOURCE[1]="http://www.piriform.com/ccleaner/download/slim/downloadfile"
DL_ARCH[1]="X86" DL_ARCH[1]="X86"
DL_WINST_NAME[1]=InstallExe DL_WINST_NAME[1]=InstallExe
DL_FILE[2]="CCEnhancer-4.3.2-multilingual.zip"
DL_SOURCE[2]="https://singularlabs.com/download/10320/"
DL_ARCH[2]="X86"
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]="CCEnhancerPath"
WINST_VALUE[0]="@DL_EXTRACT_WINST_PATH[1]@\\CCEnhancer-${CCEVERSION}-multilanguage\\*.*"
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"