Launch a Batch file

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
knpc
Messages: 63
Registration: Nov. 20, 2015 - 4:40 p.m.

March 16, 2016 - 7:49 PM

Hello,

is it possible to launch a .bat file that would launch two Antidote MSI packages via WAPT? The goal is that I have users with older versions of Antidote that need updating, but not all of their computers have Antidote installed.

So, I'd like to use WAPT to target the .bat file to the specific computers they need to run.

Is this feasible? Alternatively, could someone create

an Antidote package with: - silent installation
- forced installation within the software settings
- automatic answers to questions?

My .bat file already does all of that

Thanks everyone,

Knpc
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 17, 2016 - 4:43 PM

It's perfectly possible to launch a silent installation from WAPT. Do you have the settings for this software?

Can you tell me what's in the batch file?
knpc
Messages: 63
Registration: Nov. 20, 2015 - 4:40 p.m.

March 17, 2016 - 7:34 PM

Here is its content

: call start "Antidote" "\\mtsvp-hv-fch-01\Logiciels$\00 - Software Bank\04 - Various Applications\Antidote\Antidote HD v9\Installation Kit\vcredist_x64.exe" /q /norestart

call choice /T 20 /D o (waits for installation to finish)

call start "Antidote" "\\mtsvp-hv-fch-01\Logiciels$\00 - Software Bank\04 - Various Applications\Antidote\Antidote HD v9\Installation Kit\vcredist_x86.exe" /q /norestart

call choice /T 20 /D o (waits for installation to finish)

msiexec /qn /i "\\mtsvp-hv-fch-01\Logiciels$\00 - Software Bank\04 - Various Applications Miscellaneous\Antidote\Antidote HD v9\Complete Installation Kit\Antidote9.msi" TRANSFORMS="\\mtsvp-hv-fch-01\Software$\00 - Software Bank\04 - Miscellaneous Applications\Antidote\Antidote HD v9\Installation Kit\Network.mst"

msiexec /qn /i "\\mtsvp-hv-fch-01\Software$\00 - Software Bank\04 - Miscellaneous Applications\Antidote\Antidote HD v9\Complete Installation Kit\Antidote9-French-Module.msi"

I separated each line to make it clearer; our network path is quite long. :-)
(Comment in parentheses)

Thank you
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 18, 2016 - 5:21 PM

You simply need to generate the package using the command `wapt build-package`

Go to your development folder and in your file you will find setup.py

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

run(r'"\\mtsvp-hv-fch-01\Logiciels$\00 - Banque de logiciels\04 - Applications Diverses\Antidote\Antidote HD v9\Kit d'installation\vcredist_x64.exe" /q /norestart"')

Add your various MSI installation lines and you're all set
knpc
Messages: 63
Registration: Nov. 20, 2015 - 4:40 p.m.

March 18, 2016 - 9:29 PM

Thanks for your reply.

Do I generate the package from the batch file, or does wapt build-package not use a file to create the package?

each line have to start with RUN?

Can I also use `choice /T 20 /D o` as the `run` command?

Will they create the uninstallation keys during installation?

I could also create separate packages for vcredist and then one for Antidote if that's better.

Thanks,

Knpc.

PS: Are there any ready-made packages for vcredist 2013 32-bit and 64-bit?
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 21, 2016 - 08:23

Code: Select all

Je génère le paquet a partir du fichier bat ou wapt build-package n'utilise pas de fichier pour faire le paquet ?
opens a cmd tape wapt-get build-package

Code: Select all

chaque ligne doit commencer par un RUN ?
Yes, this allows you to launch the installation like in a batch file

Code: Select all

est ce que je peux mettre aussi choice /T 20 /D o en run ?
I don't know what your code refers to, taking a break?

Code: Select all

Pour les clef de désinstallation ils vont les créer lors des installations ?
The best thing to do is start with the installation; we'll see about uninstalling it later

Code: Select all

Je peux aussi faire des paquets séparé pour les vcredist puis en faire un pour antidote si c'est mieux
Yes you can, and you add them as dependencies to Antidote

Code: Select all

PS : existe t il des paquets tout pret pour les vcredist 2013 32 et 64 bits ?
Check out the Wapt repo, I think you'll find what you're looking for

I strongly advise you to read the documentation which explains a few details.
knpc
Messages: 63
Registration: Nov. 20, 2015 - 4:40 p.m.

March 22, 2016 - 00:26

Hi,

yes, `choice` is for creating a delay.

When you tell me "type `wapt-get build-package`", does the package name change afterward?

Thanks for your help, I'll test it on Tuesday if I have time

. knpc
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

March 22, 2016 - 11:11

A timeout is pointless on WAPT; the packages install one after the other.

I gave you the beginning of the command. Normally, you have to specify the path to the executable.
But as I said before, everything is explained in the documentation.
Locked