Keeping Folder during Update - 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!

tommyh1122
Posts: 16
Joined: Thu Jun 02, 2011 10:03 pm

Keeping Folder during Update

Hello,

I am having a problem creating an update for an application. The problem I am running into is I have a folder containing images that was included in the initial installation. When I run the upgrade package the Images folder is deleted causing issues with my application. I have tried the Persistent User Data Wizard adding all the images from the folder. Also from the Organization section selecting "Never Overwrite" to the Images components and nothing seems works.

Any help on how to keep the folder would be greatly appreciated.

Thank you
Michael
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Keeping Folder during Update

Hello Michael and welcome to the Advanced Installer Forums,

If you are using the synchronized folder feature, this might be the cause of the issue. Here is a similar thread that debates the reason.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tommyh1122
Posts: 16
Joined: Thu Jun 02, 2011 10:03 pm

Re: Keeping Folder during Update

Thank you,

I have actually been trying different things and seems that everything is working properly until I set a "File Removal" operation to the folder that the Image folder is located. I have another file located in that folder but have it specified as a persistent file and this is kept during the upgrade. Not sure why my Image folder is deleted after setting a file for removal. Here is my folder structure:

Application Folder
Extra Folder - Contains the file set as Persistent as well as the file I added for "File Removal"
Images Folder - Contains all the images


I do have the Order set as "Install new version first and then uninstall old version" and have tried unselecting "Synchronize content with folder from disk" and nothing works.

Thanks
Michael
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Keeping Folder during Update

Hi Michael,

Do the files' components have the same GUID in both versions like mentioned in this post ? You can verify this from the Organization page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tommyh1122
Posts: 16
Joined: Thu Jun 02, 2011 10:03 pm

Re: Keeping Folder during Update

Excellent, that worked when I made sure the file components had the same GUID.

One other question I have. I released a version 1.0.0 of my application a while back, recently a version 2.0.0 was released and wanted to put an update out for the 2.0.0 version. I for some reason or another set the update URL of both versions to the same location. Is there a way to only update the 2.0.0 version and not the 1.0.0? I noticed that under the "Update Target" tab of an update there is way to set a product version that you want the update applied but noticed that in the 1.0.0 update.txt file there is not an applicationversion. Is there anyway to get version 2.0.0 updated without updating 1.0.0 as well?


Thank you
Michael
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Keeping Folder during Update

Hello Michael,

You can set this in your updates configuration project from the Update Targets Tab. Here's its user guide reference.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”