[RESOLVED] WAPT Agent Modification

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
Hugo
Messages: 6
Registration: December 2, 2019 - 4:54 PM

December 3, 2019 - 9:26 AM

Hello,

I just installed WAPT in my infrastructure and I would like to know if it's possible to modify the WAPT Agent package to remove certain services like WAPTtray or WPAT console, for example.
This would allow me to keep only software installation and updates when the machine is shut down or when the administrator forces them from the console.

WAPT Community 1.7
Server: Debian 9
Client machines: Windows 10 and Windows 7
Regards
Last edited by Hugo on Dec 3, 2019 - 10:06, edited 1 time.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

December 3, 2019 - 9:39 AM

Yes, it's entirely possible.
You need to modify the installer's innosetup source files before compiling it.
Comment out (with a semicolon at the beginning of each line) the lines in the wapt\waptsetup\*.iss files that you don't want, then compile from the console.


waptconsole:
https://github.com/tranquilit/WAPT/blob ... on.iss#L36
https://github.com/tranquilit/WAPT/blob ... n.iss#L214

wattray:
https://github.com/tranquilit/WAPT/blob ... pt.iss#L82
https://github.com/tranquilit/WAPT/blob ... t.iss#L206
https://github.com/tranquilit/WAPT/blob ... t.iss#L211
Tranquil IT
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

December 3, 2019 - 10:23

I am replying here, as a similar request was made to us by email yesterday.

It is possible to remove waptself.exe from the agent build by commenting it out in the file C:\Program Files (x86)\wapt\waptsetup\common.iss :

Code: Select all

    Ligne 50 :      ;Source: "..\waptself.exe"; DestDir: "{app}"; Flags: ignoreversion
    Ligne 217 :     ;Name: "{group}\{cm:WAPTSelf}"; Filename: "{app}\waptself.exe"; WorkingDir: "{app}"
Regarding waptexit.exe, if you want to use the update when shutting down the workstation, you must leave it in the agent; you have no choice.

If you wish to remove the console, comment in the file C:\Program Files (x86)\wapt\waptsetup\common.iss :

Code: Select all

    Ligne 36        ; Source: "..\waptconsole.exe"; DestDir: "{app}"; Flags: ignoreversion
    Ligne 37 :      ; Source: "..\waptconsole.exe.manifest"; DestDir: "{app}";
Then restart the agent build in the WAPT console and you will have a lightweight WAPT agent.

Sincerely,

Alexander
Locked