Compare commits

...

10 commits

Author SHA1 Message Date
OlaYZen
2223230719
Update Script PREVIEW.ps1 2022-09-19 13:01:29 +02:00
OlaYZen
49ca19624a
[PREVIEW] V1.2.4 2022-09-19 12:51:59 +02:00
OlaYZen
9feb57282f
Update README.md 2022-09-19 11:25:41 +02:00
bbe5dd9769 Updated Preview readme 2022-09-19 09:51:07 +02:00
b42533b2a9 updated preview image 2022-09-19 09:48:01 +02:00
2571ea9d17 Updated Preview readme 2022-09-19 09:47:17 +02:00
7086247aa8 Updated readme Preview 1.2.3 2022-09-19 09:39:20 +02:00
74396ea103 Updated preview readme 2022-09-19 09:36:22 +02:00
2fe0b16bf5 Preview Readme update 2022-09-19 09:34:07 +02:00
6d9bec7764 [PREVIEW] V1.2.3 2022-09-19 09:28:08 +02:00
6 changed files with 63 additions and 396 deletions

BIN
Image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1,20 +0,0 @@
Copyright (c) 2022 Olai Vike Bøe
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -1,9 +1,10 @@
# **How to start the program** [<img src="https://raw.githubusercontent.com/OlaYZen/Windows-Update/Preview/Image.png"/>](https://raw.githubusercontent.com/OlaYZen/Windows-Update/Preview/Script%20PREVIEW.ps1)
# PREVIEW BUILDS
These can crash, and may be unstable and they will not have a link version
## How to start the program
If you dont know how to run it, Just stay away. Use the Main / Stable version
Open a [Elevated Windows Powershell Window](https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7.2#with-administrative-privileges-run-as-administrator), and type:
```
iwr -useb https://tinyurl.com/OlaYZenWinUpdates | iex
```
or Download and run Script.ps1
## **Credits** ## **Credits**
Me and only me :( Me and only me :(

View file

@ -6,10 +6,16 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
if (Get-Module -ListAvailable -Name PSWindowsUpdate) { if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Write-Host "PSWindowsUpdate exists" Write-Host "PSWindowsUpdate exists"
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Import-Module PSWindowsUpdate
}
} }
else { else {
Write-Host "PSWindowsUpdate does not exist, Installing ..." Write-Host "PSWindowsUpdate does not exist, Installing ..."
Install-Module PSWindowsUpdate -force Install-Module PSWindowsUpdate -force
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Import-Module PSWindowsUpdate
}
} }
function installwingetjson function installwingetjson
{ {
@ -39,25 +45,47 @@ function CheckBoxFunc {
$button5.Visible = $true $button5.Visible = $true
$button6.Visible = $false $button6.Visible = $false
} }
$button5reboot }
function CheckBoxFunc2 {
if ($checkBox2.Checked)
{
$button8.Visible = $true
$button1.Visible = $false
}
else
{
$button8.Visible = $false
$button1.Visible = $true
}
} }
function GetWindowsUpdates { function GetWindowsUpdates {
( (
Get-WindowsUpdate -AcceptAll -Install Get-WindowsUpdate -AcceptAll -WindowsUpdate -ForceDownload
) )
$button1.Visible = $false $button1.Visible = $false
$button8.Visible = $false
} }
function GetWindowsUpdates2 {
(
Get-WindowsUpdate -AcceptAll -MicrosoftUpdate -ForceDownload
)
$button1.Visible = $false
$button8.Visible = $false
}
function UpdateWindowsUpdatesnoReboot { function UpdateWindowsUpdatesnoReboot {
( (
Install-WindowsUpdate -Confirm -AcceptAll Install-WindowsUpdate -Confirm -AcceptAll -ForceInstall
) )
} }
function UpdateWindowsUpdateswithReboot { function UpdateWindowsUpdateswithReboot {
( (
Install-WindowsUpdate -Confirm -AcceptAll -AutoReboot Install-WindowsUpdate -Confirm -AcceptAll -AutoReboot -ForceInstall
) )
} }
@ -92,6 +120,16 @@ $button1.TabIndex = 0
$button1.Text = "Get Windows Updates" $button1.Text = "Get Windows Updates"
$button1.Add_Click({GetWindowsUpdates}) $button1.Add_Click({GetWindowsUpdates})
[System.Windows.Forms.Application]::EnableVisualStyles()
$button8 = New-Object System.Windows.Forms.Button
$button8.Location = '12, 5'
$button8.Name = "Get Windows Updates"
$button8.Size = '95, 55'
$button8.Visible = $false
$button8.TabIndex = 0
$button8.Text = "Get Windows Updates"
$button8.Add_Click({GetWindowsUpdates2})
[System.Windows.Forms.Application]::EnableVisualStyles() [System.Windows.Forms.Application]::EnableVisualStyles()
$button5 = New-Object System.Windows.Forms.Button $button5 = New-Object System.Windows.Forms.Button
$button5.Location = '12, 5' $button5.Location = '12, 5'
@ -148,11 +186,17 @@ $button4.Text = "Edit Winget Software"
$button4.Add_Click({EditWinget}) $button4.Add_Click({EditWinget})
$checkBox = new-object System.Windows.Forms.checkbox $checkBox = new-object System.Windows.Forms.checkbox
$checkBox.Location = '12, 55' $checkBox.Location = '12, 65'
$checkBox.Size = '95, 55' $checkBox.Size = '85, 15'
$checkBox.Text = "AutoReboot" $checkBox.Text = "AutoReboot"
$checkBox.Add_Click({CheckBoxFunc}) $checkBox.Add_Click({CheckBoxFunc})
$checkBox2 = new-object System.Windows.Forms.checkbox
$checkBox2.Location = '12, 65'
$checkBox2.Size = '95, 55'
$checkBox2.Text = "Microsoft Update"
$checkBox2.Add_Click({CheckBoxFunc2})
$AutoReboot = New-Object System.Windows.Forms.TextBox $AutoReboot = New-Object System.Windows.Forms.TextBox
$AutoReboot.Location = '12, 175' $AutoReboot.Location = '12, 175'
$AutoReboot.Multiline = $true $AutoReboot.Multiline = $true
@ -173,17 +217,18 @@ $VersionLabel.Location = '216, 90'
#Preview Label #Preview Label
$VersionLabel.Name = 'Versionlabel' $VersionLabel.Name = 'Versionlabel'
$VersionLabel.Text = "Version 1.2.3 PREVIEW" $VersionLabel.Text = "Version 1.2.4 PREVIEW"
$VersionLabel.Size = '490, 500' $VersionLabel.Size = '490, 500'
$Form = New-Object System.Windows.Forms.Form $Form = New-Object System.Windows.Forms.Form
$Form.StartPosition = "CenterScreen" $Form.StartPosition = "CenterScreen"
$Form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog $Form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog
$Form.Name = "Form" $Form.Name = "mainForm"
$Form.Text = "Windows and Winget Updates" $Form.Text = "Windows and Winget Updates"
$Form.MaximizeBox = $False $Form.MaximizeBox = $False
$Form.ShowInTaskbar = $true $Form.ShowInTaskbar = $true
$Form.Controls.Add($button1) $Form.Controls.Add($button1)
$Form.Controls.Add($button8)
$Form.Controls.Add($button2) $Form.Controls.Add($button2)
$Form.Controls.Add($button3) $Form.Controls.Add($button3)
$Form.Controls.Add($button7) $Form.Controls.Add($button7)
@ -191,6 +236,7 @@ $Form.Controls.Add($button4)
$Form.Controls.Add($button5) $Form.Controls.Add($button5)
$Form.Controls.Add($button6) $Form.Controls.Add($button6)
$Form.Controls.Add($checkBox) $Form.Controls.Add($checkBox)
$Form.Controls.Add($checkBox2)
$Form.Controls.Add($AutoReboot) $Form.Controls.Add($AutoReboot)
$Form.Controls.Add($VersionLabel) $Form.Controls.Add($VersionLabel)
$Form.Controls.Add($RichTextBoxDisplay) $Form.Controls.Add($RichTextBoxDisplay)

