Page 1 of 1

Launch a Batch file

Published: March 16, 2016 - 7:49 PM
by knpc
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

Re: Launching a Batch File

Published: March 17, 2016 - 4:43 PM
by Floflobel
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?

Re: Launching a Batch File

Published: March 17, 2016 - 7:34 PM
by knpc
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

Re: Launching a Batch File

Published: March 18, 2016 - 5:21 PM
by Floflobel
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

Re: Launching a Batch File

Published: March 18, 2016 - 9:29 PM
by knpc
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?

Re: Launching a Batch File

Published: March 21, 2016 - 08:23
by Floflobel

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.

Re: Launching a Batch File

Published: March 22, 2016 - 00:26
by knpc
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

Re: Launching a Batch File

Published: March 22, 2016 - 11:11
by Floflobel
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.