use setup.exe with patching Abcpy.ini for silent install
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
;***************************************************************
|
||||
;Adobe Installer External Configuration File: Abcpy.ini
|
||||
;***************************************************************
|
||||
|
||||
;***************************************************************
|
||||
;Main Section
|
||||
;The (Product) key is a required key
|
||||
;***************************************************************
|
||||
[MAIN]
|
||||
Product=Adobe(R) Photoshop CS2
|
||||
AbcpyVersion=2.0
|
||||
|
||||
|
||||
;***************************************************************
|
||||
;OEM Installation Options
|
||||
;***************************************************************
|
||||
[OEM Install]
|
||||
SERIALNUMBER=
|
||||
SERIALNUMBERTRYOUT=
|
||||
USERNAME=
|
||||
COMPANYNAME=
|
||||
INSTALLDIR=
|
||||
|
||||
@@ -27,7 +27,7 @@ DefVar $LanguageId$
|
||||
set $LanguageId$ = getValue("default_language_id_decimal", $languageInfo$)
|
||||
|
||||
DefStringList $ShortProgramFiles32List$
|
||||
$ShortProgramFiles32List$ = getOutStreamFromSection ('DosInAnIcon_path')
|
||||
set $ShortProgramFiles32List$ = getOutStreamFromSection ('DosInAnIcon_path')
|
||||
DefVar $ShortProgramFiles32Dir$
|
||||
set $ShortProgramFiles32Dir$ = takeString (-1, $ShortProgramFiles32List$)
|
||||
|
||||
@@ -51,7 +51,7 @@ Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
; no white space use '-' as a seperator
|
||||
Set $MinimumSpace$ = "600 MB"
|
||||
; the path were we find the product after the installation
|
||||
Set $InstallDir$ = "%ShortProgramFiles32Dir%\Adobe\Adobe Photoshop CS2"
|
||||
Set $InstallDir$ = $ShortProgramFiles32Dir$ + "\Adobe\Adobe Photoshop CS2"
|
||||
Set $LicenseRequired$ = "true"
|
||||
Set $LicensePool$ = "p_" + $ProductId$
|
||||
; ----------------------------------------------------------------
|
||||
@@ -80,12 +80,22 @@ else
|
||||
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Files_delete
|
||||
|
||||
Files_copy
|
||||
Sub_check_exitcode
|
||||
|
||||
DosInAnIcon_license
|
||||
Sub_check_exitcode
|
||||
|
||||
Winbatch_install
|
||||
Sub_check_exitcode
|
||||
|
||||
Winbatch_update
|
||||
Sub_check_exitcode
|
||||
|
||||
Files_delete
|
||||
|
||||
comment "Copy files"
|
||||
Files_install /32Bit
|
||||
|
||||
@@ -98,22 +108,33 @@ else
|
||||
endif
|
||||
|
||||
[DosInAnIcon_path]
|
||||
"%ScriptPath%\short.bat $ProgramFiles32Dir$
|
||||
"%ScriptPath%\short.bat %ProgramFiles32Dir%
|
||||
|
||||
[DosInAnIcon_license]
|
||||
inifile $LogDir$\$ProductId$\Abcpy.ini [OEM Install] SERIALNUMBER="$Licensekey$"
|
||||
inifile $LogDir$\$ProductId$\Abcpy.ini [OEM Install] USERNAME="%PCName%"
|
||||
inifile $LogDir$\$ProductId$\Abcpy.ini [OEM Install] COMPANYNAME="%IPName%"
|
||||
inifile $LogDir$\$ProductId$\Abcpy.ini [OEM Install] INSTALLDIR="$InstallDir$"
|
||||
|
||||
[Winbatch_install]
|
||||
msiexec /i "$Install90Msi$"" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! EULA_ACCEPT=YES SERIALNUMBER="$Licensekey$" USERNAME="%PCName%" COMPANYNAME="%IPName%" INSTALLDIR="$InstallDir$" ALLUSERS=1 REBOOT=ReallySuppress
|
||||
; "$Install90Msi$" /rs /sPB /l /sl "1031" /msi EULA_ACCEPT=YES SERIALNUMBER="$Licensekey$" USERNAME="%PCName%" COMPANYNAME="%IPName%" INSTALLDIR="$InstallDir$" ALLUSERS=1
|
||||
"$LogDir$\$ProductId$\setup.exe" /S /v /qn
|
||||
|
||||
[Winbatch_update]
|
||||
"$Install902Exe$" /s
|
||||
|
||||
[Files_delete]
|
||||
del -sf "$LogDir$\$ProductId$\"
|
||||
|
||||
[Files_copy]
|
||||
copy -s "%ScriptPath%\Core\*.*" "$LogDir$\$ProductId$\"
|
||||
|
||||
[Files_install]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir$"
|
||||
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir$"
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir$\"
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
|
||||
Reference in New Issue
Block a user