Pass parameters to InstallUtil from Powershell
问题 I am trying to install a windows service from Power-shell as follows. $sn = """" + $serviceName + " " + $exeName + """" C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i /ServiceName=[$sn] $exeFilePath I am getting the following exception. Microsoft (R) .NET Framework Installation utility Version 2.0.50727.3053 Copyright (c) Microsoft Corporation. All rights reserved. Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or