我们的安装应用程序会提示输入用户名和密码,并使用此信息安装 .NET 服务。我们有一个使用安装的 Windows 服务
InstallUtil.exe
/username=auser
/password=password
/name=TestService
MyService.exe
在我们的客户开始使用包含空格的强密码之前,这一切正常。那么这就变成了:
InstallUtil.exe
/username=auser
/password=password
with
spaces
/name=TestService
MyService.exe
此调用失败并出现以下错误:
初始化安装时发生异常:System.IO.FileNotFoundException:无法加载文件或程序集“file:///C:\Users\me[snip]\with”或其依赖项之一。该系统找不到指定的文件。
我们如何向 InstallUtil.exe 发送带空格的密码?