diff --git a/EnhanceWindows.ps1 b/EnhanceWindows.ps1 index 42498f9..662eb22 100644 --- a/EnhanceWindows.ps1 +++ b/EnhanceWindows.ps1 @@ -40,19 +40,12 @@ write-host " " - +$Branch = 'Newest' powershell.exe -WindowStyle Hidden -file > $null - -#Invoke-WebRequest -Uri https://raw.githubusercontent.com/OlaYZen/PSXAML/main/MainWindow.xaml?token=GHSAT0AAAAAABZUKU5I2XAWPS2BI54QQXQUY3CMKVA -OutFile $PSScriptRoot"".\xamlui.xaml -#$xamlui = Import-Csv $PSScriptRoot"".\xamlui.xaml -#$xamlFile=$xamlui - - -#$inputXML="C:\Users\olai.boe\Documents\GitHub\PSXAML\MainWindow.xaml" -$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Newest/MainWindow.xaml") #uncomment for Production +$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/$Branch/MainWindow.xaml") #uncomment for Production $inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^ + Title="Enhance Windows" Height="325" Width="673" Topmost="True" ResizeMode="NoResize" Icon="https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Pre-Release-v1.1.7/Enhance%20Windows.png"> @@ -18,9 +18,9 @@ -