Silent Installation - 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!

maro
Posts: 12
Joined: Wed Mar 31, 2010 8:36 am

Silent Installation

Hi,

I want to make a silent installer using advanced installer. I believe this can be done by clicking on the checkbox that says "Limit to basic user interface", and i did. It works pretty well, most of the time. But lately I've been having troubles with windows requiring me to close down Skype (I always have this opened) when i am updating using auto updater.

The things is, is there a way to detect which files in my installer are in conflict with any running processes while uninstalling my program? if so, can i add a custom action that skips uninstall of these files (on uninstall) and renames them (on install IF they are already installed in machine)?

for example:

My installer package installs A.dll to C:\myprogram.

Skype (or any other program) uses this A.dll.

On uninstall:
Skype uses A.dll. (I want to detect this...and if it returns true, then i want to leave A.dll and not uninstall it..therefore, there is no need for a prompt to appear)

On Install:
A.dll already exists (Also, i want to detect this... and if returns true, I want to install A.dll from my installer as B.dll)

is this posible?

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Silent Installation

Hello,

You can try using a Detect Process or a Terminate Process custom action to terminate Skype so the install can proceed uninterrupted.
Check our guide on How do I detect or stop a process for more details on this.

I am afraid Windows Installer does not provide a way to detect the files in use.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
maro
Posts: 12
Joined: Wed Mar 31, 2010 8:36 am

Re: Silent Installation

Hey Gabriel,

I was thinking of going the other way.... i was thinking of not terminating skype (or any other program) while updating because we want a silent installer.

So, there's no way for advanced installer to detect which files in my MSI are already installed in the machine? and there's no way to check whether a file is being used by another program when uninstalling?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Silent Installation

Hello,
So, there's no way for advanced installer to detect which files in my MSI are already installed in the machine? and there's no way to check whether a file is being used by another program when uninstalling?
Yes, this is true for all .msi based installers regardless of the software they were authored with. You can try creating your own custom action and implement this functionality there. However Windows Installer does not provide direct support for this.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
maro
Posts: 12
Joined: Wed Mar 31, 2010 8:36 am

Re: Silent Installation

Okay. Thank you very much for your help, Gabriel.

Best Regards,

Marlo Paulo Roxas

Return to “Common Problems”