File diff suppressed because one or more lines are too long

View file

@ -1,144 +0,0 @@
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2022-08-28T01:02:19.143-00:00",
"Sources" :
[
{
"Packages" :
[
{
"PackageIdentifier" : "File-New-Project.EarTrumpet"
},
{
"PackageIdentifier" : "7zip.7zip"
},
{
"PackageIdentifier" : "ShareX.ShareX"
},
{
"PackageIdentifier" : "BraveSoftware.BraveBrowser"
},
{
"PackageIdentifier" : "Rufus.Rufus"
},
{
"PackageIdentifier" : "Discord.Discord"
},
{
"PackageIdentifier" : "GitHub.GitHubDesktop"
},
{
"PackageIdentifier" : "Git.Git"
},
{
"PackageIdentifier" : "HandBrake.HandBrake"
},
{
"PackageIdentifier" : "Iriun.IriunWebcam"
},
{
"PackageIdentifier" : "TranslucentTB.TranslucentTB"
},
{
"PackageIdentifier" : "Microsoft.WindowsTerminal"
},
{
"PackageIdentifier" : "Notepad++.Notepad++"
},
{
"PackageIdentifier" : "Parsec.Parsec"
},
{
"PackageIdentifier" : "Plex.Plex"
},
{
"PackageIdentifier" : "Valve.Steam"
},
{
"PackageIdentifier" : "Wox.Wox"
},
{
"PackageIdentifier" : "TechPowerUp.GPU-Z"
},
{
"PackageIdentifier" : "NordPassTeam.NordPass"
},
{
"PackageIdentifier" : "voidtools.Everything"
},
{
"PackageIdentifier" : "Microsoft.VC++2013Redist-x64"
},
{
"PackageIdentifier" : "DuongDieuPhap.ImageGlass"
},
{
"PackageIdentifier" : "NordVPN.NordVPN"
},
{
"PackageIdentifier" : "Microsoft.VC++2010Redist-x64"
},
{
"PackageIdentifier" : "Microsoft.DotNet.DesktopRuntime.6"
},
{
"PackageIdentifier" : "Oracle.JavaRuntimeEnvironment"
},
{
"PackageIdentifier" : "Microsoft.VC++2012Redist-x86"
},
{
"PackageIdentifier" : "Microsoft.VC++2015-2022Redist-x64"
},
{
"PackageIdentifier" : "Microsoft.VC++2008Redist-x64"
},
{
"PackageIdentifier" : "Microsoft.PowerToys"
},
{
"PackageIdentifier" : "Microsoft.VisualStudioCode"
},
{
"PackageIdentifier" : "Microsoft.DotNet.SDK.6"
},
{
"PackageIdentifier" : "Microsoft.VC++2008Redist-x86"
},
{
"PackageIdentifier" : "VideoLAN.VLC"
},
{
"PackageIdentifier" : "Microsoft.VC++2010Redist-x86"
},
{
"PackageIdentifier" : "Oracle.JDK.18"
},
{
"PackageIdentifier" : "EpicGames.EpicGamesLauncher"
},
{
"PackageIdentifier" : "Microsoft.VC++2015-2022Redist-x86"
},
{
"PackageIdentifier" : "Microsoft.DotNet.DesktopRuntime.6"
},
{
"PackageIdentifier" : "Microsoft.VC++2012Redist-x64"
},
{
"PackageIdentifier" : "Microsoft.DotNet.DesktopRuntime.6"
}
],
"SourceDetails" :
{
"Argument" : "https://cdn.winget.microsoft.com/cache",
"Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name" : "winget",
"Type" : "Microsoft.PreIndexed.Package"
}
}
],
"WinGetVersion" : "1.4.2161-preview"
}