This shows you the differences between two versions of the page.
userspace:adobe_reader_dc [2015/12/18 12:14] efred code for Viewer.aapp added |
userspace:adobe_reader_dc [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Adobe Reader DC ====== | ||
- | Adaptation of the opsi-template scripts for Adobe Reader. \\ | ||
- | Download Adobe Reader DC from here: http:// | ||
- | This code will disable AdobeARM and the Adobe Reader DC Updater and it will delete the Sidebar of Adobe Reader DCs. \\ | ||
- | You have to check the MSI-id. If Adobe will get a new Version, it will change, so you have to edit the MSI-id in setup.ins and uninstall.ins. This code is for 15.009.20069 (German). | ||
- | |||
- | < | ||
- | Tree: | ||
- | |-- files | ||
- | | | ||
- | |-- AdobeReader.exe | ||
- | |-- adobereaderdc.png | ||
- | |-- setup.ins | ||
- | `-- uninstall.ins | ||
- | </ | ||
- | |||
- | ==== control file ==== | ||
- | |||
- | <code winst> | ||
- | [Package] | ||
- | version: 10 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: adobereaderdc | ||
- | name: Adobe Reader DC | ||
- | description: | ||
- | advice: | ||
- | version: 15.009.20069 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [Changelog] | ||
- | adobereaderdc (15.009.20069-10) testing; urgency=low; | ||
- | -- fjelk < | ||
- | |||
- | adobereaderdc (15.009.20069-9) testing; urgency=low; | ||
- | -- fjelk < | ||
- | |||
- | adobereaderdc (15.009.20069-8) testing; urgency=low; | ||
- | -- fjelk < | ||
- | |||
- | adobereaderdc (15.009.20069-7) testing; urgency=low; | ||
- | -- fjelk < | ||
- | |||
- | adobereaderdc (15.009.20069-5) testing; urgency=low; | ||
- | * Initial package | ||
- | -- fjelk < | ||
- | </ | ||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $Setupfile$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_MsVersion$ | ||
- | DefVar $MSIid$ | ||
- | |||
- | set $INST_MsVersion$ = GetMsVersionInfo | ||
- | Set $INST_SystemType$ = GetSystemType | ||
- | ;set $INST_architecture$ = GetProductProperty(" | ||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $MSIid$ | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | Set $Setupfile$ | ||
- | ; the path were we find the product after the installation | ||
- | Set $InstallDir$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | endif | ||
- | |||
- | |||
- | |||
- | if $INST_MsVersion$ < " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | WinBatch_uninstall | ||
- | endif | ||
- | |||
- | |||
- | ;Text shown during installation | ||
- | Message " | ||
- | ;Sets the LogLevel | ||
- | ;Allowed LogLevels are: | ||
- | ;0 = nothing (absolute nothing) | ||
- | ;1 = essential (" | ||
- | ;2 = critical (unexpected errors that my cause a program abort) | ||
- | ;3 = error (Errors that don't will abort the running program) | ||
- | ;4 = warning (you should have a look at this) | ||
- | ;5 = notice (Important statements to the program flow) | ||
- | ;6 = info (Additional Infos) | ||
- | ;7 = debug (important debug messages) | ||
- | ;8 = debug2 (a lot more debug informations and data) | ||
- | ;9 = confidential (passwords and other security relevant data) | ||
- | SetLogLevel=6 | ||
- | WinBatch_Install | ||
- | DosBatch_DisableARM | ||
- | Registry_install | ||
- | Files_copy_local | ||
- | sub_check_exitcode | ||
- | |||
- | [Files_copy_local] | ||
- | delete -f " | ||
- | copy -s " | ||
- | |||
- | [Registry_install] | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockDown] | ||
- | set " | ||
- | |||
- | [DosBatch_DisableARM] | ||
- | sc stop AdobeARMservice | ||
- | sc config AdobeARMservice start= disabled | ||
- | |||
- | [WinBatch_Install] | ||
- | %scriptpath%\$Setupfile$ /sAll /rs /msi EULA_ACCEPT=YES | ||
- | |||
- | [WinBatch_uninstall] | ||
- | MsiExec.exe /passive /x $MSIid$ | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ | ||
- | |||
- | |||
- | ==== uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | [Actions] | ||
- | |||
- | DefVar $MSIid$ | ||
- | |||
- | Set $MSIid$ | ||
- | |||
- | Message " | ||
- | WinBatch_uninstall | ||
- | |||
- | [WinBatch_uninstall] | ||
- | MsiExec.exe /passive /x $MSIid$ | ||
- | <code winst> | ||
- | </ | ||
- | |||
- | |||
- | ==== Viewer.aapp ==== | ||
- | |||
- | <code winst> | ||
- | < | ||
- | </ | ||
- | </ |