Compare commits

...

43 commits

Author SHA1 Message Date
Olai
d73d692d3e
Update README.md 2024-02-22 12:20:59 +01:00
3fc1c76599 agooa 2022-09-29 12:14:11 +02:00
534f8a8924 awooga 2022-09-29 12:12:10 +02:00
1554bd6459 awooga 2022-09-29 12:11:47 +02:00
OlaYZen
d662c001f7
Update Script.ps1 2022-09-29 11:43:50 +02:00
OlaYZen
91ac97aa6f
Update README.md 2022-09-22 15:23:46 +02:00
OlaYZen
57e3e25790
Update README.md 2022-09-22 14:55:13 +02:00
OlaYZen
8fd5d724ef
Update README.md 2022-09-20 12:54:54 +02:00
OlaYZen
331399423e
Update README.md 2022-09-20 08:27:13 +02:00
OlaYZen
6ee3f87c70
Update README.md 2022-09-19 19:46:47 +02:00
OlaYZen
560c42613b
Update README.md 2022-09-19 19:46:01 +02:00
OlaYZen
7b8f4ec5e8
Update README.md 2022-09-19 19:37:49 +02:00
OlaYZen
f193a57984
Update README.md 2022-09-19 15:40:33 +02:00
OlaYZen
c5c3e80378
Create devskim.yml 2022-09-19 15:38:38 +02:00
OlaYZen
cd20f6c397
Update README.md 2022-09-19 15:37:37 +02:00
OlaYZen
a483bf41ea
Create powershell.yml 2022-09-19 15:36:02 +02:00
OlaYZen
e08c213e3b
Update README.md 2022-09-19 15:34:32 +02:00
OlaYZen
64f2fe567a
Create blank.yml 2022-09-19 15:33:22 +02:00
easiexd
974c6af15e
Update README.md 2022-09-19 15:31:05 +02:00
OlaYZen
db78425d72
Update README.md 2022-09-19 15:21:58 +02:00
OlaYZen
43c5cb554d
Update README.md 2022-09-19 15:18:42 +02:00
OlaYZen
29bb463166
Update README.md 2022-09-19 15:17:16 +02:00
OlaYZen
8e52906056
Update README.md 2022-09-19 15:05:08 +02:00
OlaYZen
61da82028f
Update README.md 2022-09-19 14:58:25 +02:00
OlaYZen
7c12769824
Update README.md 2022-09-19 14:56:51 +02:00
ced67222c7 Updated bug_report.md 2022-09-19 14:44:25 +02:00
OlaYZen
307735c87e
Update issue templates 2022-09-19 14:43:44 +02:00
309d2b4564 Merge branch 'main' of https://github.com/OlaYZen/WindowsUpdate 2022-09-19 14:41:47 +02:00
d5b765423f V1.2.5 2022-09-19 14:41:43 +02:00
OlaYZen
5f5567e6c4
Update issue templates 2022-09-19 14:36:21 +02:00
322c420605 V1.2.4 2022-09-19 13:16:01 +02:00
a3fcfda355 v1.2.4 2022-09-19 13:10:28 +02:00
8a55471bcd V1.2.4 2022-09-19 13:07:22 +02:00
e25bb48cda V1.2.4 2022-09-19 12:59:09 +02:00
421fe30236 V1.2.4 Release 2022-09-19 12:53:53 +02:00
OlaYZen
c6cf976a8d
Update README.md 2022-09-19 10:58:38 +02:00
c05bb330ca Updated Stuff 2022-09-19 10:52:33 +02:00
ef716c4af3 updated main readme 2022-09-19 09:53:15 +02:00
487ea2d0de V1.2.2 Stable 2022-09-19 09:44:35 +02:00
1c37a5812f Added Image and Updated Readme 2022-09-19 09:43:42 +02:00
cec1f73eb5 Updated Main Readme 2022-09-19 09:34:55 +02:00
9f4916d0d0 Updated README.md 2022-09-19 09:32:09 +02:00
6cbbba3687 [PREVIEW] V1.2.3 2022-09-19 09:26:59 +02:00
10 changed files with 307 additions and 233 deletions

26
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
How you caused the bug
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. Windows 10, Windows 11]
**Additional context**
Add any other context about the problem here.

View file

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

36
.github/workflows/blank.yml vendored Normal file
View file

@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.

34
.github/workflows/devskim.yml vendored Normal file
View file

@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: DevSkim
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '42 5 * * 3'
jobs:
lint:
name: DevSkim
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: devskim-results.sarif

49
.github/workflows/powershell.yml vendored Normal file
View file

@ -0,0 +1,49 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# https://github.com/microsoft/action-psscriptanalyzer
# For more information on PSScriptAnalyzer in general, see
# https://github.com/PowerShell/PSScriptAnalyzer
name: PSScriptAnalyzer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '15 7 * * 1'
permissions:
contents: read
jobs:
build:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@6b2948b1944407914a58661c49941824d149734f
with:
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\
recurse: true
# Include your own basic security rules. Removing this option will run all the rules
includeRule: '"PSAvoidGlobalAliases", "PSAvoidUsingConvertToSecureStringWithPlainText"'
output: results.sarif
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

