This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:gpg4win [2014/09/01 14:20] staube |
userspace:gpg4win [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Tested with OPSI 4.0.4.0\\ | ||
- | Winst 4.11.3.11\\ | ||
- | Works fine with Win7 x86 and x64 and probable with Windows XP.\\ | ||
- | by --- //[[S. Taube]] 2014/09/01 16:00// | ||
- | \\ | ||
- | \\ | ||
======Gpg4win 2.2.1====== | ======Gpg4win 2.2.1====== | ||
+ | |||
+ | Tested with OPSI 4.0.4.0 \\ | ||
+ | Winst 4.11.3.11 \\ | ||
+ | Works fine with Win7 x86 and x64 \\ | ||
+ | |||
+ | By // | ||
+ | |||
+ | |||
You need the Installer for Gpg4win 2.2.1.\\ | You need the Installer for Gpg4win 2.2.1.\\ | ||
And You can download it here: http:// | And You can download it here: http:// | ||
Line 11: | Line 13: | ||
=====Steps====== | =====Steps====== | ||
-Download the Installer for Gpg4win 2.2.1 \\ and put it to the CLIENT_DATA-directory on your Workbench.\\ | -Download the Installer for Gpg4win 2.2.1 \\ and put it to the CLIENT_DATA-directory on your Workbench.\\ | ||
- | -Create a new file named gpg4win.ini and fill it up with the script provided down there\\ if you want to install Gpg4win with your own Specials.\\ and put this file in the CLIENT-DATA-Directory too. | + | -Create a new file named gpg4win.ini and fill it up with the script provided down there\\ if you want to install Gpg4win with your own specials\\ and put this file in the CLIENT-DATA-Directory too. |
-Create new textfiles in the CLIENT_DATA-directory and fill them up with the scripts provided down there.\\ | -Create new textfiles in the CLIENT_DATA-directory and fill them up with the scripts provided down there.\\ | ||
-Ready the package and install it on your server. | -Ready the package and install it on your server. | ||
Line 17: | Line 19: | ||
====setup.ins==== | ====setup.ins==== | ||
<code winst> | <code winst> | ||
- | [Actions] | ||
[Initial] | [Initial] | ||
SetLogLevel=9 | SetLogLevel=9 | ||
Line 161: | Line 162: | ||
</ | </ | ||
====uninstall.ins==== | ====uninstall.ins==== | ||
+ | <code winst> | ||
+ | [Initial] | ||
+ | LogLevel=9 | ||
+ | ; Log Errors in Logfile but don't abort: | ||
+ | ExitOnError=false | ||
+ | ; Show syntax errors in the script: | ||
+ | ScriptErrorMessages=on | ||
+ | ; Dont trace step by step through the script: | ||
+ | TraceMode=off | ||
+ | ; let started programs run in front of the winst window | ||
+ | StayOnTop=false | ||
+ | |||
+ | [Actions] | ||
+ | requiredWinstVersion >= " | ||
+ | |||
+ | DefVar $UninstallProgram32$ | ||
+ | DefVar $LogDir$ | ||
+ | DefVar $ExitCode$ | ||
+ | DefVar $ProductId$ | ||
+ | DefVar $InstallDir32$ | ||
+ | DefVar $InstallDir64$ | ||
+ | DefVar $LicenseRequired$ | ||
+ | DefVar $LicensePool$ | ||
+ | DefVar $INST_SystemType$ | ||
+ | DefVar $INST_architecture$ | ||
+ | DefVar $Uninst_Cmd$ | ||
+ | DefVar $Uninst_Prg$ | ||
+ | |||
+ | Set $INST_SystemType$ = GetSystemType | ||
+ | set $INST_architecture$ = GetProductProperty(" | ||
+ | |||
+ | |||
+ | Set $LogDir$ = " | ||
+ | |||
+ | ; ---------------------------------------------------------------- | ||
+ | ; - Please edit the following values | ||
+ | ; ---------------------------------------------------------------- | ||
+ | Set $ProductId$ | ||
+ | Set $InstallDir32$ | ||
+ | Set $InstallDir64$ | ||
+ | Set $LicenseRequired$ | ||
+ | Set $LicensePool$ | ||
+ | Set $Uninst_Prg$ | ||
+ | Set $Uninst_Cmd$ | ||
+ | ; ---------------------------------------------------------------- | ||
+ | |||
+ | comment "Show product picture" | ||
+ | ShowBitmap " | ||
+ | |||
+ | Message " | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | |||
+ | if $LicenseRequired$ = " | ||
+ | comment " | ||
+ | Sub_free_license | ||
+ | endif | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====delsub.ins==== | ||
+ | <code winst> | ||
+ | if (($INST_SystemType$ = "x86 System" | ||
+ | Message " | ||
+ | Winbatch_uninstall_32 | ||
+ | comment " | ||
+ | Files_uninstall_32 | ||
+ | sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | if ($INST_SystemType$ = "64 Bit System" | ||
+ | Message " | ||
+ | Winbatch_uninstall_64 | ||
+ | comment " | ||
+ | Files_uninstall_64 | ||
+ | sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | |||
+ | [Winbatch_uninstall_32] | ||
+ | " | ||
+ | |||
+ | [Winbatch_uninstall_64] | ||
+ | " | ||
+ | |||
+ | [Files_uninstall_32] | ||
+ | delete -sf " | ||
+ | |||
+ | [Files_uninstall_64] | ||
+ | delete -sf " | ||
+ | |||
+ | [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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ====gpg4win.ini==== | ||
+ | <code winst> | ||
+ | [gpg4win] | ||
+ | ; Installationseinstellungen. Weg- oder leer lassen für | ||
+ | ; Voreinstellung | ||
+ | inst_gpgol = true | ||
+ | inst_gpgex = true | ||
+ | inst_kleopatra = false | ||
+ | inst_gpa = true | ||
+ | inst_claws_mail = false | ||
+ | inst_compendium = false | ||
+ | |||
+ | ; Die Stellen, an denen Verknüpfungen erzeugt werden sollen. | ||
+ | inst_start_menu = true | ||
+ | inst_desktop = true | ||
+ | inst_quick_launch_bar = false | ||
+ | |||
+ | ; Im Gegensatz zu den anderen Optionen überschreibt diese Option | ||
+ | ; die Einstellung des Benutzers im Installationsassistenten. | ||
+ | inst_start_menu_folder = Gpg4win | ||
+ | |||
+ | ; Standard-Konfigurationsdateien. | ||
+ | ;gpg.conf = D: | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ;gpa.conf = D: | ||
+ | |||
+ | </ | ||
+ |