mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 16:39:03 +02:00
Updated the manuals
This commit is contained in:
@@ -45,17 +45,19 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
"Installing CrystalDiskInfo, please wait..."
|
||||
"⏳ Installing CrystalDiskInfo from Microsoft Store, please wait..."
|
||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
|
||||
& winget install "CrystalDiskInfo" --source msstore --accept-package-agreements --accept-source-agreements
|
||||
if ($lastExitCode -ne 0) { throw "'winget install' failed" }
|
||||
if ($lastExitCode -ne 0) { throw "Can't install CrystalDiskInfo, is it already installed?" }
|
||||
|
||||
"CrystalDiskInfo installed successfully."
|
||||
int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ CrystalDiskInfo installed successfully in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:54)*
|
||||
*(page generated by convert-ps2md.ps1 as of 06/22/2025 10:37:36)*
|
||||
|
Reference in New Issue
Block a user