Compare commits
43 commits
Author | SHA1 | Date | |
---|---|---|---|
|
d73d692d3e | ||
3fc1c76599 | |||
534f8a8924 | |||
1554bd6459 | |||
|
d662c001f7 | ||
|
91ac97aa6f | ||
|
57e3e25790 | ||
|
8fd5d724ef | ||
|
331399423e | ||
|
6ee3f87c70 | ||
|
560c42613b | ||
|
7b8f4ec5e8 | ||
|
f193a57984 | ||
|
c5c3e80378 | ||
|
cd20f6c397 | ||
|
a483bf41ea | ||
|
e08c213e3b | ||
|
64f2fe567a | ||
|
974c6af15e | ||
|
db78425d72 | ||
|
43c5cb554d | ||
|
29bb463166 | ||
|
8e52906056 | ||
|
61da82028f | ||
|
7c12769824 | ||
ced67222c7 | |||
|
307735c87e | ||
309d2b4564 | |||
d5b765423f | |||
|
5f5567e6c4 | ||
322c420605 | |||
a3fcfda355 | |||
8a55471bcd | |||
e25bb48cda | |||
421fe30236 | |||
|
c6cf976a8d | ||
c05bb330ca | |||
ef716c4af3 | |||
487ea2d0de | |||
1c37a5812f | |||
cec1f73eb5 | |||
9f4916d0d0 | |||
6cbbba3687 |
10 changed files with 307 additions and 233 deletions
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
26
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal 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.
|
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal 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
36
.github/workflows/blank.yml
vendored
Normal 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
34
.github/workflows/devskim.yml
vendored
Normal 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
49
.github/workflows/powershell.yml
vendored
Normal 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
BIN
Image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
ImageOfJsonButton.png
Normal file
BIN
ImageOfJsonButton.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
32
README.md
32
README.md
|
@ -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:
|
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
|
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**
|
## **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
119
Script.ps1
119
Script.ps1
|
@ -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 }
|
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
|
Start-Sleep -Milliseconds 500
|
||||||
|
|
||||||
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
|
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
|
||||||
|
@ -8,10 +42,16 @@ Start-Sleep -Milliseconds 500
|
||||||
|
|
||||||
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
|
||||||
{
|
{
|
||||||
|
@ -41,25 +81,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 -WindowsUpdate -ForceDownload -AutoSelectOnWebSites -BrowseOnly -AcceptAll -IsHidden -Confirm
|
||||||
)
|
)
|
||||||
$button1.Visible = $false
|
$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 {
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -78,6 +140,13 @@ function WingetUpgrade {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function WinUpdates {
|
||||||
|
(
|
||||||
|
Start-Process ms-settings:windowsupdate
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function EditWinget {
|
function EditWinget {
|
||||||
(
|
(
|
||||||
notepad.exe $PSScriptRoot"".\winget-export.json
|
notepad.exe $PSScriptRoot"".\winget-export.json
|
||||||
|
@ -94,6 +163,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'
|
||||||
|
@ -131,6 +210,15 @@ $button3.TabIndex = 2
|
||||||
$button3.Text = "Upgrade Winget software"
|
$button3.Text = "Upgrade Winget software"
|
||||||
$button3.Add_Click({WingetUpgrade})
|
$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()
|
[System.Windows.Forms.Application]::EnableVisualStyles()
|
||||||
$button7 = New-Object System.Windows.Forms.Button
|
$button7 = New-Object System.Windows.Forms.Button
|
||||||
$button7.Location = '122, 5'
|
$button7.Location = '122, 5'
|
||||||
|
@ -150,11 +238,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
|
||||||
|
@ -165,9 +259,17 @@ $AutoReboot.Visible = $false
|
||||||
$AutoReboot.BackColor = "White"
|
$AutoReboot.BackColor = "White"
|
||||||
|
|
||||||
$VersionLabel = New-Object System.Windows.Forms.Label
|
$VersionLabel = New-Object System.Windows.Forms.Label
|
||||||
|
|
||||||
|
#Release Label
|
||||||
$VersionLabel.Location = '266, 90'
|
$VersionLabel.Location = '266, 90'
|
||||||
|
#Release Label
|
||||||
|
|
||||||
|
#Preview Label
|
||||||
|
#$VersionLabel.Location = '216, 90'
|
||||||
|
#Preview Label
|
||||||
|
|
||||||
$VersionLabel.Name = 'Versionlabel'
|
$VersionLabel.Name = 'Versionlabel'
|
||||||
$VersionLabel.Text = "Version 1.2.2"
|
$VersionLabel.Text = "Version 1.2.5"
|
||||||
$VersionLabel.Size = '490, 500'
|
$VersionLabel.Size = '490, 500'
|
||||||
|
|
||||||
$Form = New-Object System.Windows.Forms.Form
|
$Form = New-Object System.Windows.Forms.Form
|
||||||
|
@ -178,13 +280,16 @@ $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)
|
||||||
$Form.Controls.Add($button4)
|
$Form.Controls.Add($button4)
|
||||||
$Form.Controls.Add($button5)
|
$Form.Controls.Add($button5)
|
||||||
$Form.Controls.Add($button6)
|
$Form.Controls.Add($button6)
|
||||||
|
$Form.Controls.Add($button9)
|
||||||
$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)
|
||||||
|
|
Loading…
Reference in a new issue