Installed service stopped when exiting finish dialog - Advanced Installer Community
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Installed service stopped when exiting finish dialog

Hello everybody,

we are experiencing a strange behavior after upgrading AI from 10.9 to 11.2:

Our setup (multilingual EN/DE, mixed 32/64bit with exe bootstrapper) is installing and starting a Windows service (using the "Services" page).
Up to AI 10.9 everything worked fine.
Since upgrading to 11.2 the service is still correctly installed and started but then stopped again when exiting the ExitDialog by clicking the "Finish" button.
However, this fault only occurs when NOT choosing English as installer language. The behavior is NOT influenced by the OS language.

The MSI log file obviously doesn't provide any information as the service termination happens AFTER installation when dismissing the last dialog.

Does anyone have an idea what might be causing this strange behavior?
Any help is greatly appreciated!

Thanks in advance,
Oliver
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installed service stopped when exiting finish dialog

Hello Oliver,

I'm afraid I don't have any clue about what could cause this behavior. Can you please send us the AIPs (project file) created with 10.9 and 11.2 version of AI to support at advancedinstaller dot com so we can take a look? Also, can you tell us if you can replicate the behavior on multiple clean machines?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Installed service stopped when exiting finish dialog

Hi Daniel,

I'll send the AIP files to you shortly.

We can reproduce this behavior on fresh installations of Windows XP Pro SP3 and Windows 7 Pro SP1 (checked on EN/DE and x86/x64 versions).
We can NOT reproduce this on Windows 8.1 though.

I tried setting up a new similar project with AI 11.2.1 but it is NOT showing the same behavior, though I even duplicated the service-related custom actions ...

Best regards,
Oliver
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Installed service stopped when exiting finish dialog

Daniel,
I've added some additional checks to the custom actions for stopping/starting the installed service (introduced almost a year ago for proper update/repair handling, s.a. this post)

This is what happens when installing in English:

1. the service is installed
2. the service is started by the setup's control operation (verified by task manager)
3. the custom action "EnsureDatabaseServiceIsStarted" is called (Sequenced between InstallExecute and InstallFinalize)

Running the same setup in German executes as follows:

1. the service is installed
2. the service is started by the setup's control operation (verified by task manager)
3. the custom action "EnsureDatabaseServiceIsStarted" is called (Sequenced between InstallExecute and InstallFinalize)
4. when clicking the ExitDialog's "Fertigstellen" (Finish) button the custom action "StopDatabaseService" is called (Sequenced right before Preparing)

Step 4 shouldn't happen at all - I have no clue why this particular custom action is called. Neither do I know why it only happens when choosing the German language!

I hope this information helps in investigating the issue.

Best regards,
Oliver
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installed service stopped when exiting finish dialog

Hello Oliver,

I apologize for my delayed reply. We had a couple of days off here due to a national holiday.

We've analyzed your sent projects but we couldn't find anything which could generate the related behavior. Can you please send us a please send a verbose log of the problematic installation to support at advancedinstaller dot com so we can investigate? Maybe we can find something relevant in the log file. Also, it would be useful if you could send us a download link for your setup package alongside a step by step test case which we can follow in order to replicate the behavior.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Installed service stopped when exiting finish dialog

Hello Daniel,

we also had a day off due to a national holiday.
I've sent a download link for the logs and setups and detailed instructions on how to reproduce the problem via mail.

Edit: In contrast to what I wrote earlier, we ARE able to reproduce the behavior on Windows 8.1, too.

Best regards,
Oliver
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installed service stopped when exiting finish dialog

Hello Oliver,

I've tested the scenario and indeed I was able to replicate the behavior. This happens because our "Enhanced User Interface" feature, after installation, launches the installed MSI silently in maintenance mode. Therefore, your "StopDatabaseService" custom action is triggered after finishing the installation.This is an Advanced Installer issue appeared in our last version of Advanced Installer. We apologize for this inconvenience.

A fix will be available in our next version of Advanced Installer. We'll notify you when this will be out. Until then, as a workaround, I'll send you on e-mail a fix for this issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Installed service stopped when exiting finish dialog

Hello Daniel,

the fix you sent me is working as expected: The StopDatabaseService custom action is no longer called when dismissing the ExitDialog.

Thanks for your support!

Best regards,
Oliver
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installed service stopped when exiting finish dialog

You're welcome Oliver.

We'll notify you when the fix will be out in our next version of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installed service stopped when exiting finish dialog

Hello,

This was fixed in version 11.3 of Advanced Installer released on June 17th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
othulke
Posts: 27
Joined: Thu Aug 01, 2013 1:51 pm

Re: Installed service stopped when exiting finish dialog

Dan,
thanks for the release information.

We rebuilt the setup with AI 11.3 and everything's working as expected.

Thanks again for the support!

Best regards,
Oliver
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installed service stopped when exiting finish dialog

You're welcome Oliver,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”