Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have made a form in c#. one button in this form is executing exe of python script.
i made setp.exe of this form using visual project installer ,but after building n installing the setup.exe ,when i open the exe , error is displayed .
however i made another form which is not calling exe of python script and made setup.exe of this form then its working fine.
plz. help so that i can make setup.exe of c# form ,calling exe of python script.

thanks in advance
Posted
Comments
[no name] 27-Jul-15 13:40pm    
Does your setup install the python runtime also?

1 solution

I see you are facing issue while calling exe of Python from your executable that is because you might have given absolute path of python exe within code.
You can verify what exception it is throwing, by some kind of error logging(by simple text file of message box which ever you prefer.)
Just put try catch block within code where you are calling python exe.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900