Page 1 of 1
Wapt Client Update
Published: April 10, 2017 - 1:24 PM
by cedre2
Hello,
I'm trying to update the Wapt-get.ini file on all the workstations in my network to include `
allow_cancel_upgrade=0`, which allows me to force updates when the PC is shut down.
To do this, I modify the .ini file directly on the server and then generate a client via the console, which automatically creates a new private repository called "client upgrade". However, when I deploy it to the client PCs, the Wapt-get.ini file isn't modified, and the user can still cancel the updates.
Any ideas?
Re: Wapt Client Update
Published: April 10, 2017 - 2:49 PM
by sfonteneau
Hello,
the WaptAgent doesn't include this configuration, or you need to modify the file... c:\wapt\waptsetup\waptsetup.iss Then regenerate an agent.
The simplest solution is still to push the configuration after installation; here's an example package that does it:
https://wapt.tranquil.it/package_detail ... 6_all.wapt
Simon Fonteneau
Re: Wapt Client Update
Published: April 11, 2017 - 2:04 PM
by cedre2
Thank you so much!
This is exactly what I needed; I hadn't seen this package.
Thank you!

Re: Wapt Client Update
Published: April 11, 2017 - 3:16 PM
by cedre2
sfonteneau
--- > I tested your package before deploying it, it works, but I don't have "allow_cancel_upgrade=0" but "notify_user=0" in the wapt-get.ini file. Is that the same thing? This "notify_user" doesn't appear in any documentation on the site.
Re: Wapt Client Update
Published: April 11, 2017 - 3:55 PM
by agauvrit
Good morning,
"
allow_cancel_uprade" is not defined in the list of attributes of wapt-conf-policy:
Code: Select all
print('Modify max_gpo_script_wait')
inifile_writestring(WAPT.config_filename,'global','max_gpo_script_wait',180)
print('Modify Preshutdowntimeout')
inifile_writestring(WAPT.config_filename,'global','pre_shutdown_timeout',180)
print('Disable Hyberboot')
inifile_writestring(WAPT.config_filename,'global','hiberboot_enabled',0)
print('Disable Notify User')
inifile_writestring(WAPT.config_filename,'global','notify_user',0)
However, you can modify the package to define it.
Code: Select all
print('Disable Upgrade Cancellation')
inifile_writestring(WAPT.config_filename,'global','allow_cancel_upgrade',0)
That should meet your expectations.
knowing that this "notify_user" does not appear in any documentation on the site.
Indeed, it is not in the WAPT documentation; this will be rectified soon
Sincerely,
Alexander
Re: Wapt Client Update
Published: April 12, 2017 - 8:17 AM
by cedre2
Thank you, yes, that's exactly what I did.
I was misled by the package description which indicated that "allow_cancel_upgrade = 0" was set, without bothering to check the script beforehand.
Thank you very much for your quick response!