[SOLVED] Error deploying an .exe package

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
Damien B
Messages: 3
Registration: July 15, 2022 - 11:36

July 15, 2022 - 3:27 PM

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,
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 18, 2022 - 6:28 PM

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
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
Damien B
Messages: 3
Registration: July 15, 2022 - 11:36

July 20, 2022 - 11:22

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,
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 20, 2022 - 2:16 PM

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
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
Damien B
Messages: 3
Registration: July 15, 2022 - 11:36

July 20, 2022 - 3:22 PM

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,
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 20, 2022 - 3:36 PM

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
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
Locked