1 Attachment(s)
First goes at "WPF" winutil
This is post https://excelfox.com/forum/showthrea...ge53#post12800
https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page53#Post12800
Week later 29 Apr 2022 Chris surprised me with his first WPF attempt
I was hoping Chris would not get around to doing this for a while, but he has done it very quickly following a week later from his last Live Stream which heavily mentioned the Debloat script.
Chris said he did C stuff at college, ( 22 years ago ) – strange – he said before in a video that he never went to college?
https://www.youtube.com/watch?v=xqBhFPW_LuM
9.36 Live - New Windows Tool-xqBhFPW_LuM_29 04 2022
https://drive.google.com/file/d/1qLz...?usp=drive_web
It looks like Chris has started uploading the first attempts at GitHub: From 28 April, 2022
Share ‘ChrisFirstWPFDeleted.ps1’ https://app.box.com/s/9ek7nd1hoc82nncizr91lf540sm3tblf
What’s going on..
Without looking at detail yet, just gleaning from Laymen info the video:
WPF is some tool to make a nice GUI. Its based on the .Net stuff, but optimised to make a nice GUI. WPF seems to chuck out a “Semmel” ( xml ) coding. That comes from Visual Studio. I guess we can think of it initially, approximately, as a posh GUI that does not limit you to PowerShell.
However, for now, Chris is going to use PowerShell, and the free Visual Studio. For now, we can think of Visual Studio as a development environment like the VB Editor in VBA or the ISE in PowerShell. But its somehow much more all encompassing.
Lets say that again, partly graphically , and in particular showing also what Chris is doing in the video, ( which he mentions has some limitations, but for now he accepts that to keep it all free source in PowerShell .ps1 file. Going into a full executable, will remove some limitations, and he may be in danger of going into that , by the back door… )
What’s going on..and how
Intro:
So the new stuff, somehow made a XML coding that in .Net gives us a nice GUI. Some of that is comprehendible as being obvious what it is referring to. So we can make some simple changes or additions, such as in this example, Chris added a few extra checkboxes.
XML – PowerShell GUI coding
This is an interesting bit: We can paste that XML coding in a normal .txt / .ps1 file, or rather we out that coding in a PowerShell variable, pseudo like
Code:
$inputXML = @"
<Window x:Class="WinUtility.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WinUtility"
mc:Ignorable="d"
Background="#777777"
Title="Chris Titus Tech's Windows Utility" Height="450" Width="800">
<Viewbox>
<Grid Background="#777777" ShowGridLines="False" Name="MainGrid">
# Lots of html / xml like stuff…….
</Grid>
</Viewbox>
</Window>
"@
That above is just a random snippet. In the actual thing there is lots of Grid and other stuff
There then follows some very complex and verbose coding that Chris does not understand and I doubt I ever will that makes the objects and there variables available to PowerShell. This worries me a bit, since understanding this coding may never take place
In that complex coding is a final function, that gets the variables from the GUI.
Get-Formvariables
That line is done once, and if I do that code line manually it in the PowerShell Window, then I will get a list of the variables.
https://i.postimg.cc/DW0mbXKS/Get-Formvariables.jpg Attachment 3911
The running of the form also gives these variables: This text file is what comes out in PowerShell on running, followed by my manual run of Get-Formvariables
Code:
PS C:\WINDOWS\system32> D:\Temp Opt\GitHub\ChrisNewWPF\ChrisFirstWPFDeleted.ps1
If you need to reference this display again, run Get-FormVariables
Found the following interactable elements from our form
Name Value
---- -----
WPFadobe System.Windows.Controls.CheckBox Content:Adobe Reader DC IsChecked:False
WPFadvancedip System.Windows.Controls.CheckBox Content:Advanced IP Scanner IsChecked:False
WPFautohotkey System.Windows.Controls.CheckBox Content:AutoHotkey IsChecked:False
WPFbrave System.Windows.Controls.CheckBox Content:Brave IsChecked:False
WPFchrome System.Windows.Controls.CheckBox Content:Google Chrome IsChecked:False
WPFdiscord System.Windows.Controls.CheckBox Content:Discord IsChecked:False
WPFesearch System.Windows.Controls.CheckBox Content:Everything Search IsChecked:False
WPFetcher System.Windows.Controls.CheckBox Content:Etcher USB Creator IsChecked:False
WPFfirefox System.Windows.Controls.CheckBox Content:Firefox IsChecked:False
WPFgimp System.Windows.Controls.CheckBox Content:GIMP (Image Editor) IsChecked:False
WPFgithubdesktop System.Windows.Controls.CheckBox Content:GitHub Desktop IsChecked:False
WPFIcon System.Windows.Controls.Image
WPFimageglass System.Windows.Controls.CheckBox Content:ImageGlass (Image Viewer) IsChecked:False
WPFinstall System.Windows.Controls.Button: Start Install
WPFMainGrid System.Windows.Controls.Grid
WPFmpc System.Windows.Controls.CheckBox Content:Media Player Classic (Video Player) IsChecke...
WPFnotepadplus System.Windows.Controls.CheckBox Content:Notepad++ IsChecked:False
WPFpowertoys System.Windows.Controls.CheckBox Content:Microsoft Powertoys IsChecked:False
WPFputty System.Windows.Controls.CheckBox Content:Putty and WinSCP IsChecked:False
WPFsevenzip System.Windows.Controls.CheckBox Content:7-Zip IsChecked:False
WPFsharex System.Windows.Controls.CheckBox Content:ShareX (Screenshots) IsChecked:False
WPFsumatra System.Windows.Controls.CheckBox Content:Sumatra PDF IsChecked:False
WPFTab1 System.Windows.Controls.TabItem Header:Install Content:
WPFTab1BT System.Windows.Controls.Button: Install
WPFTab2 System.Windows.Controls.TabItem Header:Debloat Content:
WPFTab2BT System.Windows.Controls.Button: Debloat
WPFTab3 System.Windows.Controls.TabItem Header:Config Content:
WPFTab3BT System.Windows.Controls.Button: Config
WPFTab4 System.Windows.Controls.TabItem Header:Updates Content:
WPFTab4BT System.Windows.Controls.Button: Updates
WPFTabNav System.Windows.Controls.TabControl Items.Count:4
WPFterminal System.Windows.Controls.CheckBox Content:Windows Terminal IsChecked:False
WPFTitusPB System.Windows.Controls.ProgressBar Minimum:0 Maximum:100 Value:0
WPFttaskbar System.Windows.Controls.CheckBox Content:Translucent Taskbar IsChecked:False
WPFvlc System.Windows.Controls.CheckBox Content:VLC (Video Player) IsChecked:False
WPFvscode System.Windows.Controls.CheckBox Content:VS Code IsChecked:False
WPFvscodium System.Windows.Controls.CheckBox Content:VS Codium IsChecked:False
PS C:\WINDOWS\system32> Get-FormVariables
Found the following interactable elements from our form
Name Value
---- -----
WPFadobe System.Windows.Controls.CheckBox Content:Adobe Reader DC IsChecked:False
WPFadvancedip System.Windows.Controls.CheckBox Content:Advanced IP Scanner IsChecked:False
WPFautohotkey System.Windows.Controls.CheckBox Content:AutoHotkey IsChecked:False
WPFbrave System.Windows.Controls.CheckBox Content:Brave IsChecked:False
WPFchrome System.Windows.Controls.CheckBox Content:Google Chrome IsChecked:False
WPFdiscord System.Windows.Controls.CheckBox Content:Discord IsChecked:False
WPFesearch System.Windows.Controls.CheckBox Content:Everything Search IsChecked:False
WPFetcher System.Windows.Controls.CheckBox Content:Etcher USB Creator IsChecked:False
WPFfirefox System.Windows.Controls.CheckBox Content:Firefox IsChecked:False
WPFgimp System.Windows.Controls.CheckBox Content:GIMP (Image Editor) IsChecked:False
WPFgithubdesktop System.Windows.Controls.CheckBox Content:GitHub Desktop IsChecked:False
WPFIcon System.Windows.Controls.Image
WPFimageglass System.Windows.Controls.CheckBox Content:ImageGlass (Image Viewer) IsChecked:False
WPFinstall System.Windows.Controls.Button: Start Install
WPFMainGrid System.Windows.Controls.Grid
WPFmpc System.Windows.Controls.CheckBox Content:Media Player Classic (Video Player) IsChecke...
WPFnotepadplus System.Windows.Controls.CheckBox Content:Notepad++ IsChecked:False
WPFpowertoys System.Windows.Controls.CheckBox Content:Microsoft Powertoys IsChecked:False
WPFputty System.Windows.Controls.CheckBox Content:Putty and WinSCP IsChecked:False
WPFsevenzip System.Windows.Controls.CheckBox Content:7-Zip IsChecked:False
WPFsharex System.Windows.Controls.CheckBox Content:ShareX (Screenshots) IsChecked:False
WPFsumatra System.Windows.Controls.CheckBox Content:Sumatra PDF IsChecked:False
WPFTab1 System.Windows.Controls.TabItem Header:Install Content:
WPFTab1BT System.Windows.Controls.Button: Install
WPFTab2 System.Windows.Controls.TabItem Header:Debloat Content:
WPFTab2BT System.Windows.Controls.Button: Debloat
WPFTab3 System.Windows.Controls.TabItem Header:Config Content:
WPFTab3BT System.Windows.Controls.Button: Config
WPFTab4 System.Windows.Controls.TabItem Header:Updates Content:
WPFTab4BT System.Windows.Controls.Button: Updates
WPFTabNav System.Windows.Controls.TabControl Items.Count:4
WPFterminal System.Windows.Controls.CheckBox Content:Windows Terminal IsChecked:False
WPFTitusPB System.Windows.Controls.ProgressBar Minimum:0 Maximum:100 Value:0
WPFttaskbar System.Windows.Controls.CheckBox Content:Translucent Taskbar IsChecked:False
WPFvlc System.Windows.Controls.CheckBox Content:VLC (Video Player) IsChecked:False
WPFvscode System.Windows.Controls.CheckBox Content:VS Code IsChecked:False
WPFvscodium System.Windows.Controls.CheckBox Content:VS Codium IsChecked:False
PS C:\WINDOWS\system32>
Because we have the variables we can do things to them as in the old tool script, such as adding Add_Click stuff
First goes at "WPF" winutil
Minute 6, 55 seconds https://youtu.be/xqBhFPW_LuM?t=415 .. limitation of this “open” non .exe way
.. since It’s running in PowerShell. That will take precedence. It’s the parent that’s doing everything, .. If you do something in the GUI that sends back to PowerShell, it will lock the GUI until whatever is finished in the background.
…If I did a full .exe on the front end and embedded PowerShell. It would not be like that
Because we have the variables we can do things to them as in the old tool script, such as adding Add_Click stuff
It’s the viewbox that makes it autoscale
He finds WPF a bit more obscure than C
He loves VS and the real time stuff
He has effectively two panels, “grids split 30% 70% with
Then he has a vertical stack panel ( which is the default ) which is the left most buttons.
Rants as ever about Pull Requests he fucked up
https://www.youtube.com/watch?v=xqBhFPW_LuM&t=575s
Basically Chris has made a mess with Essential Tweaks and he is hiding it behind pretending he had bad Pull Requests. In fact he barely looked at the Pull Requests and those he did he messed up. So he is sort of going back and looking more carefully in a module like way, on the meat and splitting it. Just like my very first thoughts after getting clued up on his last year or so of the old Tool
A bit later he goes someway to justify his comments – things are just merged in with no documentation, but who is responsible for that? Debatable,
https://youtu.be/xqBhFPW_LuM?t=3687 https://youtu.be/xqBhFPW_LuM?t=3608 stuff there
https://youtu.be/xqBhFPW_LuM?t=3688 Good night what a mess - got his Hibernations in a mess
Drilling into meat, of it, line by line, ( hiding his mess up by saying making it perfect for everyone )
When you select Laptop it will click the Misc. Tweaks for Enable Power Throttling ( to save battery, and Disable NumLock on Startup because a lot of Laptops don’t have affinity
When you select Desktop it will click the Misc. Tweaks for Disable Power Throttling, and Enable NumLock on Startup because most people will want a ten key??
In Essential Tweaks only Remove MS Apps is the one he wouldn’t do.
Chris spends a bit of time doing the option click selections stuff,
does some IF stuff to run on a checked box,
then we are off to the meat, breaking up the old code
_ Activity History
_ The Debloat. While he was there, https://youtu.be/xqBhFPW_LuM?t=3473 decided to comment out #Microsoft.YourPhone
( https://www.youtube.com/watch?v=xqBhFPW_LuM&t=3496s talks about option new to remove a lot of office bloat )
_ Game DVR. A few rants follow – stuff in the meat badly documented as it was a Pull Request that Chris did not implement correctly https://www.youtube.com/watch?v=xqBhFPW_LuM&t=575s documentation
https://youtu.be/xqBhFPW_LuM?t=3687 https://youtu.be/xqBhFPW_LuM?t=3608 stuff there
https://youtu.be/xqBhFPW_LuM?t=3688 Good night what a mess - got his Hibernations in a mess
he says he was too lenient. Actually he was too lazy and made no attempt to check anything or had no idea about his own script and implications of Pull Requests on it.
He is not always sure where things should go. He may think again where some bits go
_ When the Home group 4 script lines are put on a click box, Chris changes the to disable to manual
He got bogged down finding stuff so decided to just go back to the start in Essential Tweaks, and split stuff,
_ starting with O&O
_ 8 lines of the first meat went to Telemetry
_ At WiFi he mentions again how bad Smartphones are: https://youtu.be/xqBhFPW_LuM?t=3945
(_ Application suggestions, approx 13 lines, he decides to put in Telemetry)
(_ Activity history already done that one )
_ He is not too sure where WiFi and location tracking should go.
_ He decides to jam all the feedback and all down to the dmwapp stuff into telemetry, ( so the whole fucked up WAP Properties Telemetry issue id missed again ), Telemetry will be the catch all
Remote assistance gets dropped in here also, and Chris rants again that not even Microsoft use it:
https://youtu.be/xqBhFPW_LuM?t=4430
_ Restore point goes on its own click button thing.
_ Super Fetch. Crap again that never worked. But it’s not clear if Chris did anything with it?
_ Chris sees some more Hibernation stuff and copies it and is in a mess again. Missed something, second time around: https://youtu.be/xqBhFPW_LuM?t=4737 But that is disabling??
( rant first time around was enabling https://www.youtube.com/watch?v=xqBhFPW_LuM&t=3685s https://www.youtube.com/watch?v=xqBhFPW_LuM&t=3670s )
Right here, Perfect crap https://youtu.be/xqBhFPW_LuM?t=4737
No idea what Chris eventually put in the Disable Hibernation Button.
_ Task manager Details. The good Pull request from the last video. Changing windows explorer view details. But he went off and god knows if he did anything with it. ( 20 H1 2257 or 2004 or 21 H2 , showing detail bugged out. Maybe a patch fixed it.
_ Some mix up again with WiFi
( He advises someone to use 2016 version if you want LTSC )
_ He decides to forget all about the tray icons
_ We are into Num Loch again, something about the Add Type windows forms he does not like,
The reason for disabling Num Loch is on some Laptops you may lose some of the right hand keyboard and people don’t know how to bring it back https://youtu.be/xqBhFPW_LuM?t=5040
He says his whole script is wrong, he left it at default. Enable should be 2. Disable should be 0
https://youtu.be/xqBhFPW_LuM?t=5094
So finally he did it right.
_ Changing Explorer view goes in Telemetry. No one need quick access
_ Power Throttling. Definitely want that on LapTop Two lines taken from # reducing ram via regedit – the rest of that reducing ram stuff he comments with #### Performance Display and memory , and says he will come back but then changees that and puts that and almost everything up to service tweaks in Telemetry !!
_ File extensions goes to a Misc TweakExts button.
** In the chat someone asks … 400K subscribers and only 240 watching. Michael Hathaway answers that Chris uses Bots: https://youtu.be/xqBhFPW_LuM?t=5632 , https://i.postimg.cc/sxD2B64m/Chris-uses-Bots.jpg
_ Services ( comes back later – not sure where to put it)
This Chris says works so well, and gives best feedback
( starts talking about Boot Time, the “Issues Thread” after Sam asks )
Does his rant ( in love with issues , hate PR rant https://youtu.be/xqBhFPW_LuM?t=5840 Chris has superior knowledge ) , looks at Chat a bit apprehensive. .. Maybe because **
_ Does the services
_ Boot time UTC goes in Misc Tweaks Set time ( Dual Boot is it needed isd )
Looks like he is getting lazy, fed up etc., and says he ignores background apps, and it looks like he ignores a lot of other stuff as well
_ Display for performance. ( Shows the manual way to do it https://i.postimg.cc/3R048b9v/sysdp-cpl.jpg https://i.postimg.cc/ZqMvhhPm/sysdp-...ce-Optimum.jpg https://youtu.be/xqBhFPW_LuM?t=6194
He starts doing Essential undo by including the previous own button for visual effects ( opposite of last added display for performance. )
A button for all, copies initially just the whole meat from old script.
He just goes through very quickly.
_.____
More laziness as he decides not to touch search
He noticed that Clipboard History was deleted in Essential tweaks ( In services, so he takes from the enable/Undo button the meat and outs it in Undo
"cbdhsvc_48486de" # On 28 April Chris notices that this disables Clipboard History, and puts the undo button stuff in Undo https://youtu.be/xqBhFPW_LuM?t=6505 )
He does a run through, Run Tweaks, and notices he is deleting some apps he personally did not want to: Mindcraft, Whiteboard, xbox
After that he decides to put this ( Remove MS Store Apps check button thing ) in Misc. Tweaks. He finally does that after forgetting to a few times.
He might decide to break out Telemetry a bit more after the stream, and even the Undo also.
He takes out all Result.Text stuff
He starts the install bloating.
Gets lost in looking at software to install, following suggestions in Chat.
Chocolatey, Scoop (invoke… Chocolatey Scoop look into invoke... https://www.youtube.com/watch?v=xqBhFPW_LuM&t=10845s )
We are probably at this point at this script from 30 April, 2022:
Share ‘ChrisWPF30April.ps1’ https://app.box.com/s/r2nojdn17zm2rfwgnhro89n7xzlogiw6
Because he was not finished, and because of Algorithm God, on Wednesday 4 May…._
9.37 Fixing my biggest failure-nDlGkDENCyM_04 05 2022
https://www.youtube.com/watch?v=nDlGkDENCyM
9.37 Fixing my biggest failure-nDlGkDENCyM_04 05 2022 : https://app.box.com/s/mbm28cfv44c2k1wefblw3p4qlagxlo0 l
_... Fairly short video, Not much new
Code signing, redirect https://youtu.be/nDlGkDENCyM?t=400
Friday , May 6 , second sequential Live stream on new WPF tool!
He starts very well, has a good Agenda, but gets bogged down in mostly boring crap bloating with more winget downloads.
https://www.youtube.com/watch?v=7KPH608Av4E
9.38 Live - Finalizing New Windows Tool-7KPH608Av4E_06 05 2022 https://drive.google.com/file/d/192_...?usp=drive_web
_._____________________________
There may be some Do Events in Forms for GUI user interactions
He talks about wanting to do “Templates for feature requests” etc ?
Going forward he says he is concentrating on the install.
Sam asked him again to look at the “Issues Thread”, and Chris says he will at the end….
( Sam Zick $2.00 suggestions issue thread on github , Chris says he will do it before he goes to far )
I think Chris is trying to hide all his incompetence and lax interest in the GitHub win10debloat page which has wasted a lot of peoples time stupidly.
Someone suggests just linking nitenite, her slag’s it off. Says it was Ok for 10 years ago
generic list then make array, better programming in PowerShell https://www.youtube.com/watch?v=7KPH608Av4E&t=3680s
( Chris thinks MS teams is shit, only idiots and those forced to use it use it )
We are probably at this point at this script from Tuesday 10 May, 2022:
Share ‘ChrisWPFTuesday10May2022.ps1’ https://app.box.com/s/zvxfm8upvij18kirbh0i6g6qbenlra27
First Attempt at exe made from first "WPF" winutil ps1 ( 10-17 May, 2022 )
This is post https://excelfox.com/forum/showthrea...ge53#post12803
https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page53#post12803
bitly link https://bit.ly/3lohUg2
tinyurl https://tinyurl.com/uwd4u88h
Testing making an exe from the new “WPF” winutil script.
( 17 May, 2022 )
So we did this before for the previous script: https://excelfox.com/forum/showthrea...ge43#post12695 , which was following Chris’s instructions, for example: https://www.youtube.com/watch?v=dyDMmfvwT2w&t=1436s , https://youtu.be/dyDMmfvwT2w?t=6841
TLDR: What you do
_ Get the ps1 file. Put it somewhere and make a note where it is, (because you will need to give that path in one of the commands later )
_ Open PowerShell, ( as Administrator ), and do the 4 commands, ( and you may also need to answer some prompts along the way with a single character)
So, the full story, I am attempting the same again as I did before with the old script ( https://excelfox.com/forum/showthrea...ge43#post12695 ) …..
Here we go
We need the .ps1 File.
Here is a app bix share link to the one Chris uploaded to GutHub and called a “soft release” on Tuesday 10 May, 2022. ( A week later, as I write this, and a few days after the official release video ,( https://www.youtube.com/watch?v=tPRv-ATUBe4 9.39 The Best Windows Tool for 2022-tPRv-ATUBe4_14 05 2022 https://app.box.com/s/s6eph5yveshrokjmdqedlarkwiz72nnb ) , it is still the newest available at GitHuib )
Share ‘ChrisWPFTuesday10May2022.ps1’ https://app.box.com/s/zvxfm8upvij18kirbh0i6g6qbenlra27
We need to put that File somewhere and make a note of the full Path, I have it at
D:\Temp Opt\GitHub\ChrisNewWPF\ChrisWPFTuesday10May2022.ps1 ( https://i.postimg.cc/sf0KLvm9/Have-10-May-ps1-file.jpg )
I open PowerShell as Administrator https://i.postimg.cc/tCb2hhmJ/Open-P...l-As-Admin.jpg
I do these 4 basic commands:
cd 'D:\Temp Opt\GitHub\ChrisNewWPF'
Set-ExecutionPolicy Unrestricted
( I get asked some stuff and answer with the options something like yes to all )
install-module ps2exe
( I get asked some stuff a couple of times , and answer with something like yes and yes to all)
ps2exe .\ ChrisWPFTuesday10May2022.ps1 .\ ChrisWPFTuesday10May2022.exe
The end result is that an exe appears: https://i.postimg.cc/brxg7Jdq/All-we...WPFwinutil.jpg , https://i.postimg.cc/Bb9N7DSh/exe-appeared.jpg
If I compare
_ what I get from double clicking on that exe file
, with
_ what I get when hitting the play button with the ps1 file in the ISE, ( https://i.postimg.cc/9MvQqXm5/Hit-da...ton-in-ISE.jpg , https://i.postimg.cc/L5L6kd5q/Hit-Pl...ton-in-ISE.jpg )
, then the results look at first glance to be identical: https://i.postimg.cc/CxP7T9Mn/WPFwin...f-made-exe.jpg
https://i.postimg.cc/CxP7T9Mn/WPFwin...f-made-exe.jpg
_.____________________
Here is the screenshot of the full commands and actions taken in the PowerShell window, ( and below is the exe I made !!! )
__https://i.postimg.cc/pp4Khby0/All-we...WPFwinutil.jpg
In this window below I have copied the entire text from that screenshot, and the text in Blue is what I actually typed in – that is 4 basic commands and 3 single character answers. A , J and A
Code:
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6
PS C:\WINDOWS\system32> cd 'D:\Temp Opt\GitHub\ChrisNewWPF'
PS D:\Temp Opt\GitHub\ChrisNewWPF> Set-ExecutionPolicy Unrestricted
Ausführungsrichtlinie ändern
Die Ausführungsrichtlinie trägt zum Schutz vor nicht vertrauenswürdigen Skripts bei. Wenn Sie die Ausführungsrichtlinie
ändern, sind Sie möglicherweise den im Hilfethema "about_Execution_Policies" unter
"https:/go.microsoft.com/fwlink/?LinkID=135170" beschriebenen Sicherheitsrisiken ausgesetzt. Möchten Sie die
Ausführungsrichtlinie ändern?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist "N"): A
PS D:\Temp Opt\GitHub\ChrisNewWPF> install-module ps2exe
Der NuGet-Anbieter ist erforderlich, um den Vorgang fortzusetzen.
PowerShellGet erfordert die NuGet-Anbieterversion 2.8.5.201 oder höher für die Interaktion mit NuGet-basierten
Repositorys. Der NuGet-Anbieter muss in "C:\Program Files\PackageManagement\ProviderAssemblies" oder
"C:\Users\acer\AppData\Local\PackageManagement\ProviderAssemblies" verfügbar sein. Sie können den NuGet-Anbieter auch
durch Ausführen von 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force' installieren. Möchten Sie
den NuGet-Anbieter jetzt durch PowerShellGet installieren und importieren lassen?
[J] Ja [N] Nein [H] Anhalten [?] Hilfe (Standard ist "J"): J
Nicht vertrauenswürdiges Repository
Sie installieren die Module aus einem nicht vertrauenswürdigen Repository. Wenn Sie diesem Repository vertrauen, ändern
Sie dessen InstallationPolicy-Wert, indem Sie das Set-PSRepository-Cmdlet ausführen. Möchten Sie die Module von
'PSGallery' wirklich installieren?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist "N"): A
PS D:\Temp Opt\GitHub\ChrisNewWPF> ps2exe .\ChrisWPFTuesday10May2022.ps1 .\ChrisWPFTuesday10May2022.exe
PS2EXE-GUI v0.5.0.27 by Ingo Karstein, reworked and GUI support by Markus Scholtes
Reading input file D:\Temp Opt\GitHub\ChrisNewWPF\ChrisWPFTuesday10May2022.ps1
Compiling file...
Output file D:\Temp Opt\GitHub\ChrisNewWPF\ChrisWPFTuesday10May2022.exe written
PS D:\Temp Opt\GitHub\ChrisNewWPF>
Summary: Recap What you do
_ Get the ps1 file. Put it somewhere and make a note where it is, (because you will need to give that path in one of the commands later )
_ Open PowerShell, ( as Administrator ), and do the 4 commands, ( and you may also need to answer some prompts along the way with a single character)
!!! The Final made exe:
Share ‘ChrisWPFTuesday10May2022.exe’ https://app.box.com/s/x6smoishgjjzurpo5of7jhxxl1pbuvni
made from this ps1 File:
Share ‘ChrisWPFTuesday10May2022.ps1’ https://app.box.com/s/zvxfm8upvij18kirbh0i6g6qbenlra27