-1

I have written a program. Thats include c# and python ı wrote the python from pycharm. After that ı created a ui from c# and ı called the python file from c#. And itis working fine.(Calling the .py file with cmd not ironpython). And now ı need to create the setup file thats include the c#, .py file and libraries.(cv2,os,..) . I will setup the program on another pc so ı need to setup python to that pc with environment variable set up to python. So the c# file can work like 'python main.py --param1 --param2'. How can ı create a setup file? Can anyone help me?

None

None

None
  • Learn to use Wix, InstallShield, or another installation / setup building tool. That's way beyond the scope of a SO question, please read [tour] and [ask]. – Dave S Jul 11 '19 at 20:26

1 Answers1

0
  1. I would download the python installer on the primary PC
  2. create a stream of it (example)
  3. serialize (docs) it and store it in the app.

In your c# setup program

  1. DeSerialize the python installer
  2. run the installer. Here is an example from SO to execute commands from command prompt.

With C# libraries it can be similar approach and just use dotnet cli approach.

Neophyte
  • 132
  • 1
  • 8