Invoking updater from c# application - 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!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Invoking updater from c# application

Hi

I am trying to install upgrades for my application using a menu in main form c#.
On the click event I am calling "SWUpdater.exe/checknow" for installing the updates. But while installing the updates I am getting following error message .. How to avoid this???
Attachments
installer.png
installer.png (198.48 KiB) Viewed 4286 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Invoking updater from c# application

Hi,

In order to avoid the "File in Use" dialog you can use one of the following two solutions:

1. Create a "Close Application" custom action for each application you want to close.

OR

2. Use the "Auto Close Application" feature when you create the Updates Configuration File.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”