Data Folder Never Uninstall - Advanced Installer Community
Jim Adam
Posts: 2
Joined: Thu Jun 06, 2013 4:28 pm

Data Folder Never Uninstall

Hello,

My users need to set up an initial data folder with empty data and template files that we supply, or update an already existing data folder with newer templates. The folder where the user chooses to install the data must be able to be selected at installation. Once installed, no Uninstall operation should remove the data files or templates, and no install or re-install should over-write.

I tried setting up a folder called DataFolder and the files would not over-write. I set up a dialog to prompt for DataFolder, and that worked. But uninstall removed the files.

I looked through your forum, and set up a feature called StartupData. I moved DataFolder contents into the StartupData feature. Do I need to tell StartupData feature that its folder is DataFolder? When I try to do that, it says "Only non system folders and public properties can be selected!" I thought that DataFolder was a public property.

Advise?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Data Folder Never Uninstall

Hi and welcome to Advanced Installer forums.

In order to achieve what you want you can go in the Files and Folders page, right-click on the folder that contains your data files, select "Properties", go in the "Operations" tab and check the "Do not overwrite existing files" option.

Also, please keep in mind that all public properties are written in capitals. You can create a public property in the Install Parameters page, using the [Property] toolbar button and you can also create a "Property-based" folder using this property in the Files and Folders page.

You can read more about properties in our Windows Installer Properties article.

Let us know if this helped.

Best Regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jim Adam
Posts: 2
Joined: Thu Jun 06, 2013 4:28 pm

Re: Data Folder Never Uninstall

Yes, the problem was the mixed case I was using on the public property. Thanks for your reply.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Data Folder Never Uninstall

You're welcome. Glad to help.

Best Regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”