[SOLVED] Creating a package without an installer

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
Nicoge
Messages: 11
Registration: February 14, 2018 - 11:45

February 14, 2018 - 11:49

Hello,

I would like to create a package to perform several configuration actions on client machines.
To do this, I would like to create a package containing only commands in a Python script, but I can't figure out how to create a package without providing an installer.

Could you help me?

Here is the version information:
WAPT Version: 1.3.13
Server: Windows Server 2016
Client (management console): Windows 10

Thank you very much!
Last edited by Nicoge on 20 Feb 2018 - 17:17, edited 1 time.
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

February 14, 2018 - 4:38 PM

Good morning,

I also don't know the command that could do that, but the simplest way is probably to copy and rename an existing package, manually modify the "WAPT/control" file, and keep only the bare minimum in setup.py:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []

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

February 15, 2018 - 10:25 PM

Go to https://wapt.tranquil.it and search for "tis-xpconfig," for example, to get inspired by the methodology.

The store includes other examples; feel free to explore and discover them.

As a reminder, the store exists primarily to provide examples to inspire your creativity in addressing your needs.

Tranquil IT has no contractual obligation regarding the content of its public store, as all packages you import into your own repository are re-signed by you. The packages we make available are generally clean and up-to-date because they are the ones we use for our clients. We disclaim all responsibility if this is not the case. It is up to you to trust your own judgment.

With WAPT, it's possible to do all sorts of things, even things beyond what we at TIS have imagined, so go ahead, and above all, don't forget to share the results of your inspiration with your colleagues and on this forum!

Best regards,

Vincent
Vincent CARDON
Tranquil IT
Nicoge
Messages: 11
Registration: February 14, 2018 - 11:45

February 20, 2018 - 5:17 PM

Hello,

thank you for the replies to my question.
However, the question was more about how to create a basic empty package with just the project and setup.py?

Currently, you can create a package from an executable or MSI file, which creates this basic package, but I haven't found a way to create a completely empty package.
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

February 20, 2018 - 5:23 PM

Command-line quick-hack technique

Code: Select all

wapt-get make-group-template test-monpaquetvide
Next, in the control file, modify the value "section"

https://www.wapt.fr/fr/doc-1.5/Creation ... er-control

And there you have it, an empty package. All you have to do now is copy and paste a setup.py file and empty its contents

Alexander
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 26, 2018 - 10:48 PM

Hello Nicoge,
Nicoge wrote: Feb 20, 2018 - 5:17 PM Thank you for the answers to my question.
However, the question was more about how to create a basic empty package with just the project and setup.py?

Currently, you can create a package from an executable or msi file, which creates this basic package, but I haven't found a way to create a completely empty package.
With WAPT 1.5, you can simply run the make-template command with a package name and it will create an empty package with that name.
wapt-get make-template my-empty-package

Sincerely,

Denis

PS: WAPT 1.5 RC1 should be released tomorrow.
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked