开发者

Set ‘Allow service to interact with Desktop’ for a newly created windows service at install time

开发者 https://www.devze.com 2023-03-05 08:55 出处:网络
When using VS setup and deployment project for creating windows installer database file, how to set a windows service to ‘Allow service to interact with Desktop’. I 开发者_StackOverflow社区am using

When using VS setup and deployment project for creating windows installer database file, how to set a windows service to ‘Allow service to interact with Desktop’. I 开发者_StackOverflow社区am using System.Configuration.Install.Installer derived class to install a new windows service. This installer class gets invoked as a custom action. I did not found any property on installer class that could solve the problem.

Thanks


There are three different programmatic methods -- registry, WMI, and comamnd-line tool -- in the 2010 C#-Corner article Allow windows service to "Interact with desktop".

I haven't actually tried them out; I found both the article and and your question when I was trying to add this functionality to my installer, but testing showed I didn't actually need that setting.

0

精彩评论

暂无评论...
验证码 换一张
取 消