BIN
Image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
ImageOfJsonButton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -1,9 +1,35 @@
# **How to start the program**
# Windows Updater
![GitHub](https://img.shields.io/github/license/OlaYZen/Windows-Update?color=gree&style=for-the-badge)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/OlaYZen/Windows-Update?style=for-the-badge)
![GitHub repo size](https://img.shields.io/github/repo-size/OlaYZen/Windows-Update?color=orange&style=for-the-badge)
[<img src="https://raw.githubusercontent.com/OlaYZen/Windows-Update/main/Image.png"/>](https://raw.githubusercontent.com/OlaYZen/Windows-Update/main/Script.ps1)
## **How to start the program**
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
iwr -useb http://win.olayzen.com/ | iex
```
or Download and run Script.ps1
## Website
Visit our Website for blogs and other stuff: <br/>
https://www.olayzen.lol/Windows-Update/
## Preview Builds
To try or compare preview builds click [here](https://github.com/OlaYZen/Windows-Update/tree/Preview)
## **Credits**
Me and only me :(
[OlaYZen](https://github.com/OlaYZen) - Head Developer and Owner <br/>
[Easiexd](https://github.com/easiexd) - Designer and Tester
# **WIKI**
Check out the [Wiki](https://github.com/OlaYZen/Windows-Update/wiki), There could be some info you want to know
# **NEW UI**
New UI in development, We expect the new UI will be in the new [Preview](https://github.com/OlaYZen/Windows-Update/blob/Preview/Script%20PREVIEW.ps1) Build comming out later this week. [easiexd](https://github.com/easiexd) is currently in works to make a new ui. We will also try to not make it look like a program from the 1990's and try to get more of a modern feeling of the UI. Just like basically every program using Windows 11
# **More Features**
With the new UI you can also expect more features
# **Docs**
We will also make a Document of every features and how to use them, but this can take a while before is done. so don't expect the documents to be done this week

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,39 @@
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
#========================================================
# Writes out OlaYZen's Name
#========================================================
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host "YYYY YYYYZZZZZZZZZZZZZZZZZZZZZ "
write-host " Y::Y Y::::::::::::::::::::::::Z "
write-host " Y::Y Y::YYYZZZZZZZZZZZZZZZZZ:::Z "
write-host " Y::Y Y::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y:::Y Z:::Z "
write-host " Y:::::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::ZZZZZZZZZZZZZZZZ "
write-host " Y:::Y Z:::::::::::::::::::Z "
write-host " YYYYY ZZZZZZZZZZZZZZZZZZZZZ "
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host " "
write-host "============= made by OlaYZen ============="
write-host " "
Start-Sleep -Milliseconds 500
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
@ -8,10 +42,16 @@ Start-Sleep -Milliseconds 500
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
{
@ -41,25 +81,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 -WindowsUpdate -ForceDownload -AutoSelectOnWebSites -BrowseOnly -AcceptAll -IsHidden -Confirm
)
$button1.Visible = $false
$button8.Visible = $false
}
function GetWindowsUpdates2 {
(
Get-WindowsUpdate -MicrosoftUpdate -ForceDownload -AutoSelectOnWebSites -BrowseOnly -AcceptAll -IsHidden -Confirm
)
$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
)
}
@ -78,6 +140,13 @@ function WingetUpgrade {
}
function WinUpdates {
(
Start-Process ms-settings:windowsupdate
)
}
function EditWinget {
(
notepad.exe $PSScriptRoot"".\winget-export.json
@ -94,6 +163,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'
@ -131,6 +210,15 @@ $button3.TabIndex = 2
$button3.Text = "Upgrade Winget software"
$button3.Add_Click({WingetUpgrade})
[System.Windows.Forms.Application]::EnableVisualStyles()
$button9 = New-Object System.Windows.Forms.Button
$button9.Location = '232, 60'
$button9.Name = "Open WU"
$button9.Size = '95, 25'
$button9.TabIndex = 2
$button9.Text = "Open WU"
$button9.Add_Click({WinUpdates})
[System.Windows.Forms.Application]::EnableVisualStyles()
$button7 = New-Object System.Windows.Forms.Button
$button7.Location = '122, 5'
@ -150,11 +238,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
@ -165,9 +259,17 @@ $AutoReboot.Visible = $false
$AutoReboot.BackColor = "White"
$VersionLabel = New-Object System.Windows.Forms.Label
#Release Label
$VersionLabel.Location = '266, 90'
#Release Label
#Preview Label
#$VersionLabel.Location = '216, 90'
#Preview Label
$VersionLabel.Name = 'Versionlabel'
$VersionLabel.Text = "Version 1.2.2"
$VersionLabel.Text = "Version 1.2.5"
$VersionLabel.Size = '490, 500'
$Form = New-Object System.Windows.Forms.Form
@ -178,13 +280,16 @@ $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)
$Form.Controls.Add($button4)
$Form.Controls.Add($button5)
$Form.Controls.Add($button6)
$Form.Controls.Add($button9)
$Form.Controls.Add($checkBox)
$Form.Controls.Add($checkBox2)
$Form.Controls.Add($AutoReboot)
$Form.Controls.Add($VersionLabel)
$Form.Controls.Add($RichTextBoxDisplay)