Folder Size ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id Brio.FolderSize -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Brio.FolderSize -e --silentwinget uninstall --id Brio.FolderSize -e --silentInstaller အလိုက်
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i download /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i download /qn /norestart /l*v "%TEMP%\folder-size-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {F24FF688-7138-4CCF-A83F-71E9FB01170E} /qn /norestart- MSI product code
- {F24FF688-7138-4CCF-A83F-71E9FB01170E}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F24FF688-7138-4CCF-A83F-71E9FB01170E}
32-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i download /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i download /qn /norestart /l*v "%TEMP%\folder-size-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {FC8D21C8-7B29-4104-ADB0-FEE9CA1C7922} /qn /norestart- MSI product code
- {FC8D21C8-7B29-4104-ADB0-FEE9CA1C7922}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{FC8D21C8-7B29-4104-ADB0-FEE9CA1C7922}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-folder-size.ps1
$url = 'https://sourceforge.net/projects/foldersize/files/foldersize/2.6/FolderSize-2.6-x64.msi/download'
$sha256 = '76A5FE05214D9669E09B3DF6FDE80646700B27CB73B1D1FF23066660813A77EC'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-folder-size.ps1
$url = 'https://sourceforge.net/projects/foldersize/files/foldersize/2.6/FolderSize-2.6-x86.msi/download'
$sha256 = '8D01E67B69FDE230DA3654B8755326A0E38001A1BF7CF98C89B1B2BA1F544F74'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait