[Solved] Creating Flowcode v6 package

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
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 6, 2017 - 4:23 PM

Hello,

I created a new package that silently installs Flowcode v6 without any issues and executes the software license activation command. However, this command isn't completely silent, and consequently, the package installation times out after 300 seconds with output.

The software is still fully functional and activated, so is it possible to accept this exception to prevent an error from being reported to the WAPT server? The activation command is executed within a `run()` function.

Thank you.
Last edited by olaplanche on 07 Sep 2017 - 10:17, edited 1 time.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 6, 2017 - 10:00 PM

Hello,

the software installation seems lengthy, and the 300-second default run time isn't sufficient.

You can increase the timeout by adding:

timeout=1200, for example.

Simon
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 7, 2017 - 8:24 AM

Hello,

thank you. I've already tried increasing the timeout, but it doesn't solve the problem.
The activation command runs quickly, but displays a confirmation popup at the end where you just have to click OK. Unfortunately, there doesn't seem to be a silent parameter to prevent it from appearing.
When using this command in a WAPT package, the popup doesn't appear, and regardless of the timeout, an error is reported.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

September 7, 2017 - 8:57 AM

This is the command

Code: Select all

fc_licensing.exe -register "C:\key_folder\key.txt" "Flowcode User" "C:\Program Files\Flowcode 6\licenses\basic.key" "C:\key_folder\basic.key"
Who is requesting confirmation via a popup?

If that's the case, a moderately clean solution is to set a shorter timeout and catch (try: except: ) the timeout error.

Code: Select all

try:
    run('fc_licensing.exe -register ...',timeout=15)
except TimeoutExpired:
    pass
Tranquil IT
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 7, 2017 - 9:57 AM

Yes, that's exactly it!

I'll test your workaround, thank you!
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

September 7, 2017 - 10:17

It works, thank you!

I don't see how to do it any other way... (cleaner)
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Locked