Page 1 of 1

deployment of a "homemade" executable

Published: February 22, 2019 - 11:14 AM
by vandatt
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,

Re: Deployment of a "homemade" executable

Published: February 22, 2019 - 2:41 PM
by vcardon
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

Re: Deployment of a "homemade" executable

Published: February 25, 2019 - 8:54 AM
by vandatt
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.

Re: Deployment of a "homemade" executable

Published: February 25, 2019 - 09:19
by vcardon
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

Re: Deployment of a "homemade" executable

Published: March 5, 2019 - 09:14
by vandatt
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