MSI package update

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
nico62100
Messages: 2
Registration: Sep 14, 2021 - 09:49

September 14, 2021 - 10:20

Good morning,

I'm trying to update an MSI package (it's Flowcode, https://flowcode.co.uk/download/ )

(The previous version of the package is correctly installed with wapt)

The line:

Code: Select all

install_msi_if_needed('FlowcodeV9_Installer.msi')
It gives me an error; in fact, if the software is already installed, it does not update it. I do not get an error when the old version is not installed.

I imagine Wapt can't detect that the versions differ, or have I forgotten an argument? I tried adding:

Code: Select all

install_msi_if_needed('FlowcodeV9_Installer.msi', remove_old_version=true)
and I also tried adding a def update_package() section, but it didn't change anything.

Thank you for your help ;)

Nicolas

(WAPT 1.3.5 and workstations running Win10 Education)
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

September 14, 2021 - 5:44 PM

WAPT 1.3.5 ?

I kindly suggest you update, as you won't find many people with answers to your question.
Vincent CARDON
Tranquil IT
nico62100
Messages: 2
Registration: Sep 14, 2021 - 09:49

September 15, 2021 - 09:11

Thank you for your reply.

Unfortunately, I don't have access to the server; otherwise, I would have updated it. :roll:
Locked