3

how do I run the executable files from Flutter desktop that also store in that app itself, let say if I made a batch file that echo hello worlds. the idea is I don't want the executable file in the app itself. the only thing that I can think of is assets. I want to run the file with Process. start or run. I tried the "workingDirectory" to assets dir but it doesn't work. Any other solution or maybe I do it the wrong way.

asked Apr 8, 2021 at 8:39
3
  • facing the same problem did you find any solution ?? Commented Dec 29, 2021 at 0:35
  • facing same issue Commented Apr 9, 2022 at 14:44
  • @Nux have you tried asset bundle?. I'm moving from this issue by not implementing this related feature on that project but recently, I encounter with asset bundle. maybe you can trie it out if you still looking forward to it Commented Apr 25, 2022 at 0:06

1 Answer 1

1
Process.run('C:/Users/<Ur User>/AndroidStudioProjects/web_view_test/build/windows/runner/Debug/installerX64/install.exe', [' start ']).then((ProcessResult results) {
 print(results.stdout);
 });
tripleee
192k37 gold badges318 silver badges367 bronze badges
answered Mar 3, 2022 at 5:08
Sign up to request clarification or add additional context in comments.

3 Comments

I bet there is a better way than this? or not.
yes make some node js code and compile it with pkg and call it from flutter
or lock how to creat pakage and create it with c++ and invoce the function from flutter woth channel

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.