Installer cannot rewrite old files - 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!

Michal Dusek
Posts: 1
Joined: Fri Jun 26, 2009 1:43 pm

Installer cannot rewrite old files

Hello,

I distribute a scientific freeware package. It has been always distributed as self-extracting RAR file but recently I have switched to msi installation package prepared by your program. Many users have old installation, which means the program directory is extracted from RAR archive, with no registry traces about the program except environment variables defined "by hand". Sometimes they are facing the following "mystery":

- The installation directory with old files is c:\jana2006.
- Msi installation to the same directory runs normally but it does not change any file in c:\jana2006
- In the next attempt the installer offers Modify, Repair and Remove. Modify and Repair has no effect, the files in c:\jana2006 remain untouched, with old creation date.
- Remove works as expected. It removes files in c:\jana2006, except directories which are left empty
- Finally, new installation works fine and there is new program in c:\jana2006

This behavior confuses the users, especially because it happens only sometimes. Whe the installation finally succeeds the problem never occurs again.

I would be grateful for any hint.
Best regards,
Michal
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installer cannot rewrite old files

Hi,

Since the original files are not managed by Windows Installer, a solution is to use a custom action to delete them before the installation starts. Please note that the User Guide contains the Remove a file or a folder during installation how-to which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”