Page 1 of 1

[SOLVED] Importing a PuTTY configuration as a .reg file into a WAPT package

Published: June 15, 2020 - 11:53
by Fubinix
Hello, I've been doing an internship for a few days at a town hall that uses PuTTY and wants to implement WAPT.
I've been asked to be able to export a PuTTY configuration in order to modify the WAPT package that will be deployed.
The only way seems to be to export the PuTTY .reg file and "execute" it on the client machine.
I'm wondering how to do this silently using WAPT.
Do I need to create an external package that depends on the PuTTY package and executes the .reg file?
Or can I directly access the PuTTY package?
I've read a few lines of code containing the "registry_readstring" function, but it only seems to modify the key, not import a .reg file?
I've just discovered the basics of the registry, so I might be misunderstanding this concept and I'm open to any suggestions.
Thank you very much :-)

Re: Importing a PuTTY configuration as a .reg file into a WAPT package

Published: June 17, 2020 - 11:12 PM
by dcardon
If the configurations are in the user hive (HKCU), you need to load the registry keys in a session-setup. If the keys are in the system database (HKLM), you need to load them in the def install() function. Search "wapt registry" on Google. That should provide some inspiration :-)

Re: Importing a PuTTY configuration as a .reg file into a WAPT package

Published: June 18, 2020 - 09:33
by Fubinix
Thank you so much, I managed to do what I wanted to do! :D