feat: add Windows installer packaging via Inno Setup#4641
Conversation
- winutil.iss: Inno Setup script that installs winutil.ps1 to %ProgramFiles%\WinUtil, creates Start Menu + optional Desktop shortcuts patched with Run-as-Administrator flag - build-installer.ps1: one-shot build script (Compile.ps1 -> ISCC.exe -> installer\WinUtil-Setup-<version>.exe); auto-installs Inno Setup via winget if missing - .gitattributes: add *.ico binary to prevent git line-ending corruption of icon files - .gitignore: exclude installer/ build output - docs/static/favicon.ico: regenerated as a clean valid ICO (16/32/48 px) after the original was corrupted by missing binary attr
|
if you want a winutil exe without paying just do class Program {
static void Main() {
System.Diagnostics.Process.Start("powershell", "-Command irm christitus.com/win | iex");
}
}than you can complie it into an exe & $Env:SystemRoot\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:winexe winutil.csthis is just bloat |
|
Ensure that all dashes are normal, reference #4640 |
? |
ps 5 does not like em-dashes, and CodingWonders removes them. It would be counter productive to add them back (if merged) |
ohhh i tought you were the guy who made the pr because you have the same icon my bad |
|
Chris already rejected similar PR. People usually run winutil once after the device is built or after some time when want to refresh the system. This would just bloat the script |
Summary
winutil.iss— an Inno Setup 6 script that compileswinutil.ps1into a standard Windows installer (WinUtil-Setup-<version>.exe)build-installer.ps1— one-shot build script that runsCompile.ps1, auto-installs Inno Setup via winget if missing, then invokesISCC.exeto produce the installer underinstaller\*.ico binarymissing from.gitattributes, which was silently corruptingdocs/static/favicon.icovia git line-ending conversion; regenerates the icon as a clean valid ICO (16/32/48 px)installer/build output from git via.gitignoreInstaller behaviour
winutil.ps1to%ProgramFiles%\WinUtil.lnkheader via Pascal[Code]), so launching from the Start Menu triggers UAC directly without a double-launchUsage
Test plan
.\build-installer.ps1from a clean clone — verifyinstaller\WinUtil-Setup-<date>.exeis produced with no errors or warnings%ProgramFiles%\WinUtil, and shortcuts appear in Start Menu and Desktopdocs/static/favicon.icois committed as binary (no line-ending corruption aftergit checkout)