| 1 | package main |
| 2 | |
| 3 | import "fmt" |
| 4 | |
| 5 | func installerCommandLine(installer, dir string) string { |
| 6 | // Auto-updates use a dedicated visible progress mode instead of NSIS /S. |
| 7 | // The current helper also requires staging-only extraction: NSIS never writes |
| 8 | // the live install, and the helper compare-and-publishes the claimed release |
| 9 | // unit after validating every staged member. |
| 10 | line := fmt.Sprintf(`"%s" /REASONIXUPDATE=1 /REASONIXSTAGE=1`, installer) |
| 11 | if dir != "" { |
| 12 | line += " /D=" + dir |
| 13 | } |
| 14 | return line |
| 15 | } |
| 16 |