Setting the "Allow service to interact with desktop" option programatically
-
Hello to all! I am creating a windows service in C# that will handle fax management tasks (taking them from a database and using the WindowsXP FaxService for sending). To be able to send a fax message, the WinXP FaxService wants a file type that is registered with an aplication that supports the PrintTo verb. I am using Word documents so there is no problem there. The problem is that, to be able to print to the faxservice, my service needs to be able to interact with the desktop (otherwhise Word gets stuck) so I need a way to set the desktop interaction option from the installer itself (MSI) rather than instucting the users in system administrative tasks. I didn`t seem to find a way using the serviceinstaller classes in .NET (C#) Any ideeas ? Thank you!
-
Hello to all! I am creating a windows service in C# that will handle fax management tasks (taking them from a database and using the WindowsXP FaxService for sending). To be able to send a fax message, the WinXP FaxService wants a file type that is registered with an aplication that supports the PrintTo verb. I am using Word documents so there is no problem there. The problem is that, to be able to print to the faxservice, my service needs to be able to interact with the desktop (otherwhise Word gets stuck) so I need a way to set the desktop interaction option from the installer itself (MSI) rather than instucting the users in system administrative tasks. I didn`t seem to find a way using the serviceinstaller classes in .NET (C#) Any ideeas ? Thank you!
I wish I could help you. I looked all over the place for this and came up dry. We're eventually going to get something like InstallShield which I hope will provide the functionality. I did find a way to hack the registry to check the checkbox but it still didn't behave like I checked it manually. I had to uncheck it, apply, then recheck it. If you ever do figure this out, please let me know (I'll keep looking).