Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
|
2223230719 | ||
|
49ca19624a | ||
|
9feb57282f | ||
bbe5dd9769 | |||
b42533b2a9 | |||
2571ea9d17 | |||
7086247aa8 | |||
74396ea103 | |||
2fe0b16bf5 | |||
6d9bec7764 |
6 changed files with 63 additions and 396 deletions
BIN
Image.png
Normal file
BIN
Image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -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.
|
15
README.md
15
README.md
|
@ -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**
|
||||
Me and only me :(
|
||||
Me and only me :(
|
||||
|
|
|
@ -6,10 +6,16 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
|
|||
|
||||
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
|
||||
Write-Host "PSWindowsUpdate exists"
|
||||
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
|
||||
Import-Module PSWindowsUpdate
|
||||
}
|
||||
}
|
||||
else {
|
||||
Write-Host "PSWindowsUpdate does not exist, Installing ..."
|
||||
Install-Module PSWindowsUpdate -force
|
||||
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
|
||||
Import-Module PSWindowsUpdate
|
||||
}
|
||||
}
|
||||
function installwingetjson
|
||||
{
|
||||
|
@ -39,25 +45,47 @@ function CheckBoxFunc {
|
|||
$button5.Visible = $true
|
||||
$button6.Visible = $false
|
||||
}
|
||||
$button5reboot
|
||||
}
|
||||
|
||||
function CheckBoxFunc2 {
|
||||
if ($checkBox2.Checked)
|
||||
{
|
||||
$button8.Visible = $true
|
||||
$button1.Visible = $false
|
||||
}
|
||||
else
|
||||
{
|
||||
$button8.Visible = $false
|
||||
$button1.Visible = $true
|
||||
}
|
||||
}
|
||||
|
||||
function GetWindowsUpdates {
|
||||
(
|
||||
Get-WindowsUpdate -AcceptAll -Install
|
||||
Get-WindowsUpdate -AcceptAll -WindowsUpdate -ForceDownload
|
||||
)
|
||||
$button1.Visible = $false
|
||||
$button8.Visible = $false
|
||||
}
|
||||
|
||||
function GetWindowsUpdates2 {
|
||||
(
|
||||
Get-WindowsUpdate -AcceptAll -MicrosoftUpdate -ForceDownload
|
||||
)
|
||||
$button1.Visible = $false
|
||||
$button8.Visible = $false
|
||||
}
|
||||
|
||||
function UpdateWindowsUpdatesnoReboot {
|
||||
(
|
||||
Install-WindowsUpdate -Confirm -AcceptAll
|
||||
Install-WindowsUpdate -Confirm -AcceptAll -ForceInstall
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
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.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()
|
||||
$button5 = New-Object System.Windows.Forms.Button
|
||||
$button5.Location = '12, 5'
|
||||
|
@ -148,11 +186,17 @@ $button4.Text = "Edit Winget Software"
|
|||
$button4.Add_Click({EditWinget})
|
||||
|
||||
$checkBox = new-object System.Windows.Forms.checkbox
|
||||
$checkBox.Location = '12, 55'
|
||||
$checkBox.Size = '95, 55'
|
||||
$checkBox.Location = '12, 65'
|
||||
$checkBox.Size = '85, 15'
|
||||
$checkBox.Text = "AutoReboot"
|
||||
$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.Location = '12, 175'
|
||||
$AutoReboot.Multiline = $true
|
||||
|
@ -173,17 +217,18 @@ $VersionLabel.Location = '216, 90'
|
|||
#Preview Label
|
||||
|
||||
$VersionLabel.Name = 'Versionlabel'
|
||||
$VersionLabel.Text = "Version 1.2.3 PREVIEW"
|
||||
$VersionLabel.Text = "Version 1.2.4 PREVIEW"
|
||||
$VersionLabel.Size = '490, 500'
|
||||
|
||||
$Form = New-Object System.Windows.Forms.Form
|
||||
$Form.StartPosition = "CenterScreen"
|
||||
$Form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog
|
||||
$Form.Name = "Form"
|
||||
$Form.Name = "mainForm"
|
||||
$Form.Text = "Windows and Winget Updates"
|
||||
$Form.MaximizeBox = $False
|
||||
$Form.ShowInTaskbar = $true
|
||||
$Form.Controls.Add($button1)
|
||||
$Form.Controls.Add($button8)
|
||||
$Form.Controls.Add($button2)
|
||||
$Form.Controls.Add($button3)
|
||||
$Form.Controls.Add($button7)
|
||||
|
@ -191,6 +236,7 @@ $Form.Controls.Add($button4)
|
|||
$Form.Controls.Add($button5)
|
||||
$Form.Controls.Add($button6)
|
||||
$Form.Controls.Add($checkBox)
|
||||
$Form.Controls.Add($checkBox2)
|
||||
$Form.Controls.Add($AutoReboot)
|
||||
$Form.Controls.Add($VersionLabel)
|
||||
$Form.Controls.Add($RichTextBoxDisplay)
|
||||
|
@ -219,4 +265,4 @@ else
|
|||
|
||||
[void]$Form.ShowDialog()
|
||||
[void]$stream.Dispose()
|
||||
[void]$Form.Dispose()
|
||||
[void]$Form.Dispose()
|
||||
|
|
216
Script.ps1
216
Script.ps1
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue