feat(installer): Add silent installation mode with configuration support #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Silent Installation Mode with Configuration Support
概述 / Overview
This PR adds comprehensive silent installation and uninstallation capabilities to the NaturalVoiceSAPIAdapter installer, enabling automated deployments in enterprise environments.
此 PR 为 NaturalVoiceSAPIAdapter 安装程序添加了完整的静默安装和卸载功能,支持自动化部署。
主要功能 / Key Features
1. Silent Installation Mode / 静默安装模式
-silentor-sflag-silent或-s参数支持无人值守安装-silent -uninstall-silent -uninstall进行静默卸载2. Command-Line Configuration / 命令行配置
Full control over installation settings via command-line parameters:
通过命令行参数完全控制安装设置:
-32bit-only,-64bit-only-enable-narrator/-no-narrator-enable-edge/-no-edge-enable-azure/-no-azure-azure-key,-azure-region-languages,-all-languages-loglevel(0-6)-no-phoneme-converters-narrator-path3. Help System / 帮助系统
-?,-h, or-help-?、-h或-help访问内置帮助对话框4. Comprehensive Documentation / 完整文档
SILENT_INSTALL.mdwith detailed usage guideSILENT_INSTALL.md详细使用指南使用示例 / Usage Examples
Basic Silent Installation / 基本静默安装
Enterprise Configuration / 企业配置
Full Configuration / 完整配置
技术实现 / Technical Implementation
Modified Files / 修改的文件
Installer/Install.cpp: AddedSilentInstall()andSilentUninstall()functionsInstaller/WinMain.cpp: Added command-line parsing and help dialogInstaller/Installer.vcxproj: Updated platform toolset configurationSILENT_INSTALL.md: Comprehensive documentationKey Functions / 关键函数
SilentInstall(): Performs unattended installationSilentUninstall(): Performs unattended uninstallationGetParameterValue(): Parses command-line parametersHasParameter(): Checks for parameter presenceApplyConfigurationSettings(): Writes configuration to registry测试 / Testing
Tested scenarios / 已测试场景:
兼容性 / Compatibility
DefaultPlatformToolsetfor better build compatibilityDefaultPlatformToolset以获得更好的构建兼容性使用场景 / Use Cases
文档 / Documentation
The new
SILENT_INSTALL.mdincludes:新的
SILENT_INSTALL.md包含:请求审查 / Request for Review
This feature significantly enhances the installer's capabilities for enterprise and automated deployment scenarios. I believe it will be valuable for users who need to deploy NaturalVoiceSAPIAdapter at scale.
此功能显著增强了安装程序在企业和自动化部署场景中的能力。我相信它对需要大规模部署 NaturalVoiceSAPIAdapter 的用户很有价值。
Please review and let me know if any changes are needed.
请审查并告诉我是否需要任何更改。
Related Issues: N/A
Breaking Changes: None
Documentation: Added SILENT_INSTALL.md