This Rust application is designed to simplify the installation of both MSI and executable (EXE) packages on Windows. It accepts the path to the installer package and any installer-specific arguments, allowing you to automate software installations programmatically.
To use this installer handler, follow these steps:
-
Compile the Rust code:
cargo build --release
-
Run the application with the following command:
./target/release/installer_handler <package/executable> <installer_args>
Replace <package/executable> with the path to the installer file (either a .exe or .msi file) and <installer_args> with any additional arguments required for the installation.
Example usage:
./target/release/installer_handler "C:\Path\to\installer.exe" "/silent /norestart"
- Supports both MSI (.msi) and executable (.exe) installer packages.
- Automatically determines the installer type based on the file extension.
- Provides clear error messages for invalid inputs and installation failures.
- Waits for the installer to complete and reports the exit status.
Learn more about MSI error codes
This project is licensed under the MIT License - see the LICENSE file for details.