Files currently in use issue with install/update - 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!

jglavin
Posts: 1
Joined: Thu Nov 29, 2012 8:17 pm

Files currently in use issue with install/update

I have several issues/dilemmas with migrating from InstallShield MSI to Advanced Installer, I am using the trial version of Advanced Installer. Currently for our product which uses MSI installshield when we release new versions we use a "Minor Upgrade" as they call it and it installs new versions of our product and prompts the user "This will upgrade product name" and after it completes asks the user to reboot. We would like to find a way to do this with Advanced Installer as well but have ran into several issues and I am looking for guidance.

I have tried 2 methods for Advanced Installer, Major Upgrades, and Patches.

1. For major upgrades I don't like the fact that it does an uninstall first and then installs the new version and runs through all the questions again like Installation Folder and license agreement. Since this is just an update it shouldn't prompt for installation folder and use the previous directory. How can I get around this prompting again ?

2. On patches when I install it I am not prompted at the end to reboot the system which should be required because some of the DLL's are in use and not able to update until reboot.

Also for either method I get prompted with the dialog stating "Some files that need to be updated are currently in use" and can pick "Automatically close" and "Do not close (a reboot will be required). And I am also prompted with this dialog twice during the install, not sure why maybe during the uninstall and the install ?

Is there a way to force this dialog to not display and have it always select "do not close a reboot will be required" ? It's not possible with our product to completely close all the applications like (explorer, and some other windows subsystem dll's), so when updating our product a reboot is always required.

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

Re: Files currently in use issue with install/update

Hello John and welcome to Advanced Installer,

Thank you for your interest in Advanced Installer.
1. For major upgrades I don't like the fact that it does an uninstall first and then installs the new version and runs through all the questions again like Installation Folder and license agreement. Since this is just an update it shouldn't prompt for installation folder and use the previous directory. How can I get around this prompting again ?
In order to achieve this you can proceed like this:
- Go to "Upgrades" page and enable "Use original installation path when upgrading" option.
- Go to "Dialogs" page, select "FolderDlg" dialog, from its context menu choose "Show only if..." option and use the following condition:

Code: Select all

NOT OLDPRODUCTS
- Build and run your project.

Please take a look on our "How do I determine if an Upgrade is being performed?" article.
2. On patches when I install it I am not prompted at the end to reboot the system which should be required because some of the DLL's are in use and not able to update until reboot.
In order to achieve this you can set the "Reboot behavior" to "Force Reboot after install" from "Install Parameters" page.
Is there a way to force this dialog to not display and have it always select "do not close a reboot will be required" ?
Please take a look on our "How is Files in Use determined - can it be overridden?" article.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”