Cannot get files to overwrite - 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!

toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Cannot get files to overwrite

I'm trying to configure my installer to overwrite all the files in a certain folder. I've chosen the "Always overwrite existing files" option on the Operations tab of the folder properties and for the file themselves, but it's still not working.

Here's how I'm testing:

1. Run the installer on a clean machine
2. Modify one of the installed files
3. Bump up the version number in the installer and select Major Upgrade
4. Build and install

When I check, the file I modified is still there, not replaced by the installer.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot get files to overwrite

Hello,

I've tested your scenario with version 9.9 of Advanced Installer, but I cannot reproduce the behavior. Can you attach a sample (target and upgraded .AIPs and MSI files) which reproduces the behavior or give us a detailed step by step test case scenario so we can try to reproduce this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Re: Cannot get files to overwrite

I've attached a zip containing two AIP files and two MSI files. Here's how to reproduce the bug.

1. Run "Overwrite Test v1 Setup.msi"
2. Find the file "test.txt" in "My Documents\Base ADAPT\Save\"
3. Use Notepad to modify test.txt.
4. Run "Overwrite Test v2 Setup.msi"
5. Note that "test.txt" was not replaced

Thanks.
Attachments
Overwrite Test.zip
(620.24 KiB) Downloaded 353 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot get files to overwrite

Hello,

This happens because you have enabled the "Do not overwrite existing files" option, from "Folder Properties -> Operations" tab, for the "My Documents" folder in "Files and Folders" page. So, can you disable the above option and see if the behavior still persist?

Also, I've observed that your installation folder is set to "[ProgramFilesFolder][ProductName]" (which is a per-machine location). Please keep in mind that if you want to have a per-user installation, then you should set the "Application Folder" field, from "Install Parameters" page, to a per-user location (i.e. [AppDataFolder][Manufacturer]\[ProductName]).

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

Return to “Common Problems”