Page 1 of 1
Add the computers to a group during registration
Published: April 21, 2016 - 11:07 AM
by Floflobel
Hello,
I would like to automatically assign a computer to a group as soon as it is added to WAPT.
Is it possible to do this with a command line on the client machine?
Or from the server with a script that runs continuously?
Thank you.
Re: Adding computers to a group during registration
Published: April 22, 2016 - 12:30 AM
by sfonteneau
No method to (basically) create the host machine package
But another method amounts to much the same thing:
Following the launch of waptdeploy, you can add a:
The other solution (which amounts to the same thing) is to add a line in the [Run] section of the file C:\wapt\waptsetup\waptsetup.iss
Code: Select all
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get install groupedebase"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:groupedebase}; Description: "{cm:groupedebase}"
Don't forget to also add groupedebase to [CustomMessages]:
Code: Select all
[CustomMessages]
;English translations here
en.StartAfterSetup=Install base groupe
;French translations here
fr.StartAfterSetup=Install base groupe
;German translation here
de.StartAfterSetup=Install base groupe
Then restart the creation of a Waptagent
The problem with these two commands is that they are launched with the account that launched the waptagent (or the waptdeploy)
In itself, nothing serious, but if the installation is performed at computer startup or shutdown, it can be problematic if the `preshutdowntimeout` setting hasn't been changed on the computer. Otherwise, the installation will stop after 15 minutes
Simon
Re: Adding computers to a group during registration
Published: March 2, 2017 - 3:42 PM
by Daniel Traversa
I would also like to do something similar:
The customer settles in, the station takes the group and proceeds with the installations.
I followed this procedure to register the position in the group and perform an upgrade, but without success.
In the waptsetup.iss file:
Code: Select all
[Run]
...
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get install 08307_coudon-groupe-commun"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:groupedebase}; Description: "{cm:groupedebase}"
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get upgrade"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:upgrade}; Description: "{cm:upgrade}"
[CustomMessages]
...
en.groupedebase=Install base groupe
en.upgrade=Install
fr.groupedebase=Install base groupe
fr.upgrade=Install
de.groupedebase=Install base groupe
de.upgrade=Install
Can you help me?
THANKS.
Re: Adding computers to a group during registration
Published: March 3, 2017 - 3:38 PM
by Daniel Traversa
Isn't there an error in the order?
when I type on the post:
Code: Select all
C:\wapt>wapt-get.exe --direct apt-get install 08307_coudon-groupe-commun
I have :
THANKS
Re: Adding computers to a group during registration
Published: March 3, 2017 - 4:02 PM
by Daniel Traversa
if I use the group registration command:
Code: Select all
wapt-get install 08307_coudon-groupe-commun
The registration process on the workstation goes smoothly, then the packages are downloaded and installed.
On the other hand, nothing happens on the console: the workstation remains without a group, nothing is visible in the ongoing tasks and in General there is no monitoring of the installation.
Obviously, if we launch an update of the available packages, it will update itself.
Is this normal operation? If so, it's not very practical for ensuring the installation is working correctly after restoring a workstation.