Skip to content

Commit

Permalink
Cleaned code and fixed path validation
Browse files Browse the repository at this point in the history
- named ui elements
- added winFormsDPIAware
- fixed filepath validation
- resized window
- updated readme
  • Loading branch information
Hope-IT-Works committed Feb 9, 2024
1 parent e364043 commit 82ccd8d
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 151 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
src/ps2exe.ps1
\[MS-LCID\].pdf
src/ps2exe-gui.ps1
src/test-script.exe
94 changes: 52 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,73 +3,83 @@
# PS2EXE-GUI

This project provides a advanced graphical user interface for [PS2EXE](https://github.com/MScholtes/Win-PS2EXE).<br><br>
_a release will be added soon (release due 23.10.2022)_

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c03fe42c3a28471dbc99e92918f4fc20)](https://www.codacy.com/gh/Hope-IT-Works/PS2EXE-GUI/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Hope-IT-Works/PS2EXE-GUI&amp;utm_campaign=Badge_Grade)
[![CodeFactor](https://www.codefactor.io/repository/github/hope-it-works/ps2exe-gui/badge)](https://www.codefactor.io/repository/github/hope-it-works/ps2exe-gui)

## Developement Progress

_Refactoring done!_

PS2EXE-GUI is still in developement state, but is usable.

As you may noticed, the project was not updated for a while. I will try to get back to it as soon as possible. I'm sorry for the inconvenience.

| Feature | Status | ETA |
|----------------------------------|--------|-----|
| add all p2exe fields |||
| add tooltip to all ps2exe fields |||
| add about page |||
| mark required ps2exe fields |||
| get ps2exe call done |||
| add ps2exe-script update || due 23.10.2022 |
| release first build || due 23.10.2022 |
| add save files || Q4/2022 |
| release second build || Q4/2022 |
| integrate [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) | 🔜 | TBA |
| release third build | 🔜 | TBA |
| integrate [SignTool](https://docs.microsoft.com/de-de/dotnet/framework/tools/signtool-exe) | 🔜 | TBA |
| release fourth build | 🔜 | TBA |
| add ps2exe-script update || *not specified* |
| release first build || *not specified* |
| add save files || *not specified* |
| release second build || *not specified* |
| integrate [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) | 🔜 | *not specified* |
| release third build | 🔜 | *not specified* |
| integrate [SignTool](https://docs.microsoft.com/de-de/dotnet/framework/tools/signtool-exe) | 🔜 | *not specified* |
| release fourth build | 🔜 | *not specified* |

## Parameter Support Comparison

| Parameter | PS2EXE-GUI | [Win-PS2EXE](https://github.com/MScholtes/Win-PS2EXE) |
| --- | :---: | :---: |
| inputFile |||
| outputFile |||
| iconFile |||
| title |||
| description |||
| company |||
| product |||
| copyright |||
| trademark |||
| version |||
| runtime |||
| instructionSet |||
| threadApartment |||
| prepareDebug |||
| noConsole |||
| UNICODEEncoding |||
| credentialGUI |||
| configFile |||
| noOutput |||
| noError |||
| noVisualStyles |||
| exitOnCancel |||
| DPIAware |||
| requireAdmin || |
| supportOS || |
| virtualize |||
| longPaths |||
| **BONUS:** extractable[^extractable] | ⏳(WIP) ||

[^lcid-not-necessary]: Doesn't seem necessary. If it is needed, please open an [issue](https://github.com/Hope-IT-Works/PS2EXE-GUI/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=lcid-parameter%20is%20necessary).
| - | :-: | :-: |
| inputFile |||
| outputFile |||
| iconFile |||
| title |||
| description |||
| company |||
| product |||
| copyright |||
| trademark |||
| version |||
| runtime |||
| instructionSet |||
| threadApartment |||
| prepareDebug |||
| noConsole |||
| UNICODEEncoding |||
| credentialGUI |||
| configFile |||
| noOutput |||
| noError |||
| noVisualStyles |||
| exitOnCancel |||
| DPIAware |||
| winFormsDPIAware || |
| requireAdmin || |
| supportOS |||
| virtualize |||
| longPaths | ||
| **BONUS:** extractable[^extractable] | ⏳(TODO) ||

[^extractable]: Allows you to choose, if the user is able to extract the `.ps1` out of the `.exe` file. Is and will not be supported by [PS2EXE](https://github.com/MScholtes/Win-PS2EXE/blob/master/ps2exe.ps1) by default ([issue](https://github.com/MScholtes/TechNet-Gallery/issues/3)), but PS2EXE-GUI takes care of this.

## Screenshot

<img alt="Screenshot from the Main Page" src="https://user-images.githubusercontent.com/52013820/192851884-003dac29-bece-4964-bef8-9948bd0a8494.png" width="50%" style="display: inline; margin: 0; padding: 0;"><img alt="Screenshot from the Console Page" src="https://user-images.githubusercontent.com/52013820/196063461-90e4f9a0-71f7-4c0d-b536-4c9756b4bee2.png" width="50%" style="display: inline; margin: 0; padding: 0;">

## Usage

1. Clone this repository
2. Download the latest version of [`ps2exe.ps1`](https://github.com/MScholtes/Win-PS2EXE/blob/master/ps2exe.ps1) into the `.\src\` directory
3. Open PowerShell and navigate to the `.\src` directory
4. Run `.\PS2EXE-GUI.ps1`
5. Select a `.ps1` file and configure the settings as you like
6. Click on `Compile` and wait for the process to finish
7. The `.exe` file will be saved in the same directory as the selected `.ps1` file
8. Finished! 🎉

## About the project

This Project uses the further developed version of [PS2EXE](https://github.com/MScholtes/Win-PS2EXE/blob/master/ps2exe.ps1) by [Markus Scholtes](https://github.com/MScholtes) licensed under the Microsoft Public License (MC-PL).
Expand Down
Loading

0 comments on commit 82ccd8d

Please sign in to comment.