Page 1 of 1

Agent installation and package update

Published: Dec 13, 2017 - 10:43
by hasop
Hello,
I'm currently learning about WAPT and, despite the documentation, I can't find answers to these questions:
I installed the agent on a few test machines using FusionInventory's remote deployment (which we might eventually replace with WAPT if it proves successful).
Initially, I wanted to install it using waptdeploy, but an error calling a JSON URL prevented me from doing so.
So, I ran the command "waptagent.exe /VERYSILENT /MERGETASKS=""useWaptServer""" on the different machines, and it works fine. I can then deploy packages to these machines.

However, I don't have a notification icon on the client machines. Therefore, users don't have access to the features described in the documentation (running inventory updates, etc.).
What am I missing?

Furthermore, package installations only occur when I trigger them from the console. I would have liked to be able to give users control over the installation, and at worst, have it happen when the machine is shut down (or perhaps at a specific time of low activity, for example). This last point doesn't seem to be working. Is this related to the lack of a notification icon?

Thank you in advance for your help.

Re: Agent installation and package update

Published: Dec 13, 2017 - 11:55 AM
by Niaha
Hi,

I had the same problem as you about 20 minutes ago, and you're partly responsible for finding the solution.

Follow the tutorial, and instead of "--hash3FHGH°05°Y54...", use /VERYSILENT.

I had no problems installing or getting the information back.

Best regards,

Re: Agent installation and package update

Published: Dec 13, 2017 - 12:11
by agauvrit
Good morning,

The list of tasks to pass as arguments to waptdeploy is in the online documentation, but it's just a little further down the page: https://www.wapt.fr/fr/doc-1.5/Configur ... waptdeploy

The option you are looking for is:

Code: Select all

autorunTray
This was pointed out to us last week at the Paris Open Source Summit; we're going to reorganize this page
Furthermore, package installations only occur when I initiate them from the console. I would have preferred to allow users to control the installation and, at the very least, have it run when the machine is shut down (or perhaps at a specific time of low activity). This last point doesn't seem to be working. Is this related to the lack of a notification icon?
No, this point is related to waptexit.exe, the script that runs when the machine shuts down, only on workstations Windows Pro/Enterprise

By any chance, are the machines equipped with Windows Home?

https://www.wapt.fr/fr/doc-1.5/Frequent ... -lance-pas

Sincerely,

Alexander

Re: Agent installation and package update

Published: Dec 14, 2017 - 1:34 PM
by hasop
I tried installing again using wapdeploy and here's the complete result:

Code: Select all

C:\Users\XXXXXXXX>"D:\Downloads\waptdeploy.exe" --minversion=1.3.13.0 --wait
=15 --waptsetupurl="http://sw-wapt-test/wapt/waptagent.exe" --tasks="autorunTray
,installService,installredist2008,autoUpgradePolicy" --hash=30e783xxxxxxxxxxxe6
WAPT version:
WAPT required version: 1.3.13.0
Wapt agent path: C:\Users\XXXXXXXX\AppData\Local\Temp\waptagent.exe
Wget new waptagent from http://sw-wapt-test/wapt/waptagent.exe
SHA256 hash of downloaded setup file: 30e783xxxxxxxxxxxe6
OK : Hash of waptagent match expected hash.
Got version: 1.3.13.0
Unable to speak with waptservice... continue (Unable to download: http://127.0.0
.1:8088/tasks.json HTTP Status: 0)

Install ...
Launching C:\Users\XXXXXXXX\AppData\Local\Temp\waptagent.exe /VERYSILENT /MERGET
ASKS=""autorunTray,installService,installredist2008,autoUpgradePolicy""
Install OK : 1.3.13.0
Cleanup...
Because there is an error, the return code should not be 0 and is therefore considered a failure. However, the agent appears to be running, but there is no notification icon.

Furthermore, we are using Windows 7 Pro.
How can I check if waptexit is properly installed?

Could the problem causing the absence of a notification icon also prevent waptexit from executing?

Thank you for your help

Re: Agent installation and package update

Published: Dec 18, 2017 - 4:17 PM
by hasop
Any ideas?

Re: Agent installation and package update

Published: Dec 18, 2017 - 8:40 PM
by sfonteneau
hasop wrote: Dec 14, 2017 - 1:34 PM I tried installing again using wapdeploy and here's the complete result:

Code: Select all

C:\Users\XXXXXXXX>"D:\Downloads\waptdeploy.exe" --minversion=1.3.13.0 --wait
=15 --waptsetupurl="http://sw-wapt-test/wapt/waptagent.exe" --tasks="autorunTray
,installService,installredist2008,autoUpgradePolicy" --hash=30e783xxxxxxxxxxxe6
WAPT version:
WAPT required version: 1.3.13.0
Wapt agent path: C:\Users\XXXXXXXX\AppData\Local\Temp\waptagent.exe
Wget new waptagent from http://sw-wapt-test/wapt/waptagent.exe
SHA256 hash of downloaded setup file: 30e783xxxxxxxxxxxe6
OK : Hash of waptagent match expected hash.
Got version: 1.3.13.0
Unable to speak with waptservice... continue (Unable to download: http://127.0.0
.1:8088/tasks.json HTTP Status: 0)



Install ...
Launching C:\Users\XXXXXXXX\AppData\Local\Temp\waptagent.exe /VERYSILENT /MERGET
ASKS=""autorunTray,installService,installredist2008,autoUpgradePolicy""
Install OK : 1.3.13.0
Cleanup...

Because there is an error, the return code should not be 0 and is therefore considered a failure. However, the agent appears to be running, but there is no notification icon.
The Wapttray simply creates a shortcut in:

Code: Select all

c:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ 
which points to: c:\wapt\wapttray.exe


Furthermore, we are using Windows 7 Pro.
How can I check if waptexit is properly installed?

If you go to:

Code: Select all

gpedit.msc
Then in:

Code: Select all

Configuration Ordinateur -> Paramètres Windows -> Script -> Arrêt du system
If wapt exit does not appear, it did not work

https://www.wapt.fr/fr/doc/Frequent-pro ... -lance-pas

hasop wrote: Dec 14, 2017 - 1:34 PM
Could the problem causing the absence of a notification icon also prevent waptexit from running?
It doesn't work the same way, so no.

I'm going to test the wapttray with waptdeploy; it's been a long time since I've tested it

Re: Agent installation and package update

Published: Dec 19, 2017 - 10:32
by hasop
After checking, everything is OK (start menu and script stopped).
The notification icon only appears after restarting the computer.

I think the error message is preventing the icon from displaying during installation.

Thank you for your help.