yohanc
Posts: 5
Joined: Tue Nov 15, 2016 7:23 pm

Can't Rewrite Files

Hi Folks,

I have some problem here
I made a simple exe to update a software, basically I want to replace/overwrite some old files from that software with a newer files
But I encountered this bug/error, when I tried to install the new file using my exe to the software, some of the old files can be overwriten but most of it can't be overwriten somehow (the old file still exist/not overwriten)

I make simple a test, by installing my new files to desktop and it worked just fine all the new file can be install in my desktop
my second test, erasing all the old files from the software, and install the new files, and i worked too the new files can be install
But when I try to install it on the software with the old files still exist, it just not working properly, most of the files can't be replaced/overwriten

Note: I don't need to overwrite/replace the software exe, only some files from the software like dll, dat, bat, etc
I have unchecked the "Register product with windows installer"

I just want to make a simple exe to replace old files with a new one (that's it), and I don't want that exe to make some sort of registry or anything like that to the target computer

Any help?
Thanks
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can't Rewrite Files

Hello,

Can you please try to enable the "Always overwrite existing files" option on your folders or files from "Files and Folders" page and see if this works as expected?

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yohanc
Posts: 5
Joined: Tue Nov 15, 2016 7:23 pm

Re: Can't Rewrite Files

Thanks Man!
It works now

A little suggestion, I guess, you guys should make the "Always overwrite existing files" as the default setting in the "Files and Folders" page, for your Advanced Installer software future update
Because I believe other people probably will face the same problem as me, if they want to make some kind of patch/upgrade exe
People make a patch/upgrade exe, always to overwrite the existing previous files
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can't Rewrite Files

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

Thank you for your suggestion. Maybe we'll consider our default overwrite settings in the future.

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

Return to “Common Problems”