Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Using visual studio window designer; include PowerShell on button clicks. For example run run an MSI installer on ok button click?

What I have tried:

I don't know what to try but my window is built in vs.
Posted
Updated 15-Mar-23 9:29am
Comments
Dave Kreskowiak 15-Mar-23 16:36pm    
Just to be clear, are you saying that you're trying to run various Powershell scripts when you click on button(s) on your form?

1 solution

Save it as a .PS1 file, and use Process.Start to execute the file.
 
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