Call Uninstall Method In ServiceProcessInstaller For Installing Windows Service Using MSI?
Aug 13, 2009
I have a Deployment project which creates an MSI setup file to install a service. (VB .NET) I have a reference to another project which is a win form application and has a setup form which takes the user name, password and some other settings information which will be used by a service. It has "Finish" and "Cancel" buttons. I am creating a new instance of this form on Sub New() of the ProjectInstaller Class, so user can input information, click Finish and installation completes. The service is then automatically started. Now, when I click Cancel on the settings form, I am not able to exit out and halt the installation process. Instead it installs the service !! How can I use the Rollback or Uninstall methods to do the task? I was trying this -
On cancel_click, set boolean var cacelStatus = True
On Sub New() method of ProjectInstaller class, I am checking - If true - uninstall, else - install
How can I achieve this?
View 1 Replies
ADVERTISEMENT
Aug 27, 2009
I have created a Windows Service in VB.net for building xML from a database. I need to install it in my machine. I have followed all the steps as shown in [URL] When I right click on setup project and click install it opens the installation wizard and after hitting the next buttons it promptly says that the Service is installed successfully.When I go to Services I don't see the service. I refreshed the list and rebooted my machine n times.
View 2 Replies
Jul 16, 2009
I am creating a windows service. I want to know that , is there any other way to install windows service than using installutil.exe ? I don't want to install my windows service on client's machine using command prompt. Better way if I can install it using setup.
View 2 Replies
May 1, 2012
I have been working on creating a windows service. I am using XP SP3, VB.net, VS 2010 Express, compiling for .Net 4.0 client profile. I have am using very rudimentary code templates that I've cobbled together.I have a class the inherits 'ServiceBase' and overrides the constructor, 'OnStart', and 'OnStop'. I also have another class in another .vb file in the same project that inherits from 'System. Configuration. Install. Installer' and overrides the constructor to add a 'ServiceInstaller' and a 'ServiceProcessInstaller' with the appropriate properties set for the service. The 'ServiceInstaller.ServiceName' is set to the same name as the service class and the installer class has the 'RunInstallerAttribuite (True)'attribute. Everything compiles and if I try to run the exe I get a message telling me it's a service and needs to be installed as such. but when I use installutil(.net 4) to install the service, it appears as though it was successful, but the service does not show up in the services list and I can't find registry entries for it either. I've checked the exe with the object browser and it presents the installer class with the 'RunInstaller Attribute' as it should. I included some code to create a file in the installer constructor and no file is created so I'm assuming that the installer class is never instantiated by installutil.
View 4 Replies
Dec 29, 2011
i running into an error when installing a windows service that i have created in vb .net. i followed the tutorial but i am getting an error. bellow is the log for the whole process until we get to the error. can someone please assist.
[Code]...
View 1 Replies
Apr 2, 2010
I have had some success making a windows service but I can�t seem to fix a simple issue
I can get the service to run through my code once, but I can�t get it to loop, well I can but then the service will not start correctly and just times out while the code is running.
How can I get the service to start and then loop, at the moment it just says starting service and the code is looping but the service wont start! Windows times it out after a few mins.
Public Class WwService
Dim sDate As Date
Dim con As New OleDb.OleDbConnection
[Code].....
View 4 Replies
Oct 20, 2009
Account Type for installing a windows service
View 1 Replies
Sep 24, 2011
Error in installing Windows service using instllutil.exe in vb.net
View 10 Replies
Feb 12, 2007
I new to .net My project involves developing a windows service application using VB .NET. I have installed the service successfuly on the first attempt using the installutil provided by the frame work.When i uninstalled the application the it gave me the following result.
System.ComponentModel.Win32Exception: The specified service does not exist as an installed serviceAn exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
The uninstall has completed.
When i tried to install the app again it gave me the following error
An exception occurred during the Install phase.System.ComponentModel.Win32Exception: The specified service already exists
I removed the application from the list of application event log entries in the registry(HKEYLOCAL_MACHINESYSTEMCurrentControlSetServicesEventLogApplication) ant tried installing the app agin it installed successfully. Why is uninstalling the service not removing the entry from the registry.
View 12 Replies
Mar 18, 2010
I have a windows service that I've written in vb.net using vs 2008 targeting ASP.NET 3.5. It appears that it's installing in a running state, but with the start mode set to manual. Is there a way I can have the service be initially stopped? I assume that it would be something in my service installer, but haven't been able to find it.
View 4 Replies
May 15, 2012
I have a asp.net web application with jquery controls. I have a datagrid that will display data from a database table and created a WCF Service to access the db and return the data. I want to be able to call the WCF service from this application which is on a different server and have the xml data returned, converted to json format to be used in the datagrid which is a jquery widget. I have tested the web service and it works fine. Should I call the web service from the javascript function within the xml or create a .net method behind that calls the service and then does the conversion? From these how would I get started?
View 1 Replies
Nov 12, 2009
Does calling the Dispose method on a Windows.Forms.Timer call it's Stop method? Or should I stop the timer before I dispose it?
View 5 Replies
Feb 16, 2011
I want to question how to call bat file in windows service using vb.net. This is my code:
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
[code]...
this service created in service windows(service manager windows), but when i start this service not happening. What wrong in my code
View 2 Replies
Apr 18, 2006
Can somebody tell me the steps to follow so that i can call my windows application (.exe) file from my windows service in C# (.Net 2003
View 2 Replies
Sep 8, 2006
I have written a windows service to do some operation (in .net), im calling the same in .net it works quite fine without any issues. Now my problem is i need to call the same service which is written in .net from an VB application.
View 4 Replies
Aug 19, 2010
I have created a Windows Service that I am trying to use to call an Emergency Alert program that checks a database to see if there is an alert to display. This is the Timer in the Windows Service that I call the Emergency Alert program from.
[Code]...
View 1 Replies
Mar 17, 2012
i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.
View 3 Replies
May 25, 2011
Is it possible to somehow invoke foo("SomeAwesomeString") from VBScript directly (i.e., without it having to launch an additional process)?
The use case is this: I am trying to write an 'extension' application for hMailServer (hMS), but hMS can only invoke VBscript scripts when an event happened. I can have the VBscript launch an .exe every time the event happened, but the processing involve opening and closing a connection to a back-end database. So, every invocation is very expensive. I had been thinking that I can reduce the expense by having a Service to maintain the connection (i.e., opening it once and re-open it if the connection closed). Plus by implementing the processing as background worker threads will result in a non-blocking processing + less process-starting overhead.
View 3 Replies
Nov 18, 2011
I have a windows service application to send emails.The same code works well with windows application but not with windows service.
Private Sub Timer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer.Elapsed
EventLog.WriteEntry("Started!!!!")
Dim cmd As System.Data.OleDb.OleDbCommand[code].....
View 1 Replies
Jul 27, 2009
I have a project that creates and installs a window service. I want to uninstall it because it is running both on my PC and on another. I want to leave it on the other. So when I open VS with the project, I right-click on the servicesetup and choose uninstall and it says "This action is only valid for products that are currently installed." It is listed in control panel Services, so isn't it installed?
View 5 Replies
Jan 8, 2012
I had no errors in my VB project it was compiling nicely. I loaded SP 1 today and now I have 102 errors. Actually I'm sure more than that as 102 is the max it will show. It particularly doesn't like the date functions and isDBNull. And it balks at vbcrlf now. Here are some examples of the errors I'm getting:
[Code]...
View 9 Replies
Jul 14, 2011
i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:
Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.
It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.
View 1 Replies
Jun 23, 2011
Have a VB.net application that installs initially from CD and then when the user gets into the internet the application updates. In order to better support problems with this application is has been suggested in the past to uninstall it and do a fresh re-install. However, in investigation it was determined that the uninstall does not consider all installed objects and does not uninstall the CD install.Can the uninstall functionality be modified to catch the other instances of this application and also uninstall them?
View 11 Replies
Jul 21, 2009
(I found no server 2003 forums so i posted here) I have recently been tasked with moving legacy applications (written in VB 6) that have to be migrated from windows server 2K to windows 2003. My superiors tell me that we MUST use MDAC 2.7 because the VB 6 applications are very old and use office 97 (no chance for upgrade because they will break - they will be supplanted by .net applications) Also, if these legacy apps use 2.8 they will break as well.
I know that Windows Server 2003 automatically comes with MDAC 2.8 and there is no way to uninstall it (is there?). But is it possible to install MDAC 2.7 (parallel to 2.8) and force our applications to use the 2.7 version? Or do we have to stick with windows 2k if we HAVE to MDAC 2.7?
View 3 Replies
Sep 4, 2010
I'm kind of shooting in the dark here - searches don't seem to be productive on this. I want to create a .NET program to monitor the install and uninstall of fonts. If something is installed or uninstalled, I want to run a program to do something.
I thought maybe a Windows Service, but haven't gotten very far with figuring out how to monitor fonts. Is this the right way and if so, what am I overlooking? If not, is there a different way to do this?
View 3 Replies
Feb 16, 2010
I will try to explain what I need.Let's say that I have a class like this:
Public Class Example1 Public Sub ToBeCalled()
[Code]...
View 5 Replies
Jan 29, 2012
I have a Application that Crypts all Files in a Directory and the Subdirectories
Public Shared Sub CryptAllFiles(ByVal crypt As Object)
'check if this dir exists
Dim vDirInfo As New DirectoryInfo(vPath)
If Not vDirInfo.Exists Then Exit Sub
'get all files' sizes in current path
[Code]...
View 3 Replies
May 5, 2012
I inherited a working WCF Web Service with one major flaw - the WCF Service consumes memory and does not release unless the service is restarted. After a half a day of requests hitting the web service, the memory on the server hosting the service climbs to close to 2 gig and is dead in the water.
I'd like to be able to release memory after the web service has received its response but cannot figure out how (WCF is still new to me). [code]...
View 2 Replies
Jun 9, 2011
I'm trying to make a form in VB.Net that takes speech input (not text-to-speech) on my Windows XP Pro computer.I've tried to install Microsoft Speech SDK 5.1 according to url..The problem is my Office 2007 does not have an Alternative User Input feature, as it says in the instuctions. So is there any way to get this on my computer? If not can you suggest any alternative other that buying a new computer for making my Visual Basic .Net form speech-enterable?
View 3 Replies
Jul 23, 2009
I am trying to communicate with a Windows service on a remote machine on the network but i keep getting an exception saying the following: "System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.
[Code]...
View 4 Replies