Page 1 of 1

[Solved] Creating Flowcode v6 package

Published: September 6, 2017 - 4:23 PM
by olaplanche
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.

Re: Creating Flowcode v6 package

Published: September 6, 2017 - 10:00 PM
by sfonteneau
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

Re: Creating Flowcode v6 package

Published: September 7, 2017 - 8:24 AM
by olaplanche
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.

Re: Creating Flowcode v6 package

Published: September 7, 2017 - 8:57 AM
by htouvet
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

Re: Creating Flowcode v6 package

Published: September 7, 2017 - 9:57 AM
by olaplanche
Yes, that's exactly it!

I'll test your workaround, thank you!

Re: Creating Flowcode v6 package

Published: September 7, 2017 - 10:17 AM
by olaplanche
It works, thank you!

I don't see how to do it any other way... (cleaner)