473,791 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setup & Deployment Wizard for Windows Services

balabaster
797 Recognized Expert Contributor
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 862

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

Similar topics

3
4610
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 a setup package to run on other computers? Does .NET use only the Windows Installer process? VB6 had a Setup and Deployment Wizard that collected all dependants and you could add extra things like readme files and the like. Then it packaged the...
4
2656
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 the databases are in one Build Solution. Project Output must be structured into unified Application Space with folders for webs and winservices in order to allow instancing on the middleware server. MyEnterpise/Instance1 Services/ Service1
1
1934
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. Question: Is it possible to make a Setup that also arrages my own icon in the shortcut, and how??
3
8375
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
4419
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 shortcut to my program/utility (2) Entry in Windows' Start --> Program Menu. Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2) MYPROGRAM_INSTALLER. MYPROGRAM is a "Windows Application". MYPROGRAM_INSTALLER is a "SetUp Wizard"...
0
1364
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 my existing solution. I followed the wizard and built the solution (release). When i try to install the program using the msi file the program installs fine but crashes when i try to run it with the following message:
5
1281
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 install on many computers. So, I went to the program group looking for "Package & Deployment Wizard" as in VB6 but it isn't there! So, how do I create a setup program?? Thanks
1
3601
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- Common.dll, Logging.dll, Configuration.dll, Data.dll into setup project so that it is also installed automatically. It should perform what the 'Install Services.bat ' performs. I have created ProjectInstaller.cs file also
3
3951
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
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9995
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.