How do you create exe.file

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
hrlarsen
Posts: 31
Last visit: Sun Dec 18, 2022 1:47 pm

How do you create exe.file

Post by hrlarsen »

Setup
--------------
File.ps.1 (data from WPF form via 2 xaml files.)
File1.xaml (mainwindow1)
File2.xaml (window2)

How to create 1 exe file in Powershell Studio in that setup?
That cant run on multi Windows computers after.

Is it unly possible via one file.ps1.
Where all the xaml is inside that one file.

:roll:
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: How do you create exe.file

Post by jvierra »

You would have to embed the XAML into the PS1 or attach the file to the project and use "Get-Content" to load teh XAML>
How to create 1 exe file in Powershell Studio in that setup?
That cant run on multi Windows computers after.
This sentence does not make any sense,
This topic is 1 year and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked