Persistent folder - 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

Persistent folder

I can't figure out how to get the following behavior:

* When the user uninstalls "myapp", I'd like to delete AppData\myapp and everything in it.

* When the user does a (major) upgrade, I'd like everything in AppData\myapp to remain.

Is there a way to do this? I know I can mark files as Persistent Data, but I can't seem to mark folders that way.

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

Re: Persistent folder

Hello,

Starting with Advanced Installer 9.4 you can. The option is called "Preserve folder content" and can be accessible from a folder's context menu -> Properties -> Operation tab.
FYI: The user guide screenshot is updated starting with the 9.5 soon release.

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

Re: Persistent folder

Ok, I've upgraded to 9.4.

So if I check "Preserve folder content" the folder won't get deleted on an upgrade? How do I get it to delete on an uninstall? The folder contains data created by the app, not just installed files.

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

Re: Persistent folder

Hello,
So if I check "Preserve folder content" the folder won't get deleted on an upgrade? How do I get it to delete on an uninstall?
To execute this operation during an upgrade only, you can try conditioning it using the following FAQ:
How do I determine if an Upgrade is being performed?
The folder contains data created by the app, not just installed files.
If the above doesn't clear all your files on uninstall you can try using the "Uninstall Cleanup" wizard in the target version's installer project. This wizard will allow you to specify what files and folders created by your application will be removed upon uninstall. In order to run this wizard select the parent folder, the directory from where you want to delete files and folder, and from the context menu select “Uninstall Cleanup...”. After the wizard launches, simply follow to on-screen instructions to choose the files you want to delete.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
powerstory
Posts: 2
Joined: Sat Nov 03, 2012 5:10 pm

Re: Persistent folder

Hi Mihai,

I don't see this "Preserve Folder Content" option in the operations tab?

I use version 9.9

DId this feature get removed or moved somewhere else?

Martin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Persistent folder

Hello Martin,

In our current version (9.9) of Advanced Installer you can use the "Do not overwrite existing files" option from "Folder Operations Tab". Also, you can take a look on our "Prevent Repair or Uninstall" article which should be useful for you.

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

Return to “Common Problems”