Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:wps-office [2019/05/20 14:42]
Thomas_H [setup.ins]
userspace:wps-office [2019/05/20 14:53]
Thomas_H
Line 6: Line 6:
  
 Special thanks to Mossi, [[https://​www.hofmann-robert.info/​computer/​2017/​09/​19/​selbstextrahierendes-archiv-mit-7-zip-erstellen.html | Robert Hofmann]] \\ Special thanks to Mossi, [[https://​www.hofmann-robert.info/​computer/​2017/​09/​19/​selbstextrahierendes-archiv-mit-7-zip-erstellen.html | Robert Hofmann]] \\
 +Special thanks to Simon Monteneau [[https://​wapt.lesfourmisduweb.org/​details-package?​package=smp-wpsoffice-free_10.2.0.7587-4_all.wapt | 
 +Dépôt WAPT Les Fourmis Du Web ]] (Merci beaucoup) \\
  
 The installation-files can be downloaded from: http://​wdl1.pcfg.cache.wpscdn.com/​wpsdl/​wpsoffice/​download/​10.2.0.7646/​WPSOffice_10.2.0.7646_Free.exe//​ The installation-files can be downloaded from: http://​wdl1.pcfg.cache.wpscdn.com/​wpsdl/​wpsoffice/​download/​10.2.0.7646/​WPSOffice_10.2.0.7646_Free.exe//​
Line 17: 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 288: Line 300:
 DefVar $ExitCode$ DefVar $ExitCode$
 DefVar $NTVersioninfo$ DefVar $NTVersioninfo$
-DefVar $uninstallstring$ 
 DefVar $Parameter$ DefVar $Parameter$
 DefVar $Picture$ DefVar $Picture$
Line 298: Line 309:
 ; ---------------Define some Variables here ---------------------- ; ---------------Define some Variables here ----------------------
 Set $ProductId$ ​      = "​WPS-Office"​ Set $ProductId$ ​      = "​WPS-Office"​
-Set $Picture$       ​= "​wps-office.jpg"​ +Set $Picture$ ​        ​= "​wps-office.jpg"​ 
-Set $Version$       ​= "​10.2.0.7646"​ +Set $Version$ ​        ​= "​10.2.0.7646"​ 
-Set $UninstPrg$ ​      = "%ProgramFiles64Dir%\$ProductID$\$Version$\utility\uninst.exe+Set $UninstPrg$ ​      = "%ProgramFilesDir%\" + $ProductId+ "\$Version$\utility\uninst.exe"​ 
-Set $uninstallstring$ = "​\$UninstPrg+Set $Parameter$ ​      = "/​S"​
-Set $Parameter$  ​     = " /S"+
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 309: 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 ​" ​$ProductID$ wird entfernt."​ +        comment $ProductId+ " ​wird entfernt."​ 
- 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 " 32 Bit System"​ 
- comment ​" ​$ProductID$ wird entfernt"​ +        comment $ProductId+ " ​wird entfernt"​ 
- Sub_uninstall+        Sub_uninstall
 endif endif
    
Line 340: Line 350:
 ; http://​msdn.microsoft.com/​en-us/​library/​aa368542.aspx ; http://​msdn.microsoft.com/​en-us/​library/​aa368542.aspx
 if ($ExitCode$ = "​0"​) if ($ExitCode$ = "​0"​)
- comment "Looks good: setup program gives exitcode zero"+        ​comment "Looks good: setup program gives exitcode zero"
 else else
- comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ +        ​comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ 
- if ($ExitCode$ = "​1605"​) +        if ($ExitCode$ = "​1605"​) 
- comment "​ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."​ +                comment "​ERROR_UNKNOWN_PRODUCT ​ 1605    This action is only valid for products that are currently installed."​ 
- comment "​Uninstall of a not installed product failed - no problem"​ +                comment "​Uninstall of a not installed product failed - no problem"​ 
- else +        else 
- if ($ExitCode$ = "​1641"​) +                if ($ExitCode$ = "​1641"​) 
- comment "looks good: setup program gives exitcode 1641"​ +                        comment "looks good: setup program gives exitcode 1641"​ 
- comment "​ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."​ +                        comment "​ERROR_SUCCESS_REBOOT_INITIATED 1641    The installer has initiated a restart. This message is indicative of a success."​ 
- else +                else 
- if ($ExitCode$ = "​3010"​) +                        if ($ExitCode$ = "​3010"​) 
- comment "looks good: setup program gives exitcode 3010"​ +                                comment "looks good: setup program gives exitcode 3010"​ 
- comment "​ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."​ +                                comment "​ERROR_SUCCESS_REBOOT_REQUIRED ​ 3010    A restart is required to complete the install. This message is indicative of a success."​ 
- else +                        else 
- logError "​Fatal:​ Setup program gives an unknown exitcode unequal zero: " + $ExitCode$ +                                logError "​Fatal:​ Setup program gives an unknown exitcode unequal zero: " + $ExitCode$ 
- isFatalError +                                isFatalError 
- endif +                        endif 
- endif +                endif 
- endif+        endif
 endif endif
 </​code>​ </​code>​

QR Code
QR Code userspace:wps-office (generated for current page)