App Developer Runtime

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 1012
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Flowcode v10 App Developer Runtime

Post by stefan.erni »

Hi Steve
Very good news!
I tried the new version FC10.
Embedded and App developer. Both works fine. Especially the many new panels are great. I have still one question. The FC9 had an App Developer Runtime. Are these also available again for FC10?

regards

Stefan

Runtime FC9
Snag_6ddb1b.png
Snag_6ddb1b.png (156.58 KiB) Viewed 1896 times

BenR
Matrix Staff
Posts: 1936
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: App Developer Runtime

Post by BenR »

Hello Stefan,

Yes it's still there just looks like there isn't a start menu shortcut for it this time.

It lives here by default.
C:\Program Files (x86)\Flowcode v10\App Developer

Steve-Matrix
Matrix Staff
Posts: 1476
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 207 times
Been thanked: 349 times

Re: App Developer Runtime

Post by Steve-Matrix »

Hi Stefan,

(Ben beat me to it with a short answer, so here's a longer explanation)

Yes - there is a runtime exe (in the "...\Flowcode v10\App Developer" folder) but I have not created a shortcut for it. This will be automatically copied across when deploying an App if you select the "Bundle App Developer Runtime" option. I will add a shortcut in a later update so this is also available from the Windows Start menu.

I have also created a couple of small exe files that will help launch the deployed App. These are in the "...\Flowcode v10\App Developer Launcher" folder. These replace the batch file method of v9. I will explain how these work.

When you deploy an App without deploying the runtime, only a ".mscada" file is created. This is your deployed App. You can run this by launching the Runtime exe and opening your deployed App.

When you deploy an App and bundle the runtime with it, your App (i.e. the mscada file) is saved to the chosen folder with the FlowcodeAppLauncher.exe file, and the runtime is added to a subdirectory too. Running the "FlowcodeAppLauncher.exe" will launch the runtime with your App. Something like this:
delpoyed app.png
delpoyed app.png (4.62 KiB) Viewed 1887 times
That "FlowcodeAppLauncher.exe" file works by finding the first App in the folder and launching it. This launcher should only be used if there is just one App in the folder.

An alternative is to manually replace that launcher exe with the "FlowcodeAppLauncherRenameMe.exe", and then rename it so it has the same name as the ".mscada" App. This launcher works differently and tries to launch the App which shares its name. In this way, you can have multiple Apps in the same folder, each with their own launcher exe, and only one copy of the runtime. For example:
multiple delpoy apps.png
multiple delpoy apps.png (6.04 KiB) Viewed 1887 times
I had hoped to extend this functionality in a number of ways, such as incorporate the ".mscada" App file inside the exe so there is only one file deployed and it can be run directly. I also wanted the launcher exe to automatically locate the installed copy of the runtime so this did not need to be copied over. However, I ran out of time and will endeavour to improve this App deployment in a future release.

stefan.erni
Valued Contributor
Posts: 1012
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 193 times
Been thanked: 217 times

Re: App Developer Runtime

Post by stefan.erni »

Hi Steve

I found the runtime and tested my first FC10 App (not Bundled) and it works great.
My 3D objects are also integrated as a resource and they work perfect.

With the FC9 you made a msi installer that anyone can download from the Matrix homepage.

So you can easily send the link and a scada file in one email. Would this also be possible for FC10?

regards

Stefan


Here the Info from the FC9 App Developer Runtime MSI:

https://flowcode.co.uk/forums/viewtopic ... e&start=10
Hi Stefan,

I have created an App Developer Runtime installer. The link is below:
https://flowcode.co.uk/resources/softwa ... taller.msi
This does not need to be installed if the user is already a Flowcode v9 user as the Runtime files will already be installed.

Steve-Matrix
Matrix Staff
Posts: 1476
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 207 times
Been thanked: 349 times

Re: App Developer Runtime

Post by Steve-Matrix »

Hi Stefan. Yes - I plan to create a separate installer for the runtime at some point in the next month or two.

Post Reply