Page 1 of 1
[RESOLVED] WAPT Agent Modification
Published: Dec 3, 2019 - 9:26 AM
by Hugo
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
Re: WAPT Agent Modification
Published: Dec 3, 2019 - 9:39 AM
by htouvet
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
Re: [RESOLVED] WAPT Agent Modification
Published: Dec 3, 2019 - 10:23
by agauvrit
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