Install Windows Service Via Setup And Deployment Project
Apr 27, 2009
I've been busy with work and other bits and bobs and not really had much time for programming... but anyway, I have just written a fairly simple windows service in VB.NET and although I can install it on my PCs/servers using the command line InstallUtil.exe component, this isnt ideal for other people that may need to install it without my assistance.
So basically I just need to know how to get a normal Setup and Deployment VS project to install this service itself... I thought it would be as simple as selecting the service assembly to include in the deployment project and building it, but unfortunately that seems to do naff all. Do I need to use a 'Custom Action' in the setup project (and if so, how/what do I do?)
View 6 Replies
ADVERTISEMENT
Jan 4, 2012
I need to install a windows service via an .msi for many tablets which is nooooo problem. The problem is, the tablets currently have the service running which was installed by installutil. So when my installer runs, regardless of Remove Previous Version is true, it stops stating the service already exists and to uninstall it from Add/Remove Programs.So I wrote a console app which preceeds the primary output as follows:
Sub Main()
Try
Dim filename As String = "C:Program FilesRSCProjectServiceSetupRSCProjectService.exe"
'Dim filename As String = "C:RSCProjectServiceRSCProjectServiceinDebugRSCProjectService.exe"
If System.IO.File.Exists(filename) Then
[code]....
View 3 Replies
Sep 2, 2010
I have a service projecwith a deployment project in a solution. The installation is successful, service runs ok. However each time after installation I will have to use ervices.msc to start up the software or restart the machine, any idea how I can start the services as soon a
View 3 Replies
Mar 10, 2009
I've created a windows service and started a deployment project for it. I have the project installer class in the service project and I've added the "Standard output etc.." from the service project as custom actions for the Deployment Project. When I attempt to install it, I get the error "Specified service already exists", which shouldn't happen (even though the service does exist) because the installer should be removing the old service and installing the new one.
I've checked that the versions are different, and that the Product Code is also different, also RemovePreviousVersions is set to true. Can anyone tell me why it isn't uninstalling my old service when I update then install again? .S: MODS: DO NOT MARK MY POST AS ANSWERED, IT IS RUDE, YOU HAVE NO IDEA IF YOU'VE ANSWERED MY QUESTION!Sorry, it gets ignored in my signature.Mods
View 8 Replies
Jun 22, 2010
Step-by-Step Process of Creating a Setup and Deployment Project for windows application
View 2 Replies
Jan 8, 2011
I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?
View 4 Replies
Sep 29, 2010
Now that I've got this service that runs really great on my 32-bit development machine when I use InstallUtil.exe to install it, I'm ready to take it to the next level and generate something that I can use to install it on my 64-bit production server. I've never done this before, so I'm looking for detailed, step-by-step instructions on how to "publish" this Windows Service that I've written, or make it such that I can take some kind of file (or set of files) and install my service on another machine. I'm looking for a way to do this using Visual Studio 2010. I think the processes are different than in previous versions of Visual Studio.
View 4 Replies
Aug 31, 2009
I have a simple windows Service developed in VS.net 2008 and VB.net. When I install the service using Installutil.exe from the command prompt it is working like a charm.
When I try to add a setup project and set the output and build and install it though it says successfully installed, it is not showing up in the services.
The event log shows that it is successfully installed. I just did check the registry, it did place the assemblies in HKEY_CURRENT_USERSoftwareMicrosoftinstallerassemblies.
But I don't understand why it is not showing up in the services listing. I refreshed and restarted.
View 3 Replies
Nov 3, 2009
i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?
View 1 Replies
May 7, 2012
Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?
When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?
View 5 Replies
Jun 21, 2010
My suggestion is how to use the setup/deployment project - and also how to add it/incorporate it into the project being built.
View 3 Replies
Oct 2, 2010
ive just completed my app and i created a setup and deployment project.Complier forced me to exclude wmp.dll
i get this error for about a second before the app launches. Losing my splash screen because of it
I thinks it has to do with the .dll, but ive no clue how to fix
View 4 Replies
Jul 7, 2010
setup and deployment project walkthru? creating a setup and deployment project in Vs2008
View 7 Replies
Apr 26, 2012
For my .Net desktop apps I usually create an MSI installer (I create a 2nd project in my solution, a Setup & Deployment project) and I zip the setup.exe file with the <appname>.msi files together and put them up for download on my site. The installer will go through the process of asking where they would like to install the application (it creates the needed shortcuts and everything).
Right now I'm looking at adding a feature to some of these programs where it'll periodically check it's corresponding xml file on my web server and see if there's a newer version of itself available. I have this portion working just fine, where I'm stuck is that I would like to have it download a separate msi installer to update itself.
The idea is that it would download this different msi file, execute it while the app closes itself. This msi would not ask any questions, it would simply update the needed files in whatever location the first msi installer put the app. When this updater msi is done, it would just re-start the application.How would I go about making an msi installer that doesn't have any prompts and installs the application where ever the first msi installer put it (where ever the user chose to install it to)?
View 8 Replies
Jul 6, 2009
I've an application developed in VS 2005 vb.net I need to install the SQL 2005 express edition thorugh the set up and deployment wizard.I need
1.SQL installation
2.Product installation.
3.Custom form open to set some DB settings in config
View 4 Replies
Jun 30, 2010
I would like to add a choice of icons to the desktop shortcut I add in setup/deployment. I can add one icon, but when I run the project there is no option for changing it. The "change icon" button is greyed out. I've made a dll containing 3 icons and added it to the setup/deployment project (also added it to the test project).
View 1 Replies
Mar 5, 2010
Setup and deployment project template is missing in my installation
View 2 Replies
Jun 21, 2009
When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.
View 1 Replies
Nov 25, 2009
Is it possible to make a setup and deployment project in VB.net 2008, every site i have looked at on google says to just select it from the project list. It isnt in the project list for me to select.Are these types of projects not available in the express version?How can I make an installer, other than using one of the setup and deployment projects? (I know there is a publish button, but that doesn't make a proper installer and installs to the appdata folder which is not what i want it to do)
View 3 Replies
Jan 21, 2009
I have a setup and deployment project that installs my application. During installation, I create a hierarchy of folders under the C: drive.
However, when I use add/remove programs to uninstall my application, I do NOT want this hierarchy of folders to be removed. How is this possible?
Also, when creating the folders, I set "AlwaysCreate" to True. If one of the folders already exists, will it be replaced with my new empty folder? If so, how can I prevent this.
View 8 Replies
Jul 8, 2009
I have a VB.NET Application and I am developing a deployment project in VS 2008.
I need to give the user the choice to allow the application to start when windows start (but this should be optional)
Then in my application there should be an option to remove the application from the windows start up folder.
View 3 Replies
Jul 20, 2009
Is there any way to force a setup project to install the program with administrative rights? (or asking the user por permission each time it runs)I coded an application on XP, and now I have problems on Vista/Win 7.
View 14 Replies
Feb 8, 2009
how to add the creation of a scheduled task to the setup project of a solution so that it will install the main executable and also schedule it to run in windowsscheduled tasks. The project is in vb.net 2005?
View 6 Replies
Jul 8, 2009
I'm making a setup project for my application. I have a file, dbconnection.xml, that I want to be installed to C:Program filesmyAppdbconnection.xml regardless of where the user chooses to install the application. I've added the program files 'special folder' and have a subfolder, myApp, under that where I place this xml file.
For whatever reason, no matter where the user installs the application to, the XML file is placed in the install directory, not in c:program filesmyApp.
View 3 Replies
Aug 11, 2010
I have made a program that i would like to install onto both 32- and 64- bit windows. If i create a setup for 86bit will it install on both?
View 3 Replies
Apr 8, 2009
I have created a windows application which Installs Multiple MSI's based on some condition. The project is created in Visual Studio 2008 with .Net framework 3.5; If this application runs in a machine which has atleast Dot Net 2.0 installs, it works fine. but the system without framework 2.0 throws an error "The application failed to initialize properly (0xc0000135)"
How can I stop my application from crashing. I tried giving a check in the Main(), but it is not even firing the Main(); Is there any way I can give a prerequisite, But not in the Publish, Coz i am using the output exe and not the clickonce output..
View 1 Replies
Nov 19, 2008
I have developed a Windows service. During the installation, I get the following warning/error:�Cannot start service from the command line or debugger. A Windows Service must first be installed (using installutil.exe) and then started with the Server Explorer, Windows Service Administrative tools or the NET start command.�
I am not trying to start it. I am only installing it (right-click from setup project). The StartType is set to Manual, and the Service Process Installer account is set to User. I do not get prompted for the service login credentials.I am using Visual Studio 2005, VB.Net running on Windows Server 2003 SP2.
View 1 Replies
Oct 19, 2010
I've developed a simple Windows Service basically from following tutorials. However, when I go to add it the list of Services using the "Install Util", I get the following results and have no idea what it means.[code]
View 4 Replies
Jan 30, 2012
I have created a windows service in vb.net. Is there anyway i can create an installation for it that does not require installutil to be used?
View 3 Replies
Dec 18, 2010
I was reading how to install a windows service by using InstallUtil but is there a way to install it within the form and not use the visual studio console?
View 2 Replies