windows service project - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

chanid
Posts: 2
Joined: Fri May 22, 2009 12:11 pm

windows service project

I have a .NET setup project which has a custom ProjectInstaller that, beside installing a windows service, it install other required features, namely a windows event log components. But when I have imported this project into AdvancedInstaller, I’m always getting an error with status no ‘1603’. I was expecting when you import a setup project it will automatically grab all the project components, including the Service, but it looks like that is not true.
What I’m doing wrong here? And whatthe correct steps for me to import such a project.
TIA for any help
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: windows service project

Hi,

I'm afraid the services are not imported from Visual Studio projects. However, you can configure them manually through the Services page. Please note that the User Guide contains a service tutorial which may help you.

The error 1603 means "The file [2][3] is being held in use by the following process: Name: [4], Id: [5], Window Title: '[6]'" (more details are shown in the installation log). Basically, a file cannot be overwritten because it's being used by another process.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chanid
Posts: 2
Joined: Fri May 22, 2009 12:11 pm

Re: windows service project

hi Cosmin,
thanks for your reply.
Unforunalty the service tutorial link is for Java Service, while mine is a .NET one. i can manually add the service file within the IA project but will that run my custom ProjectInstaller as well, as it contain other custom actions?
Regards,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: windows service project

Hi,

If it contains other actions, you can try using it to create .NET Installer Class Actions for "Install", "Uninstall", "Rollback" and "Commit". These actions can also handle the service installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”