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:14] 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 scripts | + | -Create a new file named gpg4win.ini and fill it up with the script |
+ | -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. | ||
+ | ===thats it=== | ||
+ | ====setup.ins==== | ||
+ | <code winst> | ||
+ | [Initial] | ||
+ | SetLogLevel=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 $LogDir$ | ||
+ | DefVar $ProductId$ | ||
+ | DefVar $MinimumSpace$ | ||
+ | DefVar $InstallDir32$ | ||
+ | DefVar $InstallDir64$ | ||
+ | DefVar $InstallDir32_Cmd$ | ||
+ | DefVar $InstallDir64_Cmd$ | ||
+ | DefVar $ExitCode$ | ||
+ | DefVar $LicenseRequired$ | ||
+ | DefVar $LicenseKey$ | ||
+ | DefVar $LicensePool$ | ||
+ | DefVar $INST_SystemType$ | ||
+ | DefVar $INST_architecture$ | ||
+ | DefVar $Version$ | ||
+ | DefVar $Inst_Cmd$ | ||
+ | DefVar $Inst_Prg32$ | ||
+ | DefVar $Inst_Prg64$ | ||
+ | DefVar $Uninst_Cmd$ | ||
+ | DefVar $Uninst_Prg$ | ||
+ | |||
+ | 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 $ProductId$ | ||
+ | Set $Version$ | ||
+ | Set $MinimumSpace$ | ||
+ | ; the path were we find the product after the installation | ||
+ | Set $InstallDir32$ | ||
+ | Set $InstallDir64$ | ||
+ | Set $InstallDir32_Cmd$ | ||
+ | Set $InstallDir64_Cmd$ | ||
+ | Set $LicenseRequired$ = " | ||
+ | Set $LicensePool$ | ||
+ | Set $Inst_Prg32$ | ||
+ | Set $Inst_Prg64$ | ||
+ | Set $Uninst_Prg$ | ||
+ | Set $Inst_Cmd$ | ||
+ | Set $Uninst_Cmd$ | ||
+ | ; ---------------------------------------------------------------- | ||
+ | |||
+ | comment "Show product picture" | ||
+ | ShowBitmap " | ||
+ | |||
+ | if not(HasMinimumSpace (" | ||
+ | LogError "Not enough space on %SystemDrive%, | ||
+ | isFatalError | ||
+ | ; Stop process and set installation status to failed | ||
+ | else | ||
+ | |||
+ | if FileExists($InstallDir32$+$Uninst_Prg$) | ||
+ | ; if FileExists(" | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | endif | ||
+ | if FileExists($InstallDir64$+$Uninst_Prg$) | ||
+ | ; if FileExists(" | ||
+ | comment "Start uninstall sub section" | ||
+ | Sub " | ||
+ | endif | ||
+ | |||
+ | if $LicenseRequired$ = " | ||
+ | comment " | ||
+ | Sub_get_licensekey | ||
+ | endif | ||
+ | |||
+ | comment " | ||
+ | |||
+ | if (($INST_SystemType$ = "x86 System" | ||
+ | Message " | ||
+ | comment "Start setup program" | ||
+ | Winbatch_install_32 | ||
+ | Sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | if ($INST_SystemType$ = "64 Bit System" | ||
+ | Message " | ||
+ | comment "Start setup program" | ||
+ | Winbatch_install_64 | ||
+ | Sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | endif | ||
+ | |||
+ | |||
+ | [Winbatch_install_32] | ||
+ | net stop dirmngr | ||
+ | %ScriptPath%\$Inst_Prg32$ $Inst_Cmd$ $InstallDir32_Cmd$ | ||
+ | |||
+ | [Winbatch_install_64] | ||
+ | net stop dirmngr | ||
+ | %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ $InstallDir64_Cmd$ | ||
+ | |||
+ | [Sub_check_exitcode] | ||
+ | comment "Test for installation success via exit code" | ||
+ | set $ExitCode$ = getLastExitCode | ||
+ | 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> | ||
+ | [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: | ||
+ | |||
+ | </ |