Page 1 of 1

[SOLVED] Creating a package without an installer

Published: February 14, 2018 - 11:49 AM
by Nicoge
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!

Re: Creating a package without an installer

Published: February 14, 2018 - 4:38 PM
by gaelds
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():
  

Re: Creating a package without an installer

Published: February 15, 2018 - 10:25 PM
by vcardon
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

Re: Creating a package without an installer

Published: February 20, 2018 - 5:17 PM
by Nicoge
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.

Re: Creating a package without an installer

Published: February 20, 2018 - 5:23 PM
by agauvrit
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

Re: Creating a package without an installer

Published: February 26, 2018 - 10:48 PM
by dcardon
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.