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!

l.filip
Posts: 3
Joined: Tue Aug 05, 2014 4:23 pm

Service upgrade fails on Windows 2012 on first attempt

Hi,

We're using Advanced Installer 10.6 for several products and components. Some of the MSIs we're building are used to install / upgrade a Windows Service. In Resources > Services > Control Operations, the service is configured with Start and Stop actions for "On install", and with Stop and Delete options for "On Uninstall". In "Services to Install" the service type is set to "A Win32 service that runs in its own process", and the option "The service is vital for this installation" is checked. In Product Information > Upgrades, the option "Automatically upgrade older product versions" is selected, and the (Upgrade) Order is set to "Uninstall old version first and then install new version".
The MSIs are working correctly for install / upgrade / uninstall scenarios on almost all Windows versions, but... On Windows 2012, during upgrades, a warning message is shown: "Service '...' could not be installed. Verify that you have sufficient privileges to install system services." (from msiexec logs the error code appears to be 1923). The message box has two buttons - "Retry" and "Cancel"; after "Retry" is clicked, the upgrade process resumes and completes successfully.
It's not a matter of insufficient privileges, because the installer is run with admin privileges. The warning is shown in the "install phase" of the upgrade process, while the status is "Installing new services". The issue occurs every time we do an upgrade on any Windows 2012 machine.

From a few tests we've run, it seems that if we change the Upgrade Order to "Install new version first and then uninstall old version", the warning message described above is not shown anymore. However, we're not sure if this is a good solution to our problem.

Can you please let us know if there are any known issues on Windows 2012 that would require some changes in the way the .AIPs are configured for service installations / upgrades?

Thank you,

Lucian Filip
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service upgrade fails on Windows 2012 on first attempt

Hello Lucian and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you are encountering the related behavior. Can you please enable the "Wait until the service completes" option from your Service Control Operations and see if the behavior still persists?

Also, please keep in mind that when using the "Install new version first and then uninstall old version" upgrade option the components should not be changed from one version to another, they should use the same name and GUIDs. Also, please take a look on our "Upgrades" article.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
l.filip
Posts: 3
Joined: Tue Aug 05, 2014 4:23 pm

Re: Service upgrade fails on Windows 2012 on first attempt

Hi Daniel,

Thanks for the suggestions. I forgot to mention in my initial post that "Wait until the service completes" is checked / enabled in Control Operations.

Lucian
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service upgrade fails on Windows 2012 on first attempt

Hello Lucian,

Can you please send us the .AIPs (project files) of the old and upgraded version of your product and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
l.filip
Posts: 3
Joined: Tue Aug 05, 2014 4:23 pm

Re: Service upgrade fails on Windows 2012 on first attempt

Hi Daniel,

I've just sent the email with the requested files to the support mailbox. There's only one .aip file in the attached archive, as the same project file was used to build the MSIs of both the old and the new version.
Also, I've attached two logs:
- one obtained during a silent upgrade (with the msiexec's /q command line switch); at the end of this silent upgrade, the product is no longer installed on the target machine, because the old version is successfully removed, while the new one fails to install;
- the other obtained during a regular (UI-enabled) upgrade, that - after clicking the Retry button - completes successfully.

I hope these will help diagnose the problem.
Thanks in advance for your effort and your help.

Lucian Filip
dougroutledge
Posts: 3
Joined: Mon Aug 17, 2015 8:20 pm

Re: Service upgrade fails on Windows 2012 on first attempt

The problem is worse if you are running the updater on a schedule, as it will uninstall the product, then fail, leaving your service missing all together. I can confirm this condition on lots of customers running 2012 R2, and a fix is needed asap!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service upgrade fails on Windows 2012 on first attempt

Hello,

Can you please send us the AIPs (project files) of your old product version, of the new product version and of the updates configuration project and a verbose log of the upgrade installation to support at advancedinstaller dot com so we can investigate them? Also, please iterate a detailed step by step test case which you perform to replicate the issue.

It would be very useful if you could isolate the behavior in a buildable sample (AIPs + their referenced files) and send it us alonside a test case which we can use to replicate the issue on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dougroutledge
Posts: 3
Joined: Mon Aug 17, 2015 8:20 pm

Re: Service upgrade fails on Windows 2012 on first attempt

I don't have "old" project files, my existing aip projects that work on every other version of windows are suffering the 1923 error when attempting to install services, like the other posts mention. What is the best way to generate the verbose log?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service upgrade fails on Windows 2012 on first attempt

Hello,

Please note that it is highly recommended to keep a backup copy of each of your project files. They are especially important for troubleshooting purposes and a correct way of maintaining your new project versions.

To generate a verbose log of the updates setup launched by the Updater tool you should open your updates configuration project, go to "Updates page -> Update Installer tab" and in the "Command Line" field append the following switch:

Code: Select all

/L*V <pathToLogFile>
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dougroutledge
Posts: 3
Joined: Mon Aug 17, 2015 8:20 pm

Re: Service upgrade fails on Windows 2012 on first attempt

Files have been emailed.

Return to “Common Problems”