JimHawkins
Posts: 5
Joined: Tue Jun 09, 2009 5:52 pm

Installing Service on Windows 7

I'm getting an AI halt when trying to install a 32-bit service on Windows 7 64-bit. The service can be installed manually using a CMD shell in Administrator mode.

It looks to me as though AI doesn't have enough privilege to do this. What are the correct settings to ensure a successful service install?

Jim
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing Service on Windows 7

Hi Jim,

You can use the Services page to install a service.
If you are not already doing so, and using a custom action instead, make sure you are setting the "Run deferred with..." option for the custom action that installs it. This will enable it to run with full privileges.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
JimHawkins
Posts: 5
Joined: Tue Jun 09, 2009 5:52 pm

Re: Installing Service on Windows 7

Thanks, Gabriel

I'm using the Services page to set it up the AI build is ok. It's the runtime that's the problem.

Would I be better off with a Custom Action? If so, what should it look like????

TIA

Jim
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Installing Service on Windows 7

Hi Jim,

The service should install fine using Advanced Installer, no custom action should be needed.
I'm not sure what is not working for you.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
JimHawkins
Posts: 5
Joined: Tue Jun 09, 2009 5:52 pm

Re: Installing Service on Windows 7

Thanks, Gabriel

The problem may be that Microsoft have changed the OLE event order for services at startup, so I'm looking at the services themselves before pointing any fingers.

Does anybody else find it hard to understand MS's urge to ensure that code that has been working for 10 years across the world doesn't work correctly now?

Jim

Return to “Common Problems”