Page 1 of 1
Waptagent and wapt-get.ini
Published: April 20, 2016 - 3:19 PM
by eduret
Hello,
I'm trying to configure the console settings (co-located with the server) so that the "generated" waptagent installs a custom wapt-get.ini file (the multi-repository settings) on the target workstation.
Do you have any tips on how to achieve this without using a meta-executable?
Thank you for your replies.
ED
PS: wapt server 1.3.5.0.1495 on Windows 2008R2.
Re: Waptagent and wapt-get.ini
Published: April 20, 2016 - 4:27 PM
by sfonteneau
You should be able to modify this in:
I'm not very familiar with Inno Setup, but at first glance it's in the [ini] section of the file
You can then restart agent creation
Simon
Re: Waptagent and wapt-get.ini
Published: April 20, 2016 - 7:55 PM
by Floflobel
Code: Select all
def install():
print('Disable the skip button in waptexit')
waptget = open("c:\wapt\wapt-get.ini", "w")
waptget.write("[global]\nwapt_server=http://wapt\nrepo_url=http://wapt/wapt\nuse_hostpackages=1\nwaptupdate_task_period=1\nwaptupdate_task_maxruntime=360\nallow_cancel_upgrade=0")
waptget.close()
Here is an example of how to edit the wapt-get.ini file
Re: Waptagent and wapt-get.ini
Published: April 20, 2016 - 11:34 PM
by sfonteneau
For multi-repo:
https://dev.tranquil.it/wiki/WAPT_-_Mul ... A9p%C3%B4t
To return to the example presented here of the multi-repo (if you are indeed referring to the multi-repo):
https://wiki.lesfourmisduweb.org/index. ... -Repo_Wapt
In this example, we'll add the tranquilit repository and the fourmisduweb
To modify the parameters entered by waptagent.exe, you must therefore modify the file c:\wapt\waptsetup\waptsetup.iss and modify the ini section as follows:
Code: Select all
[INI]
Filename: {app}\wapt-get.ini; Section: global; Key: wapt_server; String: {code:GetWaptServerURL};
Filename: {app}\wapt-get.ini; Section: global; Key: repo_url; String: {code:GetRepoURL};
Filename: {app}\wapt-get.ini; Section: global; Key: use_hostpackages; String: "1";
Filename: {app}\wapt-get.ini; Section: global; Key: repositories; String: "lesfourmisduweb,tranquilit";
Filename: {app}\wapt-get.ini; Section: lesfourmisduweb; Key: repo_url; String: "https://wapt.lesfourmisduweb.org/wapt";
Filename: {app}\wapt-get.ini; Section: tranquilit; Key: repo_url; String: "https://wapt.tranquil.it/wapt";
Then restart the creation of a Wapt agent from the console
You can also do it with Floflobel's method by creating a package that will modify the file's parameters.
Code: Select all
def install():
inifile_writestring(WAPT.config_filename,'global','repositories','lesfourmisduweb,tranquilit')
inifile_writestring(WAPT.config_filename,'lesfourmisduweb','repo_url','https://wapt.lesfourmisduweb.org/wapt')
inifile_writestring(WAPT.config_filename,'tranquilit','repo_url','https://wapt.tranquil.it/wapt')
Re: Waptagent and wapt-get.ini
Published: April 21, 2016 - 9:31 AM
by eduret
Thanks for the replies, I'll test modifying the .iss file and regenerate the client.
ED
Re: Waptagent and wapt-get.ini
Published: April 25, 2016 - 10:13 AM
by eduret
Hello,
the modification to waptsetup.iss works perfectly!
Thank you.
ED