Page 53 of 94 FirstFirst ... 343515253545563 ... LastLast
Results 521 to 530 of 935

Thread: Windows 10 and Office Excel

  1. #521
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Function GetProcesses{
    }

    Function GetProcesses{ ……………_
    This was the summary situation which we ended up with from the last post.
    An approximate schematic summary of the situation at which we have so far arrived at
    header1 header2 A Header Last Header <-- This bit with the created “column” is part of the main ListView object
    0\ 345
    SubItem SubItem SubItem <-- This brown thing is a ListViewItem object. It has an Item number of 0,
    and an Item identifier/name of 345
    Item 0
    1\ 232
    SubItem SubItem SubItem <-- This blue thing is a ListViewItem object. It has an Item number of 1,
    and an Item identifier/name of 232
    Item 1
    2\ 36
    SubItem SubItem SubItem <-- This purple thing is a ListViewItem object. It has an Item number of 2
    and an Item identifier/name of 36
    Item 2
    __
    In the above schematic we are showing 4 objects. The last three belong to the first one, ( after they have been ned to it ).
    The values in the first column somehow belong to the main ListView object.
    SubItems are Added to the ListViewItems


    Everything we need comes from early on in the function via
    $Processes = Get-Process | Select-Object Id,ProcessName,Handles,NPM,PM,WS,VM,CPU,Path, # and I think this is getting us an array of objects.
    Write-Host $Processes
    will get us one of these for every Process
    @{Id=5800; ProcessName=AggregatorHost; Handles=88; NPM=6112; PM=1200128; WS=2211840; VM=2203375075328; CPU=1,0625; Path=C:\WINDOWS\System32\AggregatorHost.exe}

    Similarly in PowerShell typing $Processes would get us a lot of things like this
    Code:
         #       Id          : 5800
    #            ProcessName : AggregatorHost
    #          Handles     : 88
    #           NPM         : 6112
    #           PM          : 1200128
    #           WS          : 2211840
    #           VM          : 2203375075328
    #           CPU         : 1,0625
    #           Path        : C:\WINDOWS\System32\AggregatorHost.exe
    The next line,
    ( and a similar one used a bit further down in the main function Loop for all processes, ForEach ($Process in $Processes){ ),
    could do with some elaboration possibly
    $AProcessProperties = $Processes[0].psObject.Properties
    ( _____ $Process.psObject.Properties )
    The way the script uses those last two lines, is such that $AProcessProperties is going to be the same as the first one of $Process.psObject.Properties , because that lattter is used in ForEach ($Process in $Processes){

    psObject
    The best guess I can give for this at the moment is this:
    Things generally in PowerShell are objects, or can usually be taken/ used as if they were.
    The .psObject for a thing is some sort of wrapper allowing the PowerShell command type things to somehow make use of the newest sort of OOP stuff which often goes under the use of the word .Net
    Anoother approximation could be to say it returns something similar to the Class of the thing we apply it to. It then follows that the .Properties is going to return the object things.

    As it happens we seem to be going around in circles in the given script that accompanies the video:
    We started with these, Id,ProcessName,Handles,NPM,PM,WS,VM,CPU,Path , and the two script bits using the .psObject seem to have the main purpose of returning them.

    Perhaps I can save a lot of time by giving a version of the given script, and then a script that seems to do exactly the same!
    Code:
     Function GetProcesses{
     $listview_Processes.Items.Clear()
     $listview_Processes.Columns.Clear()
     $Processes = Get-Process | Select Id,ProcessName,Handles,NPM,PM,WS,VM,CPU,Path
     $ProcessProperties = $Processes[0].psObject.Properties
     $ProcessProperties | ForEach-Object { $listview_Processes.Columns.Add("$($_.Name)") }
        ForEach ($Process in $Processes){
         $ProcessListViewItem = New-Object System.Windows.Forms.ListViewItem($Process.Id)
         $Process.psObject.Properties | Where {$_.Name -ne "Id"} | ForEach-Object {
                                 $ColumnName = $_.Name ;  $ProcessListViewItem.SubItems.Add("$($Process.$ColumnName)") 
                                                                                   }
         $listview_Processes.Items.Add($ProcessListViewItem) 
        }
     $listview_Processes.AutoResizeColumns("HeaderSize")
    }
    Code:
     Function GetProcesses{
     $listview_Processes.Items.Clear()
     $listview_Processes.Columns.Clear() 
     $Processes = Get-Process | Select-Object Id,ProcessName,Handles,NPM,PM,WS,VM,CPU,Path
        ForEach ($Hdr in @("Id", "ProcessName", "Handles", "NPM", "PM", "WS", "VM", "CPU", "Path")){$listview_Processes.Columns.Add($Hdr)}  
        ForEach ($Process in $Processes){           
         $ProcessListViewItem = New-Object System.Windows.Forms.ListViewItem($Process.Id) 
            ForEach ($Hdr in @( "ProcessName", "Handles", "NPM", "PM", "WS", "VM", "CPU", "Path")){$ProcessListViewItem.SubItems.Add("$($Process.$Hdr)")}  
            $listview_Processes.Items.Add($ProcessListViewItem)  
         }
     $listview_Processes.AutoResizeColumns("HeaderSize")
    }


    Here is a comparison of a Write-Host line added to show for the first psObject returned thing, and then the same got from the PowerShell window
    Code:
     int Id=5236 string ProcessName=AggregatorHost int Handles=88 long NPM=6112 long PM=1142784 long WS=5099520 long VM=2203375075328 System.Double CPU=0,578125 System.String Path=C:\WINDOWS\System32\AggregatorHost.exe
    Code:
      PS C:\WINDOWS\system32> $Processes = Get-Process | Select Id,ProcessName,Handles,NPM,PM,WS,VM,CPU,Path
    PS C:\WINDOWS\system32> $ProcessProperties = $Processes[0].psObject.Properties
    PS C:\WINDOWS\system32> $ProcessProperties 
    
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 5236
    TypeNameOfValue : System.Int32
    Name : Id
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : AggregatorHost
    TypeNameOfValue : System.String
    Name : ProcessName
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 88
    TypeNameOfValue : System.Int32
    Name : Handles
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 6112
    TypeNameOfValue : System.Int64
    Name : NPM
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 1142784
    TypeNameOfValue : System.Int64
    Name : PM
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 5099520
    TypeNameOfValue : System.Int64
    Name : WS
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 2203375075328
    TypeNameOfValue : System.Int64
    Name : VM
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : 0,578125
    TypeNameOfValue : System.Double
    Name : CPU
    IsInstance : True
    MemberType : NoteProperty
    IsSettable : True
    IsGettable : True
    Value : C:\WINDOWS\System32\AggregatorHost.exe
    TypeNameOfValue : System.String
    Name : Path
    IsInstance : True
    Last edited by DocAElstein; 04-19-2022 at 12:08 AM.

  2. #522
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10

    Bollox

    just testing

    test test

    This is not a love song
    This is post https://www.excelfox.com/forum/showt...ge53#post12797
    https://http://www.excelfox.com/forum/showth...ge53#post12797
    https://www.excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page53#post12797
    https://tinyurl.com/2p82naym




    I can comment here easily , and have lots of format to mess with to make it pretty

    _SomeThingsInThePipe | ForEach ( {
    ___ $_.doingstuff
    ___ $SomethingElse = $_.Something
    __ } )




    Code:
    'https://excelfox.com/forum/showthread.php/2559-Notes-tests-text-files-manipulation-of-text-files-in-Excel-and-with-Excel-VBA/page5
    'https://excelfox.com/forum/showthread.php/2559-Notes-tests-text-files-manipulation-of-text-files-in-Excel-and-with-Excel-VBA?p=16480&viewfull=1#post16480
    'https://excelfox.com/forum/showthread.php/2559-Notes-tests-text-files-manipulation-of-text-files-in-Excel-and-with-Excel-VBA/page5#post16480
    Sub CopyExcelColumnSpamURL()
    Selection.Copy ' This will put it in the clipboard
    
    'Dim objCliCodeCopied As DataObject   '**Early Binding.   This is for an Object from the class MS Forms. This will be a Data Object of what we "send" to the Clipboard. So I name it CLIpboardSend. But it is a DataObject. It has the Methods I need to send text to the Clipboard
    ' Set objCliCodeCopied = New DataObject '**Must enable Forms Library: In VB Editor do this:  Tools -- References - scroll down to Microsoft Forms 2.0 Object Library -- put checkmark in.  Note if you cannot find it try   OR IF NOT THERE..you can add that manually: VBA Editor -- Tools -- References -- Browse -- and find FM20.DLL file under C:\WINDOWS\system32 and select it --> Open --> OK.     https://web.archive.org/web/20140610055224/http://excelmatters.com/2013/10/04/late-bound-msforms-dataobject/
    ' ( or instead of those two lines  Dim obj As New DataObject ).    or  next two lines are.....Late Binding equivalent'
    Dim objCli As Object '  Late Binding equivalent'   If you declare a variable as Object, you are late binding it.  https://web.archive.org/web/20141119223828/http://excelmatters.com/2013/09/23/vba-references-and-early-binding-vs-late-binding/
     Set objCli = GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}") ' https://web.archive.org/web/20140610055224/http://excelmatters.com/2013/10/04/late-bound-msforms-dataobject/
     objCli.GetFromClipboard 'All that is in the Clipboard goes in this Data Object initial instance of the Class
    Dim SpamURLs As String ' String varable to take the moodified code. This can be very long,                                                                                            like my cock
     Let SpamURLs = objCli.GetText() 'retrieve the text in the initial instance of the Class. ( In this case the original code modifies to have code lines )
    ' Call WtchaGot_Unic_NotMuchIfYaChoppedItOff(SpamURLs)
     
    Let SpamURLs = Replace(SpamURLs, vbCr & vbLf, "[/uRl]" & vbCr & vbLf, 1, -1, vbBinaryCompare)
    Let SpamURLs = Replace(SpamURLs, "http", "[uRl]http", 1, -1, vbBinaryCompare)
     
     ' Make a data Object to put back in clipboard. This a Another Object from class just to demo, could have used the first
    'Dim objDatCliBackIn As DataObject
    ' Set objDatCliBackIn = New DataObject 'Set to a new Instance ( Blue Print ) of dataobject
    Dim objDatCliBackIn As Object
     Set objDatCliBackIn = GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
     objDatCliBackIn.SetText "Alan Spam Tests" & vbCr & vbLf & SpamURLs  'Make Data object's text equal to the long string of the modified code
     objDatCliBackIn.PutInClipboard 'Place current Data object into the Clipboard, effectivelly putting its text, which is oue final code in the Clipcoard
    End Sub
    Last edited by DocAElstein; 04-15-2022 at 02:43 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

  3. #523
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Github Updates and Obsidian Wizardry 22 04 2022

    Chris did a live stream of some relevance so,
    _ first some notes, part of which might be used in some comments, so they might appear as if I am talking to Chris.
    _ based on the changes I will update my Temp11.ps1 to Temp12.ps1

    Initially he talks about some software, Obsidian. I have no idea about that. A quick glance looks like it’s a limited less useful platform to do what I do at my well organised forum. But when I check it out, I might change my ideas. Its easy to get used to something, then think it’s the best. You do that frequently, and then change your mind, later. That’s cool

    He started looking at GitHub, at minute 36 He is going to close a lot as he is going to re write drastically the win 10 debloater script. That might include your idea to try out WPF.
    (1 Hr 10Min 55Secs, https://youtu.be/mXrmy8T74lM?t=4255 , check out there: You used 1440, untypical low for you, and you went on further at 1Hr 13Min 30Secs , https://youtu.be/mXrmy8T74lM?t=4410 , to bring up again the issue of WPF v WindowsForms , ( https://youtu.be/mXrmy8T74lM?t=4425 1hr 13min 45 secs ) )

    He started looking at Pull requests, PRs…
    PR #305 d4rklynk, add Librewolf
    Has some useful stuff, Chris couldn’t be bothered and was confused as everyone is in how things get linked to other peoples stuff in at GitHub, so he just closed it. (Librewolf may have been trying to link to his stuff, but it could partly be that Chris or both of them don’t understand GitHub completely)

    PR #304 SimPilotAdamT, Fix issue #299 and #302
    Good one – stops the “Task manager extra details bit hanging” – I think I noticed something screwy there myself once so was added that to latest version, and I will

    _.____
    After this Chris broke off a bit and decided to get a virtual machine up and test before doing more Merge/Commit stuff
    He went for a Windows 11 virtual machine up, and as usual got in a muddle,
    At min 42 30 https://youtu.be/mXrmy8T74lM?t=2550 he does windows 11 because he thinks most of us have switched.
    ( I think- Issues will be sorted out by chance I expect, which will take a while, and I don’t have the extra resources to be a Guinea Pig on windows 11
    So I am partially beginning to be switched to windows 11, but not as regards using Debloat scripts for a good improved and speeded up versions )
    It did not work, so he ended up using a windows 10.

    At Minute 50 , 30 secs ( https://youtu.be/mXrmy8T74lM?t=3030 ) , seconds you were not sure about recent windows 10 versions:
    21H2 was the latest released in middle November 2021
    ( From about that date until the current time, I had a few standard earlier versions, mostly connected to the internet permanently and mostly on default update settings. Microsoft never updated them surprisingly. One I forced to update, and it took a very long time, but was finally successful. Perhaps MS were uncharacteristically not in a rush to update on this one)

    Back to the PRs
    1 16 30 back to pull requests https://youtu.be/mXrmy8T74lM?t=4590

    PR Mrhaydendp #308 Batch Installer for WinGet
    A good one. Chris totally missed the point 1 Hr 19 you did not take the time to do justice to the batch instillation PR
    I think you should not get too excited by any particular way about installing winget. I have seen it vary which works from time to time, and most likely will continue to do so. Better would be to concentrate your efforts on some script to try a few ways, and pick the one that might work.
    (And betters still either
    _ don’t install stuff at all
    Or
    _ make it more bullet proof as I mentioned and even further perhaps to allow chocolaty install alternative. )


    1Hr 19Min 35secs host ( https://youtu.be/mXrmy8T74lM?t=4775 ) general comments on etc hosts, then on to the PR that was a major part of the Video, 1Hr 20Min 45Secs #306
    PR Brandonbr1 #306 Add a script to block ads and include things from the scripts folder into the actual main file the people download
    Chris liked most, ( takes out an anti spyware line
    # Disabling Antispyware flags script as virus and also doesn't work with anti-tamper measures introduced in 20H2+
    # Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 00000001
    )
    Chris loves the stuff at 1 22 22 , https://youtu.be/mXrmy8T74lM?t=4950 - The Guy is doing a NetSH to do a firewall

    An interesting comment from someone else on the PR Windows Defender (and most other antiviruses) has a history of blocking files that modify the hosts file due to it being a common technique used by viruses to create a backdoor in people's systems. This might be why there isn't a hosts file blocking implementation in the script yet. Also might be because hosts file blocking can introduce problems for people who use sites like Microsoft and Google services. Having it as a separate script might be best .
    Chris at 1 22 30 :
    , - “This is why I love G__H__ - go through PRs before you get a great one , like this one…”
    ( some time earlier Chris said he should test stuff before committing/Merging. But he forgot that, and committed/Merged this one, because he loved it so much )

    Chris a few minute later, still on the same PR –
    , - The TLDR: He was very, very, very upset by that PR – “Sometimes I hate PRs and wish I just code it all myself”

    _.. Another G__H__ fuck up
    But is good to see the development, ( or not ), on a Live stream. And entertaining
    ( Maybe you were a bit hard on the guy, Brandonbr1.
    OK, it broke stuff for you. You easily fixed it. Sometimes your script brakes stuff for others. Often they can’t fix it.

    ( 1Hr 27Min 50secs:- Chris you like Terminal. I don’t know much about these things myself, but some people smarter than me tell me that Terminal will probably go under when the open source PowerShell 7 becomes widely used )

    So.. the fuck up_
    On testing he was concerned that the write-host did not appear?
    There seemed to be some other errors
    I think he did some repair to fix the bad PR – after changing some things, ( mostly deleting stuff, he somehow did a GitHub PR repair Push/Commit/Merge or whatever, called Fix bad PR.
    Fix bad PR. Fuck up


    A re run in terminal seemed to error similarly, or maybe not after a refresh / wait. .. It then seemed to work .. got as far as ..”blocking Ip telemetry”.
    Then a bit after Chris was very, very, very upset… He vanished behind the scenes with a cable, …
    The repair details are summarised here : 1Hr 49min summarised fix https://youtu.be/mXrmy8T74lM?t=6558
    _.____

    Back to other Pull requests
    PR THEBOSSMAGNUS #298, Add microsoft visual c++ runtime
    Chris left it open

    Sparker-99 #291 ,Added waterfox install
    Chris don’t like that browser so closed it

    Sighi-04 #286 Fixed dead package name for adobe reader installer
    Simple one line change, Chris accepted
    684 winget install -e Adobe.AdobeAcrobatReaderDC | Out-Host
    684 winget install -e --id Adobe.Acrobat.Reader.64-bit | Out-Host


    Carterpersall #285 Tweaked a Few Things and Resolved Several Issues
    Looks like GitHub made it messy, and Chris was too tired and fed up to look at it, or he may hve hidden it in a branch. God knows. I doubt anyone else does
    Hit Files changed to take a look ( https://i.postimg.cc/Cdp50XVH/Hit-Fi...ske-a-look.jpg ) These may be individual files

    Myxxmikeyxx #282 Added Git For Windows Button Option
    This was to add a button, but Chris liked the idea, and said he will put it into Github Desktop button instead of another installer, and he may have done it.. I will need to check the $githubdsktop.Add_Click{(


    I liked your comments towards the end, of you wanting your own place, in parallel to anything or anywhere else that you do stuff, so as to keep some sort of longevity. That is exactly what I think about my forum. For a year or two I am mostly in the background trying to understand how to maintain it, reliably.
    Although I don’t always approve of some of the addicts, some of whom I think are psychos, spending all of their life at forums, some do have it as the most important part of their life.
    A few are nice people, just a bit lonely and sad, in their old age, with nothing better that they are able to do. They do provide a service from which others benefit. In recent years, some forums have vanished without warning, or some places been changed to read only. That has been very unkind to some of these people.



    Update Temp11.ps1 to Temp12.ps1 from Chris23April2022.ps1

    As usual, I would like to keep up to date with Chris’s development, so I add lines to my latest, Temp11.ps1 , using the latest from Chris, , to know where the lines are needed.
    Either the linnes are
    _ left empty
    or
    _ include all or part of what Chris has there: the purpose of that is.
    The purpose of that is to either use, and/ or make it easier to compare future versions of Chris’s script with mine.

    To do this I typically put the two files side by side in their own window ( ISE or Notepad++) , , and scroll down making a changes as I go along to keep similar code lines at the same place, as much as possible…




















    Share ‘Temp11.ps1’ https://app.box.com/s/5btpnc72fbvn5biewfjirdq038xhkqvm
    Share ‘Chris23April2022.ps1’ https://app.box.com/s/hauwxph4624bo5j5xlq6nu6pxda3sdme



    9.34 Live - Github Updates and Obsidian Wizardry-mXrmy8T74lM_22 04 2022
    https://drive.google.com/file/d/1viq...?usp=drive_web
    https://www.youtube.com/watch?v=mXrmy8T74lM
    https://drive.google.com/file/d/1WdA...?usp=drive_web
    https://drive.google.com/file/d/1Y-W...?usp=drive_web
    Attached Images Attached Images
    Last edited by DocAElstein; 04-24-2022 at 09:40 PM.

  4. #524
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Update Temp11.ps1 to Temp12.ps1 from Chris23April2022.ps1


    It looks like I might have accidentally added 2-3 empty lines from 577, so I took those out. Then I am back in sinc
    A single space line discrepancy at about 771, possibly my error again


    A single line has been used to include the extra Git.Git, so I take that ,

    From 983 we make the change for the If on task manager, which looks as though I need two extra lines,

    From 1026, # Network Tweaks has been shifted down for a # reducing ram via regedit I take that for now as it is , , ---

    Had a line out of wach , took out a line just before #Laptopnumlock to bring it back in sinc


    That’s it??
    So it looks like the entire host blocking ( P Request, Brandonbr1 #306 ) got missed out. The video suggested you wanted to , and did have, at least some of it still there.
    Probably another dimension to disaster that G__ Hub is: A G__ Hub F___ up on top of a G__ Hub F___ up












    Share ‘Temp11.ps1’ https://app.box.com/s/5btpnc72fbvn5biewfjirdq038xhkqvm
    Share ‘Chris23April2022.ps1’ https://app.box.com/s/hauwxph4624bo5j5xlq6nu6pxda3sdme

    Share ‘Temp12.ps1’ https://app.box.com/s/6q5kboz1pqj28o5vcsoja8w5xoxvxwfu
    Last edited by DocAElstein; 04-24-2022 at 09:37 PM.

  5. #525
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10

    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.
    Get-Formvariables.jpg
    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


    Last edited by DocAElstein; 05-13-2022 at 02:11 PM.

  6. #526
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10

    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
    Last edited by DocAElstein; 05-14-2022 at 01:34 PM.

  7. #527
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    On Friday the 13th on his Live stream, ( which was on some obscure thing that I have no idea about ) he mentioned at the beginning just briefly the new WPF winutil,
    https://www.youtube.com/watch?v=yVEivfbJi1g&t=160s , says its not quite there and he will take the unusual step for him of launching a kind of alpha type release tomorrow Saturday 14 May, 2022. (He says he made a soft launch on Wednesday 11 may, 2022 ?)

    He gives a way to launch it from PowerShell ( or terminal ) Shell window, ###

    __ iwr –useb https://christitus.com/win | iex

    iwr : Invoke web request

    -useb : Just a kind of way to take the address

    https://christitus.com/win : This takes you to raw latest ( at Git Hub ) ( It re directs to https://raw.githubusercontent.com/Ch...in/winutil.ps1 )
    ( https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1 )

    | iex : Pipes you into the iex







    As announced, Chris uploaded on Saturday 14 May, 2022.
    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
    Last edited by DocAElstein; 05-19-2022 at 03:47 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

  8. #528
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10

    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

    _.____________________


    Here is the screenshot of the full commands and actions taken in the PowerShell window, ( and below is the exe I made !!! )
    __

    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.exehttps://app.box.com/s/x6smoishgjjzurpo5of7jhxxl1pbuvni

    made from this ps1 File:
    Share ‘ChrisWPFTuesday10May2022.ps1 https://app.box.com/s/zvxfm8upvij18kirbh0i6g6qbenlra27
    Last edited by DocAElstein; 05-19-2022 at 04:18 PM.

  9. #529
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    This is post https://excelfox.com/forum/showthrea...ge53#post12804
    https://excelfox.com/forum/showthread.php/2408-Windows-10-and-Office-Excel/page53#post12804



    https://i.postimg.cc/0NrV5zWj/WPF-10-17-and-17-May.jpg






    Some Pull Request stuff done 17 May, 2022

    ( aka another GitHub confused catastrophe
    Issues and Pull requests are stacking up, and Chris is already starting to get in a mess and loose control. ( He has introduced some Nursery school type templates people have to confirm to, which doesn’t help either: He has implemented just some of the Pull Requests, and is perhaps just randomly tackling some of the issues, and at the same time introducing some poxy dopey changes.
    I think Chris may be in danger of becoming the thing he swore to destroy….)


    Summary of changes, all in one go on 17May, ( or maybe (i) , (ii) , and then (iii) ):
    _ (i) Carterpersall tidied up the services and the comments on them, and did some other formatting of script indents
    _ (ii) Chris did some changes to the xml ?? https://i.postimg.cc/fR8Hhcv1/Git-Hu...Update-XML.jpg


    See https://excelfox.com/forum/showthrea...ll=1#post16495
    https://excelfox.com/forum/showthrea...age8#post16495


    decoupling xaml and ps1
    _ (iii) This next change calls up XML thing from a separate, MainWindow.xaml https://raw.githubusercontent.com/Ch...ainWindow.xaml
    Share ‘MainWindow_xami - StandAloneXML17May.txt’ https://app.box.com/s/lrf37fuhegad3jfgjltzlmckmw33lpj2
    Share ‘MainWindow.xaml’ https://app.box.com/s/3b6v4zmgb6njamh6khyqe44zpk7cmaak
    https://i.postimg.cc/fR8Hhcv1/Git-Hu...Update-XML.jpg







    It’s all a total mess. It looks like he changed something he was never using to update it to what he was using: It seems that the full script from 10 May, the full script from just before the last change (ii) on 17May, and the stand alone XLM in change (iii) all have the same XML stuff. (The big mystery seems to be for now where and what the previous XML used by Chris in (ii) has anything to do with anything anywhere. Possibly just another GitHub confused catastrophe
















    Share ‘ChrisWPFTuesday10May2022.ps1’ https://app.box.com/s/end0t4spyl119iiixw9va922hdft4icx


    Mistery Red and Green stuff https://github.com/ChrisTitusTech/wi...d6f8ac9bee5a64
    Share ‘ChrisWPF17May2022(ii).ps1’ https://app.box.com/s/yrzoikeg9coggyt99ofin18f2cxkf849
    Share ‘May10-17XML.txt’ https://app.box.com/s/ykynprd9a3ra4w7kcif4h5ziubwktw2t
    Share ‘May17XML.txt’ https://app.box.com/s/gsqjpfmmqwpadmu8wchjrlfrqxwrrg6e



    The new thng thing (iii) , https://github.com/ChrisTitusTech/wi...89e4d5d2923b63
    https://i.postimg.cc/fR8Hhcv1/Git-Hu...Update-XML.jpg
    https://i.postimg.cc/90y83sxB/The-new-thing-iii.jpg
    https://i.postimg.cc/vHd27HB2/The-ne...-thing-iii.jpg
    https://raw.githubusercontent.com/Ch...ainWindow.xaml
    Share ‘MainWindow_xami - StandAloneXML17May.txt’ https://app.box.com/s/lrf37fuhegad3jfgjltzlmckmw33lpj2
    Share ‘MainWindow.xaml’ https://app.box.com/s/3b6v4zmgb6njamh6khyqe44zpk7cmaak

    Share ‘ChrisWPF17May2022.ps1’ https://app.box.com/s/lrzeyx55hjksedzrr649snrxfmfyvtkm
    Share ‘ChrisWPF17May2022(iii).ps1’ https://app.box.com/s/7u4lxbwrgubxgf37tduzx0e22s49alvf
    Last edited by DocAElstein; 05-20-2022 at 02:08 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

  10. #530
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,313
    Rep Power
    10
    Some Issues / Pull requests and other GitHub chaos confusion

    https://github.com/ChrisTitusTech/wi...d0dff82da4ab46
    Changing the PowerThrottlingOff key previously errored as the directory PowerThrottling does not exist by default
    - Fixed by adding a check in two places for the PowerThrottling directory, and if it does not exist it creates it,
    If(!(Test-Path "HKCU:\SYSTEM\CurrentControlSet\Control\Power\Power Throttling")){New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power" -Name "PowerThrottling"}

    From Chris…. commented May 13, 2022 https://github.com/ChrisTitusTech/winutil/pull/3
    The main issue with this PR is that it simply fails to do anything with Power Throttling by removing that path lines. A cleaner way is the complete removal of Power Throttling all together and the removal of it from the GUI. … I'm inclined to just remove the entire bit of code as it seems to have hurt more than helped. So I will close this PR and submit a new version with the full removal of Power Throttling.
    Last edited by DocAElstein; 05-24-2022 at 01:41 AM.

Similar Threads

  1. Tests and Notes on Range Referrencing
    By DocAElstein in forum Test Area
    Replies: 70
    Last Post: 02-20-2024, 01:54 AM
  2. Tests and Notes for EMail Threads
    By DocAElstein in forum Test Area
    Replies: 29
    Last Post: 11-15-2022, 04:39 PM
  3. Replies: 39
    Last Post: 03-20-2018, 04:09 PM
  4. Notes tests. Excel VBA Folder File Search
    By DocAElstein in forum Test Area
    Replies: 39
    Last Post: 03-20-2018, 04:09 PM
  5. Replies: 2
    Last Post: 12-04-2012, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •