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!

Newman
Posts: 4
Joined: Sat Jan 24, 2015 11:19 am

Service Dependencies modify

When i make a Build of a Software that install a Service with Dependencies: wmiApSrv[~]Winmgmt and a User has Change that Service Start Type to "Disable" the installer says by the Installation that the Server could not start and the Installation will abort.

That's OK, but I can not Show the User that these services must be started before installing.

Is it possible during the installation of the software to convert these services to Automatic befor (wmiApSrv[~]Winmgmt) the service is installed by the software?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Service Dependencies modify

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve this, you can follow the first 4 steps described in the Sequence service stop/start and file removal thread.

Let us know if you have any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Newman
Posts: 4
Joined: Sat Jan 24, 2015 11:19 am

Re: Service Dependencies modify

The link is good, but it does not fit with version 11. I think the menus are not at all given there. Is it possible to get a screenshot?

- go in the "Custom Action" page and add a "Launch file" custom action after the "Install Execution Stage -> Paths Resolution" action group
- right-click in the "File to launch" field, select "File..." and choose your BAT file from the dialog that appears
- go to their properties dialog and in the "Registration" tab select the "Auto register file" option, then the "Extract registration info from native library" option with synchronization set to "Enabled"
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Service Dependencies modify

Hi,

You should implement only the following steps from what is described in the mentioned thread:
- create a BAT file that stops the services you need. For instance:
  • sc stop A
    sc stop B
- go in the "Files and Folders" page and add that file as a temporary file using the "Temporary Files" toolbar button
- go in the "Custom Action" page and add a "Launch file" custom action after the "Install Execution Stage -> Paths Resolution" action group
- right-click in the "File to launch" field, select "File..." and choose your BAT file from the dialog that appears

The UI did not change since version 11.0 and it looks like in the attached image.

Best regards,
Eusebiu
Attachments
Launch File CA.png
Launch File CA.png (80.09 KiB) Viewed 2698 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”