使用不同版本的 .NET 运行 InstallUtil.exe
我有一个在 Windows 2003 Server 上运行的 WCF 服务,它是我使用 .NET 3.5 编写的。看来我需要对其进行一些修改,并且我想在此过程中将服务迁移到 .NET 4.0。我编写它是为了使用 TCP,而不是 HTTP,因此 WCF 服务也运行我编写的另一个 Windows 服务。为了将该服务安装在服务器上,我使用了 InstallUtil.exe 实用程序。我已经在服务器上安装了 .NET Framework 4.0,但我不确定如何卸载我的 Windows Service/WCF 服务,因为那里有 2 个 .NET Framework,并且可能每个框架都有自己的 InstallUtil.exe。如果服务器上安装了 Visual Studio,我可以从 VS 的工具运行命令提示符,但这不可用。那么,如何执行正确的InstallUtil.exe来卸载.NET 3.5版本,然后再安装4.0版本呢?
I've got a WCF service running on a Windows 2003 Server, which I wrote using .NET 3.5. It looks like I'll need to do some modifications to it, and I thought that I'd migrate the service to .NET 4.0 in the process. I wrote it to use TCP, rather than HTTP, so the WCF service runs another a Windows Service I wrote, too. To put that service in place on the server, I used the InstallUtil.exe utility. I've already installed the .NET framework 4.0 on the server, but I'm not sure how to go about uninstalling my Windows Service/WCF service, since there's 2 .NET frameworks there, and presumably each with it's own InstallUtil.exe. If Visual Studio was installed on the server I could run a command prompt from VS's Tools, but that's not available. So, how do I execute the correct InstallUtil.exe to uninstall the .NET 3.5 version, and then later install the 4.0 version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够在命令行上指定完整路径,例如
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe
You should be able to specify the full path on the command-line e.g.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe