I need to update without overwriting folders - 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!

vlopez1985
Posts: 3
Joined: Sun Mar 21, 2010 5:55 pm

I need to update without overwriting folders

Hello everyone,

I'm pretty new with Advanced Installer and I need some directions with this problem.

I have an application that will be updated regulary, but this updates mainly consist in adding new jar files or modifying an existing one , so I want my Updater application to install the new jars without overwriting the folders that already exists, only overwrite existing jars.

For example, my main installer created the following folder

c:/program files/my app/

and inside it created jar1.jar and jar2.jar

Then i have a new update that should copy jar3.jar inside that folder, but instead it is creating the folder again :( so I end up with :
c:/program files/my app/
and after update i only have jar3.jar inside

I need the updater to copy the new jars inside that folder, without creating it again because then I lose the previous files I had in there :( and the point is that my updater only contains the new files and no the whole application.

Is there any property that I can set so the installer doen´t overwrite the folders, but only the files??

Thanks in advance
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: I need to update without overwriting folders

Hello and welcome to Advanced Installer forums,

You can do one of two things:
- create a patch. Patches only install modified content over the already existing installation.
- use automatic updates. They uninstall your old version completely and then install the new version.

It is recommended that you carefully study and read the entire tutorials so you can understand how to achieve what you want.
Let me know if there is anything unclear in the tutorials, and I will gladly assist.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
vlopez1985
Posts: 3
Joined: Sun Mar 21, 2010 5:55 pm

Re: I need to update without overwriting folders

Thanks!!

I solved it using a custom action and xcopy to make a backup of the file and the recover them.

Return to “Common Problems”