Page 1 of 1

[SOLVED] Error deploying an .exe package

Published: July 15, 2022 - 3:27 PM
by Damien B
Good morning,

I am currently testing the WAPT Discovery solution in a virtualized environment.
The information is as follows:
WAPT server (v.2.2.1.11957) -> on a CentOS 7 server
WS2016 -> Active Directory Server where I manage administration using the WAPT console
W10 -> Client workstation allowing me to test package deployment.

Let me explain my problem: I want to set up an application catalog on my clients (self-service), and it works well with the applications offered from your repository.
We have executable applications that were made internally, so I use the package creation wizard to deploy my executable.

The setup.py file is as follows (very simple):

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():

    print("Installing: PHENIX_Config_V1500_Setup.exe")
    install_exe_if_needed('PHENIX_Config_V1500_Setup.exe')

When using PyScripter, the application runs correctly (WAPT: Install), therefore the package should normally work when I want to install it on the self-service side.
I've tried several approaches for the setup.py file, but nothing works, the same problem persists on the client side.

The client-side logs are attached.
waptlog.rar
Client-side logging
(1.88 KB) Downloaded 159 times
I see this message in the logs, it might be the cause, but how do I fix it: [waptcore WaptTaskManager 5548] WARNING [WinError 5] Access denied: 'C:\\Windows\\TEMP\\waptyegf8n07\\PHENIX_Config_V1500_Setup.exe'

Can you help me understand what's wrong with what I've done?.
Thank you in advance for your help!
I remain fully available.

One more quick questionI don't think my executable can install silently.
Can you confirm that it is still possible for it to be installed via self-service?

Sincerely,

Re: Error deploying an .exe package

Published: July 18, 2022 - 6:28 PM
by dcardon
The most likely explanation is that your antivirus software is checking the .exe file when Wapt tries to launch it.

Could you please check your antivirus software?

Regards,

Denis

Re: Error deploying an .exe package

Published: July 20, 2022 - 11:22 AM
by Damien B
Good morning,

Thank you for your response.
So I disabled Windows Defender on the machine as well as UAC.
We keep making the same mistake.

You confirm to me that it is possible to install a package in a non-silent way both by deploying a package from the WAPT console and from self-service.

My colleague and I believe that the executable launches correctly but in the background, without us being able to press "next" to finalize the installation, the error that comes up is timeout, it seems that it is waiting for us to finalize its installation.

Do you have any ideas on how to solve this type of problem?

For installing the executable in non-silent mode, the setup.py file is as follows:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print("Installing: PHENIX_Config_V1500_Setup.exe")
    run('PHENIX_Config_V1500_Setup.exe',timeout=160)

We increased the timeout to 600, but manual installation takes 40 seconds.

Thank you in advance for your reply.
Sincerely,

Re: Error deploying an .exe package

Published: July 20, 2022 - 2:16 PM
by dcardon
Hello,

WAPT has no way of knowing what to click...

If the installer doesn't have a silent flag, you either have to use AutoIt (but it's ugly), or contact the developer to fix the problem with them (much better, but not always easy), or do the installation locally and package the result. There are helpers to recreate the icons in the menus and environment variables if needed.

Given the software, I think it might be worth contacting the developer.

Regards,

Denis

Re: Error deploying an .exe package

Published: July 20, 2022 - 3:22 PM
by Damien B
Thank you for your quick reply.

If I understand correctly, through WAPT, we can only deploy applications using
silent installation switches, or by scripting the installation sequence.

There is no way to launch the installation with administrator privileges and then prompt the user to finalize the installation
(an installation window appears on the user's screen)

Sincerely,

Re: Error deploying an .exe package

Published: July 20, 2022 - 3:36 PM
by dcardon
Damien B wrote: July 20, 2022 - 3:22 PM Thank you for your quick reply.

If I understand correctly, through WAPT, we can only deploy applications with
silent installation switches, or by scripting the installation sequence.
Yes, that's the principle with all deployment tools :-) Fortunately, the vast majority of apps have silent install flags (this is less true for uninstalls, however). For the rest, you need to do some scripting.
There is no way to launch the installation with administrator privileges and then prompt the user to finalize the installation.
(An installation window appears on the user's screen.)
That would be risky, because if there's a way to interact with the installer, all the operations would be performed with Admin/Local System privileges...

Sincerely,

Denis