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!

codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

updater service launches update but needs to update itself

I'm currently running the updater as a service. It finds an update and downloads it, but when it starts the install the service is still running and I get a prompt to close the service. My install has it set to stop and delete on uninstall and to start on install, but it does not seem to be stopping it. Once i start the update do I need to stop it myself in my application?

It also is not closing my application. My deployment site has it set to AutoCloseApplication="[APPDIR]\myapp\myapp.exe" The original installation was not done by AI, so we're updating the current app and adding the updater service so the next round of updates we can use the updater to reinstall with the AI msi. I'm not sure where it would get the [APPDIR] from, but this was how the deployment site created the txt file on the server.

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

Re: updater service launches update but needs to update itse

Hello Scott,
I'm currently running the updater as a service. It finds an update and downloads it, but when it starts the install the service is still running and I get a prompt to close the service. My install has it set to stop and delete on uninstall and to start on install, but it does not seem to be stopping it.
Indeed, this is an Advanced Installer limitation. We are aware about this and a fix will be included in our 10.2 version of Advanced Installer which should be released in 1-2 months.
Once i start the update do I need to stop it myself in my application?
No, you should not stop the service from your application.
It also is not closing my application. My deployment site has it set to AutoCloseApplication="[APPDIR]\myapp\myapp.exe" The original installation was not done by AI, so we're updating the current app and adding the updater service so the next round of updates we can use the updater to reinstall with the AI msi. I'm not sure where it would get the [APPDIR] from, but this was how the deployment site created the txt file on the server.
Please keep in mind that (when resolved) the APPDIR property's value ends in a backslash (\). So, can you set your auto close application path like this:

Code: Select all

[APPDIR]\myapp\myapp.exe
and see if the behavior still persist? If so, please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: updater service launches update but needs to update itse

Is there a work around to:

1. close my application once the msi starts installing
2. auto close the service so users don't get the close service prompt?
3. since the service doesn't really need to be removed, is there a way to just not remove it on update or on uninstall?


Thanks,
Scott
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: updater service launches update but needs to update itse

Hi Scott,

The methods you mentioned are not the solution. From the following link you can try a version of the updater with the fix Daniel mentioned, to see if it works for you:
https://dl.dropboxusercontent.com/u/539 ... pdater.zip

Just extract it, replace the binary file from the install folder of Advanced Installer, in "stubs" sub-folder, not "bin". Restart Advanced Installer and rebuild your project.

Regarding APPDIR in the auto-close support, you cannot use it since the old version of the package was not created with Advanced Installer.
Instead of this you can add our predefined custom action "Close application" in the beginning phase of your installation.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: updater service launches update but needs to update itse

Thanks. The close application custom action works, not sure how I missed it.

The did replace the updater files in stubs->res for the dll. There's an updater.exe in stubs->x86a and stubs->x86u so i replaced both of those with the one in the zip, but it still prompted to stop the service.

Thanks,
Scott
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: updater service launches update but needs to update itse

Hi Scott,

Also, have you restarted Advanced Installer, deleted the output package and forced a rebuild operation on it?

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”