Installation Condition for Service - 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!

lsjames
Posts: 1
Joined: Mon Oct 06, 2008 4:43 pm

Installation Condition for Service

I have a program "a.exe", it can run as both service mode and application mode.
So how to make the project by Advanced Installer.

Vista or later:
copy "a.exe"
create a shortcut for application "a.exe"

Not Vista:
copy "a.exe"
install a service for "a.exe" and create a shortcut for the service.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installation Condition for Service

Hi,

A service is installed only if its executable is installed. Therefore, what you need can be done by using two copies of the main EXE of the service:
- configure the project to install the application (lets suppose the main EXE is in "Application Folder")
- create a subfolder under "Application Folder"
- double-click it and check the "Install folder content into the parent folder" option in the Properties tab of the "Edit Folder" dialog
- in this folder add the main EXE again from the disk
- in the Services page configure the second EXE as a service
- in the Organization page use the VersionNT property to condition the components of the two EXE files

Please note that the shortcuts are automatically placed in the components of their targets.

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

Return to “Common Problems”