Wapt Client Update

Share your experience and thoughts about WAPT here / Come here and talk about your experience with Wapt, your opinion and your wishes
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided 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 (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Locked
cedar2
Messages: 10
Registration: Apr 10, 2017 - 1:18 p.m.

April 10, 2017 - 1:24 PM

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?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 10, 2017 - 2:49 PM

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
cedar2
Messages: 10
Registration: Apr 10, 2017 - 1:18 p.m.

April 11, 2017 - 2:04 PM

Thank you so much!

This is exactly what I needed; I hadn't seen this package.

Thank you! :)
cedar2
Messages: 10
Registration: Apr 10, 2017 - 1:18 p.m.

April 11, 2017 - 3:16 PM

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.
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

April 11, 2017 - 3:55 PM

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
cedar2
Messages: 10
Registration: Apr 10, 2017 - 1:18 p.m.

April 12, 2017 - 8:17 AM

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!
Locked