I have written a service, that needs to interact with the users desktop and execute a .exe file. Since there is not settings to set this property, I have written the code to change the registry value of this service. But my issue it when I do this, it does
not execute the exe file. If I manually go to the properties and check "Allow service to interact with desktop" then I could see the exe is running. When I do it from the code exe runs in the background. Could any one let me know how to fix this? Any help
is greatly appreciated. Following is my code:
Dim serviceName As String = "PortalReportScanner"
Dim key As RegistryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\CurrentControlSet\Services\" & serviceName & "\", True)
If key IsNot Nothing Then
' get the value of the Type key.
View Complete Post