[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5590
  • Last Modified:

Installing a Windows Service

I was able to create a windows service on vb express by using a template I found.  I can install it manually using the installutil.exe but how would I automate this installation in a setup program?  I have used inno setup in the past and like it.  Any ideas?
0
jet46
Asked:
jet46
3 Solutions
 
Daniel Van Der WerkenIndependent ConsultantCommented:
0
 
wnrossCommented:
Include the installutil.exe with your Inno Setup project in the [files] , then add a [run] section like

[FIles]
...
Source: "installutil.exe"; DestDir: "{tmp}"
...

[Run]
Filename: "{tmp}\installutil.exe"; Parameters: """{app}\yourproject.exe"""

0
 
jet46Author Commented:
Anyone know if installutil.exe is legally redistributable?
0
 
wnrossCommented:
Yes, its included in the .Net redistributable.

http://go.microsoft.com/fwlink/?LinkId=12283
0
 
anwar ul haqueCommented:
If you have developed windows service and then you just need Installshield for deployment.Add your exe and other related and dependent files to your installshield project and  Set Installer Class propery to true of your windows service and build the project. Now you can install/ uninstall your windows service very easily.
Hope this works
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now