Page 1 of 1

[SOLVED] tis-java8 error

Published: October 3, 2018 - 3:39 PM
by celine18
Good morning,

Architecture
I am on version 1.6.2.6 on a Debian Stretch server.
The console is installed on a Windows 10 system.

Issue
I downloaded the tis-java8 package to install it on Windows 7 and 10 PCs. Instead of installing Java, it uninstalls it if it's already installed and leaves an error on the console:

Code: Select all

=================================================================================================
Ligne de Commande : install "c:\waptdev\tis-java8-wapt\WAPT\.."
Installing WAPT files c:\waptdev\tis-java8-wapt
2018-10-03 14:28:57,801 WARNING get_msi_properties : error for string 100112728
Installation de Java version : 8.0.1810.13
Checking old java 8...
2018-10-03 14:28:58,039 WARNING get_msi_properties : error for string 100048816
2018-10-03 14:28:58,262 WARNING get_msi_properties : error for string 100050064
2018-10-03 14:28:58,385 WARNING get_msi_properties : error for string 100065800
2018-10-03 14:29:07,811 CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "jre1.8.0_181.msi" ' returned non-zero exit status 1603.
Output::
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3512, in install_wapt
    exitstatus = setup.install()
  File "c:\waptdev\tis-java8-wapt\setup.py", line 36, in install
    install_msi_if_needed(msi,killbefore=['iexplore.exe','jushed.exe'])
  File "C:\Program Files (x86)\wapt\common.py", line 3471, in new_func
    return func(*args,**kwargs)
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 3913, in install_msi_if_needed
    run(r'msiexec /norestart /q /i "%s" %s' % (msi,props),accept_returncodes=accept_returncodes,timeout=timeout,pidlist=pidlist)
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1044, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "jre1.8.0_181.msi" ' returned non-zero exit status 1603.
Output:

FATAL ERROR : CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "jre1.8.0_181.msi" ' returned non-zero exit status 1603.
Output:
Exit code:  3
=================================================================================================
I haven't made any changes to the base package. I don't see where the problem could be coming from.
I have already installed other packages from the wapt store without any problems.

Does anyone have any leads?
Thanks in advance.

Re: Error tis-java8

Published: October 3, 2018 - 4:25 PM
by sfonteneau

Re: Error tis-java8

Published: October 3, 2018 - 8:22 PM
by dcardon
celine18 wrote: Oct 3, 2018 - 3:39 PM Hello,

Problem
I downloaded the tis-java8 package to install on Windows 7 and 10 PCs. Instead of installing Java, it uninstalls it if it's already installed and leaves an error on the console:
The Java package uninstalls older versions of Java before installing the new one; this is the safest method to avoid unstable installations. The package crashed during installation.
celine18 wrote: Oct 3, 2018 - 3:39 PM

Code: Select all

...
2018-10-03 14:29:07,811 CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "jre1.8.0_181.msi" ' returned non-zero exit status 1603.
I haven't made any changes to the base package. I don't see where the problem could be coming from.
I have already installed other packages from the wapt store without any problems.
As Simon indicated, problem 1603 can point to several things, and a machine restart should resolve the issue.

Do you happen to have any software that uses Java on your machine? During uninstallation and installation, we're careful to close browsers (for the plugin) and the Java update system, but we don't kill the java.exe or javaw.exe files... If that's the case, we might need to add it.

If you allow the installations to complete after the computer is shut down, normally the user programs should no longer be running and this problem should not occur.

Sincerely,

Denis

Re: Error tis-java8

Published: October 5, 2018 - 9:54 AM
by celine18
Hello everyone,

Thank you for your replies.
I tested it on a machine that didn't have Java installed, and it works.
However, on PCs where it's an update, the package still won't install, even after a reboot. On the other hand, if I run the installation manually on the PC, I have no problem.

I finally found the solution after several unsuccessful attempts.
I simply had to delete the C:\Program Files (x86)\Java directory, which wasn't completely removed by the uninstallation performed by the tis-java8 package. I
might consider adding this to the script for future updates.

Best regards,
Céline

Re: [SOLVED] tis-java8 error

Published: October 5, 2018 - 9:14 PM
by sfonteneau

Code: Select all

               
               if isdir(makepath(programfiles64,'Java','jre' + get_msi_properties(msi)['JDK_VERSION'])):
                        killalltasks('iexplore.exe')
                        killalltasks('jushed.exe')
                        remove_tree(makepath(programfiles64,'Java','jre' + get_msi_properties(msi)['JDK_VERSION']))
I had integrated this into my code for Wapt Java, but I didn't put it on the TIS store; I was a little worried about the side effects

Re: [SOLVED] tis-java8 error

Published: February 20, 2020 - 8:40 AM
by corriou
Hello,

I encountered the same problem and the solution provided (deleting the directory manually or using the code) is effective :D .

Regards,