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

View File

@ -6,6 +6,7 @@ PN="piriform.ccleaner"
NAME="CCleaner"
DESCRIPTION="Die kostenlose Optimierungssoftware CCleaner dient zur Optimierung und zum Aufraeumen von Microsoft Windows."
VERSION="5.11.5408"
CCEVERSION="4.3"
RELEASE="1"
PRIORITY="0"
ADVICE=""
@ -22,9 +23,18 @@ DL_SOURCE[1]="http://www.piriform.com/ccleaner/download/slim/downloadfile"
DL_ARCH[1]="X86"
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
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_OPTION[0]="UninstallProg32"
OPSI_INI_VALUE[0]="uninst.exe"