[SOLVED] tis-java8 error

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
celine18
Messages: 22
Registration: Oct 03, 2018 - 3:14 p.m.

October 3, 2018 - 3:39 PM

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.
Last edited by celine18 on Oct 5, 2018 - 09:56, edited 1 time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 3, 2018 - 4:25 PM

User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 3, 2018 - 8:22 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
celine18
Messages: 22
Registration: Oct 03, 2018 - 3:14 p.m.

October 5, 2018 - 9:54 AM

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 5, 2018 - 9:14 PM

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
corriou
Messages: 26
Registration: May 16, 2019 - 09:59

February 20, 2020 - 8:40 AM

Hello,

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

Regards,
Locked