Skip to content

Commit

Permalink
Refactor Install-Software function
Browse files Browse the repository at this point in the history
- Improve general terminal output
- Rename Write-ScriptLogo function
- Refactor Install Drivers Updaters
- Refactor Install Gaming Dependencies
- Refactor Git + GnuPG + SSH (Setup)
- Rename src/lib/show-message-box => src/lib/show-dialog-window
- Refactor Show-Question 'Switch Cases'
- Add option to have no dialog on file runner for PS and Reg files
- Use file-runner for personal-tweaks
- Change line break on title-templates
  • Loading branch information
LeDragoX committed Apr 3, 2022
1 parent bf13fad commit 74cc668
Show file tree
Hide file tree
Showing 17 changed files with 267 additions and 285 deletions.
20 changes: 8 additions & 12 deletions Win10ScriptCLI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ function Request-AdminPrivilege() {
}

function Open-Script() {

$DoneTitle = "Done"
$DoneTitle = "Information"
$DoneMessage = "Process Completed!"

$Scripts = @(
Expand All @@ -28,26 +27,23 @@ function Open-Script() {
}

function Main() {

Request-AdminPrivilege # Check admin rights

Write-Host "Your Current Folder $pwd"
Write-Host "Script Root Folder $PSScriptRoot"
Get-ChildItem -Recurse $PSScriptRoot\*.ps*1 | Unblock-File

Import-Module -DisableNameChecking "$PSScriptRoot\src\lib\set-console-style.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"file-runner.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\src\lib\set-script-policy.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\src\lib\show-message-box.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\src\lib\show-dialog-window.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\src\lib\title-templates.psm1"

Set-ConsoleStyle # Makes the console look cooler
Write-Host "Your Current Folder $pwd"
Write-Host "Script Root Folder $PSScriptRoot"
Set-ConsoleStyle # Makes the console look cooler
Unlock-ScriptUsage
Open-Script # Run all scripts inside 'scripts' folder
Open-Script # Run all scripts inside 'scripts' folder
Block-ScriptUsage
Write-ASCIIScriptName # Thanks Figlet
Request-PcRestart # Prompt options to Restart the PC

Write-ScriptLogo # Thanks Figlet
Request-PcRestart # Prompt options to Restart the PC
}

Main
Loading

0 comments on commit 74cc668

Please sign in to comment.