473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Setup & Deployment Wizard for Windows Services

balabaster
797 Expert 512MB
I'm trying to customize the setup and deployment wizard to install a service that has desktop interactivity. I'm aware of the standard code to do this:

Expand|Select|Wrap|Line Numbers
  1. Dim oKey As Microsoft.Win32.RegistryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\CurrentControlSet\Services\MyService", True)
  2. If Not oKey.GetValue("Type") = Nothing Then oKey.SetValue("Type", (oKey.GetValue("Type") Or &h100))
Now, the flag in the registry gets set just fine, but it doesn't appear to be taking properly. I still get the standard message complaining that desktop interactivity is not allowed until I uncheck the option and recheck it. Does it make a difference which of the installer methods I put this code in? If so, does anybody know at which stage of the program flow this needs to be set? Or am I just missing a step to ensure that a service is able to interact with the desktop that this short block of code doesn't take care of?

I've had a look back through previous questions and the only information I can find is that which I already have.

Cheers

Either C# or VB is fine
Nov 2 '07 #1
0 843

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: dp | last post by:
I just started using VB.NET and am trying to go through a complete test project. I did some db stuff, added a crystal reports form for output and the program runs as it should. Now how do I create...
4
by: surfdog58 | last post by:
Need to build complete deployment package for a multi-project enterprise soln consisting of 3 web apps, 20+ web services, 2 windows services, 61 component dll's and 4 databases. Everything except...
1
by: Dik van der Zwan | last post by:
I have made a Setup for a ms-access program with the package and deployment wizard of ms-office 2000. When installing my program with the Setup, it will make a shortcut to start the program....
3
by: Joachim | last post by:
In the Install-Start-Welcome dialog - how can I change the text "Welcome to the MyApp Setup Wizard"? For instance, if I would like it to be in another language.
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
0
by: KjartanM-S | last post by:
Hi I've developed an application in VB.NET. I'm now trying to deploy it to another computer which has XP pro and .NET Framework 1.1 installed. I included a Setup & Deployment wizard project to...
5
by: Bob Hollness | last post by:
OK, sorry for the silly question but..... I have been writing apps for a while now in VB.Net but I have always just run them from the IDE. This time though I have written an app that I want to...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.