Install on top of previous installation without uninstalling - 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!

aldenlong
Posts: 23
Joined: Mon Oct 01, 2012 8:58 pm

Install on top of previous installation without uninstalling

Our environment is a dedicated machine control computer, and we do not register the software with the Windows Installer as there is never a reason to uninstall software. Our customers are used to installing software versions on top of previous versions that may be older, or sometimes newer -- if they did not like the latest release. I need the installer to be compatible with this process. However, I am having problems, in that I find the installer will not overwrite existing files with the files of the same name from its package. It generates no errors, and acts as though everthing completed successfully -- but I find the old files have not been replaced. Is there anything I can do to force the installer to overwrite existing files of the same name?

If the above is not possible, how do I set up the installer for automatic/silent uninstall before installing -- and will this fail if the installing version is older than the installed version?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install on top of previous installation without uninstal

Hi,

The existing files may not be overwritten with files of the same name because of the Files Version Rules.

You can force the overwriting by using an Advanced Installer feature:
- go in the Files and Folders page
- right click on the file you want be installed over an existing one
- click Properties
- choose "Operations" tab
- select the "Always overwrite existing file" radio button

Let us know if it helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aldenlong
Posts: 23
Joined: Mon Oct 01, 2012 8:58 pm

Re: Install on top of previous installation without uninstal

That did not work. I was a bit dissapointed that you suggested setting the Operations status of each file individually (there are over 200 of them), but I found I could do it globally by setting the Always overwrite existing files selection in the properties of the containing folder. However, the installation still did not replace the existing files with the versions in the installation package. Attached is a sample from the log file for two of the files that were not installed.
Attachments
INSTALL FAIL.TXT
(2.13 KiB) Downloaded 638 times
aldenlong
Posts: 23
Joined: Mon Oct 01, 2012 8:58 pm

Re: Install on top of previous installation without uninstal

[Update] Setting the Always overwrite existing files operation under Properties may be working, as I can prove that some files are being overwritten. However, I have another problem with some component file groups not being installed at all -- even if there are no files of the same name to overwrite. This problem has confused my testing so that I thought the overwrite was not working. I notice that the resource files are grouped very oddly in the Deployment/Organization page. I can determine no reason for the grouping and key file assignments that the program has chosen. My installation should consist primary of one set of files which all need to be installed in the same directory. Simple enough. All the component groupings in the Organization tab have the same settings, but one component group now refuses to install at all -- whether or not there are existing files of the same name. I am attaching the entire verbose log file. The component group that is failing is named Objects1.bin, which is also the name of one of the files in the group. I note that the only reference to Objects1.bin in the log says "Action: Null", which is consistent with the behavior I am seeing, but I have no idea why this is happening. I am also attaching a screen capture of the Organization page with that group expanded so you can possibly explain to me how this grouping makes sense.
Attachments
Screen capture of expanded "Objects1.bin" component group
Screen capture of expanded "Objects1.bin" component group
AI Organization Detail.jpg (132.88 KiB) Viewed 11422 times
TEST.LOG
Verbose log file of failed installation.
(394.95 KiB) Downloaded 425 times
aldenlong
Posts: 23
Joined: Mon Oct 01, 2012 8:58 pm

Re: Install on top of previous installation without uninstal

I seem to have found my error -- of course, just after posting the problem. Among my many attempts to resolve the file overwrite problem, I read the help file for the Component/Condition field: "If the condition is null or is evaluated to false, the component is not installed.", and concluded that I needed to supply some sort of condition. I attempted to force an always-true condition, hoping that the text "True" would accomplish this. Apparently, rather than what I hoped, it has the opposite effect of preventing installation of the component altogether. I had not intended to save this experimental change, but I find that some edits of an open project are saved whether or not I intentionally do so. Anyway, I believe I am up and running again. Thanks anyway.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install on top of previous installation without uninstal

You're welcome. I'm glad you got this working.

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

Return to “Common Problems”