Page 1 of 1

WADS - Force Wapt upgrade after deployment

Published: May 18, 2022 - 11:28
by smandel
Hello,

I'm trying to find a way to automatically run `wapt-get update` and `wapt-get upgrade` after a WADS deployment so that the machine retrieves and installs all packages assigned to its OU.
I added these commands to the post-install script in the deployment configuration, but it doesn't seem to work...
Do you have a solution?

Thanks! :D

Re: WADS - Force Wapt upgrade after deployment

Published: May 18, 2022 - 11:55 AM
by sfonteneau
If you want to install specific packages and wait until they are all installed:

Code: Select all

ping 127.0.0.1 -n 30
net stop waptservice
"C:\Program Files (x86)\wapt\wapt-get.exe" update 
"C:\Program Files (x86)\wapt\wapt-get.exe" install groupe_de_base_logiciel
 net start waptservice
If you just want to perform an upgrade (because the packages come from an OU):

Code: Select all

start  cmd /c ping 127.0.0.1 -n 30  ^& start "" "C:\Program Files (x86)\wapt\waptexit.exe"
We do this in a start statement and wait 30 seconds because otherwise the machine doesn't yet know the ORs it belongs to
In this specific case, the machine relinquishes control because it installs the packages in the background and does not wait for all packages to be installed

Re: WADS - Force Wapt upgrade after deployment

Published: May 18, 2022 - 1:43 PM
by smandel
It works!
Thanks for the tip and the quick reply. 👍