userspace:wps-office
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| userspace:wps-office [2019/05/15 13:57] – Thomas_H | userspace:wps-office [2021/08/23 10:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| requiredWinstVersion >= 4.8.6\\ | requiredWinstVersion >= 4.8.6\\ | ||
| questions to: // | questions to: // | ||
| + | |||
| Special thanks to Mossi, [[https:// | Special thanks to Mossi, [[https:// | ||
| + | Special thanks to Simon Monteneau [[https:// | ||
| + | Dépôt WAPT Les Fourmis Du Web ]] (Merci beaucoup) \\ | ||
| + | |||
| The installation-files can be downloaded from: http:// | The installation-files can be downloaded from: http:// | ||
| Line 15: | Line 19: | ||
| So we have to change some things in the installation pack to force the setup to behave as we need it. | So we have to change some things in the installation pack to force the setup to behave as we need it. | ||
| Once done this change, the rest is easy and we can install the new file with opsi as well known. | Once done this change, the rest is easy and we can install the new file with opsi as well known. | ||
| + | |||
| + | ==== Urgently needed ==== | ||
| + | |||
| + | - a pot of coffee or tea | ||
| + | - nerve food like chocolat | ||
| + | - nerves of steel | ||
| + | - understanding wife or colleague | ||
| + | - NO KIDS AROUND! | ||
| + | - 7Zip | ||
| + | - any Editor, which can save text in UTF-8-format | ||
| Line 66: | Line 80: | ||
| | | ||
| - | The filename I have chosen was "WPS-Office_10.2.0.7646_Free.7z" | + | The filename I have chosen was "WPSOffice_10.2.0.7646_Free.7z" |
| 20) Click OK and let 7Zip create your archive. | 20) Click OK and let 7Zip create your archive. | ||
| 21) Now the contents of your working-dir should look like this: | 21) Now the contents of your working-dir should look like this: | ||
| Line 75: | Line 89: | ||
| ├ 7zsd_LZMA2_x64.sfx | ├ 7zsd_LZMA2_x64.sfx | ||
| ├ config.txt | ├ config.txt | ||
| - | └ WPS-Office_10.2.0.7646_Free.7z (or what name ever you gave the 7z-Archive) | + | └ WPSOffice_10.2.0.7646_Free.7z (or what name ever you gave the 7z-Archive) |
| | | ||
| 22) Open a CMD and change into your working-dir | 22) Open a CMD and change into your working-dir | ||
| Line 100: | Line 114: | ||
| <code winst> | <code winst> | ||
| - | ; Copyright (c) uib gmbh (www.uib.de) | + | ; Copyright (c) uib gmbh (www.uib.de) |
| - | ; This sourcecode is owned by uib | + | ; This sourcecode is owned by uib |
| - | ; and published under the Terms of the General Public License. | + | ; and published under the Terms of the General Public License. |
| - | ; credits: http:// | + | ; credits: http:// |
| - | + | ||
| - | [Initial] | + | [Initial] |
| - | SetLogLevel=9 | + | SetLogLevel=9 |
| - | ; Log Errors in Logfile but don't abort: | + | ; Log Errors in Logfile but don't abort: |
| - | ExitOnError=false | + | ExitOnError=false |
| - | ; Show syntax errors in the script: | + | ; Show syntax errors in the script: |
| - | ScriptErrorMessages=on | + | ScriptErrorMessages=on |
| - | ; Dont trace step by step through the script: | + | ; Dont trace step by step through the script: |
| - | TraceMode=off | + | TraceMode=off |
| - | ; let started programs run in front of the winst window | + | ; let started programs run in front of the winst window |
| - | StayOnTop=false | + | StayOnTop=false |
| - | + | ||
| - | + | ||
| - | [Actions] | + | [Actions] |
| - | requiredWinstVersion >= " | + | requiredWinstVersion >= " |
| - | + | ||
| - | DefVar $LogDir$ | + | DefVar $LogDir$ |
| - | DefVar $ProductId$ | + | DefVar $ProductId$ |
| - | DefVar $Picture$ | + | DefVar $Picture$ |
| DefVar $MinimumSpace$ | DefVar $MinimumSpace$ | ||
| DefVar $InstallDir32$ | DefVar $InstallDir32$ | ||
| Line 153: | Line 167: | ||
| Set $Version$ | Set $Version$ | ||
| Set $MinimumSpace$ | Set $MinimumSpace$ | ||
| - | Set $Picture$ | + | Set $Picture$ |
| - | ; the path were we find the product after the installation | + | ; the path were we find the product after the installation |
| ;Set $InstallDir32$ | ;Set $InstallDir32$ | ||
| ;Set $InstallDir64$ | ;Set $InstallDir64$ | ||
| Line 170: | Line 184: | ||
| if not(HasMinimumSpace (" | if not(HasMinimumSpace (" | ||
| - | LogError "Not enough space on %SystemDrive%, | + | |
| - | isFatalError | + | isFatalError |
| - | ; Stop process and set installation status to failed | + | ; Stop process and set installation status to failed |
| else | else | ||
| - | |||
| - | if FileExists(" | ||
| - | comment "Start uninstall sub section" | ||
| - | Sub " | ||
| - | endif | ||
| - | if FileExists(" | ||
| - | comment "Start uninstall sub section" | ||
| - | Sub " | ||
| - | endif | ||
| - | |||
| - | if $LicenseRequired$ = " | ||
| - | comment " | ||
| - | Sub_get_licensekey | ||
| - | endif | ||
| - | |||
| - | comment " | ||
| - | if (($INST_SystemType$ = "x86 System" | + | if FileExists(" |
| - | Message " | + | comment "Start uninstall sub section" |
| - | comment "Start setup program" | + | Sub " |
| - | Winbatch_install_32 | + | endif |
| - | Sub_check_exitcode | + | if FileExists(" |
| - | endif | + | comment "Start uninstall sub section" |
| + | Sub " | ||
| + | endif | ||
| + | |||
| + | if $LicenseRequired$ = " | ||
| + | comment " | ||
| + | Sub_get_licensekey | ||
| + | endif | ||
| + | |||
| + | comment " | ||
| + | |||
| + | | ||
| + | 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 | ||
| + | LinkFolder_install | ||
| + | | ||
| + | endif | ||
| - | if ($INST_SystemType$ = "64 Bit System" | ||
| - | Message " | ||
| - | comment "Start setup program" | ||
| - | Winbatch_install_64 | ||
| - | Sub_check_exitcode | ||
| - | endif | ||
| - | |||
| endif | endif | ||
| Line 214: | Line 230: | ||
| %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ | %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ | ||
| + | [LinkFolder_install] | ||
| + | set_basefolder common_programs | ||
| + | set_subfolder $ProductId$ | ||
| + | |||
| + | set_link | ||
| + | name: " | ||
| + | target: " | ||
| + | parameters: | ||
| + | working_dir:" | ||
| + | icon_file:" | ||
| + | end_link | ||
| + | set_link | ||
| + | name: " | ||
| + | target: " | ||
| + | parameters: | ||
| + | working_dir:" | ||
| + | icon_file:" | ||
| + | end_link | ||
| + | set_link | ||
| + | name: " | ||
| + | target: " | ||
| + | parameters: | ||
| + | working_dir:" | ||
| + | icon_file:" | ||
| + | end_link | ||
| [Sub_check_exitcode] | [Sub_check_exitcode] | ||
| Line 219: | Line 260: | ||
| set $ExitCode$ = getLastExitCode | set $ExitCode$ = getLastExitCode | ||
| if ($ExitCode$ = " | if ($ExitCode$ = " | ||
| - | comment "Looks good: setup program gives exitcode zero" | + | |
| else | else | ||
| - | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | + | |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment " | + | comment " |
| - | comment " | + | comment " |
| - | else | + | else |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment "looks good: setup program gives exitcode 1641" | + | comment "looks good: setup program gives exitcode 1641" |
| - | comment " | + | comment " |
| - | else | + | else |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment "looks good: setup program gives exitcode 3010" | + | comment "looks good: setup program gives exitcode 3010" |
| - | comment " | + | comment " |
| - | else | + | else |
| - | logError " | + | logError " |
| - | isFatalError | + | isFatalError |
| - | endif | + | endif |
| - | endif | + | endif |
| - | endif | + | endif |
| endif | endif | ||
| + | |||
| </ | </ | ||
| Line 258: | Line 300: | ||
| DefVar $ExitCode$ | DefVar $ExitCode$ | ||
| DefVar $NTVersioninfo$ | DefVar $NTVersioninfo$ | ||
| - | DefVar $uninstallstring$ | ||
| DefVar $Parameter$ | DefVar $Parameter$ | ||
| DefVar $Picture$ | DefVar $Picture$ | ||
| Line 268: | Line 309: | ||
| ; ---------------Define some Variables here ---------------------- | ; ---------------Define some Variables here ---------------------- | ||
| Set $ProductId$ | Set $ProductId$ | ||
| - | Set $Picture$ | + | Set $Picture$ |
| - | Set $Version$ | + | Set $Version$ |
| - | Set $UninstPrg$ | + | Set $UninstPrg$ |
| - | Set $uninstallstring$ = " | + | Set $Parameter$ |
| - | Set $Parameter$ | + | |
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
| Line 279: | Line 319: | ||
| ; 64 Bit OS | ; 64 Bit OS | ||
| - | if GetSystemType = "64 Bit System" | + | if GetSystemType = "64 Bit System" |
| - | comment " 64 Bit System" | + | comment " 64 Bit System" |
| - | comment | + | comment $ProductId$ + " |
| - | Sub_uninstall | + | Sub_uninstall |
| endif | endif | ||
| ; 32 Bit OS | ; 32 Bit OS | ||
| if GetSystemType = "x86 System" | if GetSystemType = "x86 System" | ||
| - | comment " 32 Bit System" | + | |
| - | comment | + | comment $ProductId$ + " |
| - | Sub_uninstall | + | Sub_uninstall |
| endif | endif | ||
| [Winbatch_remove] | [Winbatch_remove] | ||
| - | "%ProfileDir%\polizei\$UninstPrg$" | + | " |
| Line 310: | Line 350: | ||
| ; http:// | ; http:// | ||
| if ($ExitCode$ = " | if ($ExitCode$ = " | ||
| - | comment "Looks good: setup program gives exitcode zero" | + | |
| else | else | ||
| - | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | + | |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment " | + | comment " |
| - | comment " | + | comment " |
| - | else | + | else |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment "looks good: setup program gives exitcode 1641" | + | comment "looks good: setup program gives exitcode 1641" |
| - | comment " | + | comment " |
| - | else | + | else |
| - | if ($ExitCode$ = " | + | if ($ExitCode$ = " |
| - | comment "looks good: setup program gives exitcode 3010" | + | comment "looks good: setup program gives exitcode 3010" |
| - | comment " | + | comment " |
| - | else | + | else |
| - | logError " | + | logError " |
| - | isFatalError | + | isFatalError |
| - | endif | + | endif |
| - | endif | + | endif |
| - | endif | + | endif |
| endif | endif | ||
| </ | </ | ||
userspace/wps-office.1557921444.txt.gz · Last modified: (external edit)
