deployment of a "homemade" executable

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available 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, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
vandatt
Messages: 10
Registration: Nov 30, 2018 - 11:44

February 22, 2019 - 11:14

Hello,

I want to deploy a batch file to all the PCs in my network. However, I know that deploying a batch script isn't possible (only executable and msi files). So, I converted my batch file to an executable. It works perfectly when I run it locally, but when I try to deploy it, the following error appears:
ERROR for [package_name] (=0-1): ERROR (I have no other error information).
My program is designed to modify registry keys in Windows 10. Since I only have the community version of WAPT, I can't use the "session_setup" solution.

Has anyone encountered this type of problem before and can shed some light on it? :D

Sincerely,
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

February 22, 2019 - 2:41 PM

vandatt wrote: Feb 22, 2019 - 11:14 Having only the community version of WAPT, I cannot use the "session_setup" solution.
Hello vandatt,

Could you please point us to the section of the documentation that suggests "session_setup" is not available in the Community version so that we can correct it if this section of the documentation is not clear enough?

Indeed, "session_setup" is a feature available in both Community and Enterprise, and always has been.

Alternatively, in the reference documentation on setuphelpers (https://dev.tranquil.it/sphinxdocs/sour ... lpers.html), search for "registry" and you will find simpler methods to achieve your goal.

Sincerely.

Vincent
Vincent CARDON
Tranquil IT
vandatt
Messages: 10
Registration: Nov 30, 2018 - 11:44

February 25, 2019 - 8:54 AM

Hello Vincent,

Here is the link I'm referring to:

https://www.wapt.fr/fr/doc/wapt-create- ... index.html

Perhaps I misunderstood? I'm discovering your helpful solution day by day. :D
How do you deploy such a script that modifies Windows registry keys across a network of computers? Because to create a Wapt package, you have to upload an executable or .msi file and modify the .py file.
But in my case, that's not quite what I want to do.

Could you clarify? :)

Best regards.
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

February 25, 2019 - 09:19

vandatt wrote: Feb 25, 2019 - 08:54 because to create a wapt package, you have to "upload" an exe or msi and modify the .py file.
No, we upload a WAPT package. The WAPT package may or may not contain an executable or an .msi file. We can do whatever we want in setup.py.

A setup.py file can only contain configuration commands.

Go take a look at https://store.wapt.fr/store/details-tis ... 3_all.wapt

Sincerely.

Vincent
Vincent CARDON
Tranquil IT
vandatt
Messages: 10
Registration: Nov 30, 2018 - 11:44

March 5, 2019 - 09:14

Hello,
A huge thank you to everyone for your help! :D
Here is part of my batch script converted to Python:

def install():
registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate', r'WUServer', "[IP_address]", REG_SZ)
registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU', r'UseWUServer',"1", REG_DWORD)

Best regards
Locked