Do not delete specific files in a 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!

anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Do not delete specific files in a folder

Using AI enterprise. In my AppFolder have a File delete rule that says *.txt". Question is how do I add another rule or change existing delete rule so it does not delete specific text files in the AppFolder (example config.txt, release.txt and eula.txt) but does delete all other text files. Any ideas how to achieve this selected delete?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Do not delete specific files in a folder

Hi,

I'm afraid that this is not supported by Windows Installer. A solution is to use a custom action which can remove files based on a custom filter.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Do not delete specific files in a folder

Ok will look at creating my own custom action. When do you think the custom action should be triggered/hooked?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Do not delete specific files in a folder

Hi,

When do you want to delete the files? Can you please give me more details?

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

Return to “Common Problems”