Hi and welcome to Advanced Installer forums.
Thank you for your interest in Advanced Installer.
Once my installer runs for the first time on an end users machine, how can I make sure a specific folder can never be uninstalled by running uninstall programs?
A simple way to achieve this is:
- go in the Organization page and create a new feature
- go in the Files and Folders page and from the context menu of the folder select the "Move to Feature" option to move the folder in the feature you created
- return to the Organization page, select every component from the feature that contains your folder and check the "Do not register this component with Windows Installer" option.
You can also hide this feature by selecting it and choose "Not Displayed" from the "Feature Tree" combo box.
Additionally, if the end user runs the installer again, how can I make sure this specific folder is never overwritten with new files by the installer?
In order to achieve this you can follow the steps below:
- go in the Files and Folders page, right-click on the folder and select "Properties"
- go in the "Operations" tab and select the "Do not overwrite existing files" option
Let us know if this helped.
Best regards,
Eusebiu