Installing Service...

Got a problem you cannot solve? Try here.
Post Reply
rocketboy
Posts: 4
Joined: Sat Jan 20, 2007 3:10 pm

Installing Service...

Post by rocketboy »

I'm using InstallAware 6.1 Studio.

We have an executable that we're installing into $TARGETDIR$ that needs to be installed as a service and then started.

We can't seem to figure out how to make this work from the Services section, using Install Service. It asks for a Service entry point file, but every combination we use apparently doesn't work.

Since it doesn't accept variables in the Service File name, I assumed we'd select the source file from our local computer which it would pull from and place in the distribution. But when the installer runs, it has some error and lengthy file name it appears to be trying to pull from. So then we removed the path and just put the name of the EXE file - nope.

Since our file is not yet installed on the computer, how can we facilitate this? Can it be performed using the simple dialogs in the editor, or are we going to have to write script?

Any help would be appreciated.

Basically we want to install our EXE called MyService.exe into $TARGETDIR$ (not sure if it should be in Files also, but have tried both ways), and after we put the file on the user's disk at $TARGETDIR$, we want to install that EXE as a Service and start it - seems simple enough.

What are we doing wrong?

(PS - docs are terrible regarding this, and no examples, very frustrating)
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

What would actually have helped to include on your report is the exact error message you are getting, and a screenshot.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
rocketboy
Posts: 4
Joined: Sat Jan 20, 2007 3:10 pm

Really..

Post by rocketboy »

What would have helped would be that your manual actually explained what you expect for the Service entry point file to be, not to mention whether or not the same EXE file should be included in the Files section. It doesn't.

Instead of asking for screenshots, you could have spent your time simply answering the simple question we posed - what should a paid customer of your product place in that field and how does your software handle it for the service installation process.
vincemcc00
Posts: 5
Joined: Fri Jul 13, 2007 9:12 am

Post by vincemcc00 »

I'll have to say that I agree with rocketboy on this. The lack of proper documentation is very frustrating.
HK
Posts: 5
Joined: Sun Feb 25, 2007 4:50 pm

Post by HK »

Not sure if you got to resolve this, but I had a similar problem and found that Install Files came after Install Service.

Just make sure Install Files comes first!

Hope this helps.
Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

Post by Bo Andersen »

I think someone ought to give MichaelNesmith the boot
JebaDaHut
Posts: 3
Joined: Mon Mar 17, 2008 5:19 am

Still stuck

Post by JebaDaHut »

Any solutions to this issue? What the heck is supposed to go into that field? Are there any docs or posts that walk you through installing a service using InstallAware?
stevetr
Posts: 1
Joined: Tue Apr 22, 2008 10:08 pm

Post by stevetr »

I had the exact same problem, and have a solution :D

I had an "Install File" command (so I could get my service exe installed onto the target pc), followed by an "Install Service" command so the service was 'installed' into Windows.

I deleted the "Install File" command, so there was only the "Install Service" command, and the service successfully installed!

When I build my install, IA says it has "copied service MyService.exe" into the build. The "Install service" command must implicitly copy the file from your local PC into the 'target folder'.
That's what the entry point file must mean.

It is a shame that the documentation couldn't have mentioned that "install service" also performs an implicit "install file" :x

Edit: I understand more now. Reading the "install service" dialog carefully, I noticed that the second field on the first tab is 'install folder'. The reason you can't do an "install file" and and "install service" is (presumably) because the "install service" goes to copy the file in but finds it is already there. Maybe the file is locked and so the implicit copy from the "install service" fails, and so the rest of the "install service" command doesn't run.
wxie
Posts: 8
Joined: Tue May 27, 2008 5:58 pm
Location: Canada

Post by wxie »

While using the Install Service command, I tried to use relative path with variable for the field "Service File" -- InstallAware seems doesn't like this. Anybody know how to work around it?
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

1. The service file field doe snot accept variables
2. The service file should be a file in your source files so use the browse button and let it use a complete path and filename.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply