Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
userspace:wps-office [2019/05/20 14:42]
Thomas_H [setup.ins]
userspace:wps-office [2019/05/20 14:43]
Thomas_H [uninstall.ins]
Line 288: Line 288:
 DefVar $ExitCode$ DefVar $ExitCode$
 DefVar $NTVersioninfo$ DefVar $NTVersioninfo$
-DefVar $uninstallstring$ 
 DefVar $Parameter$ DefVar $Parameter$
 DefVar $Picture$ DefVar $Picture$
Line 298: Line 297:
 ; ---------------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 307:
    
 ; 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 338:
 ; 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)