If we move the installed files the installer automatically repairs them. Is there a way to prevent this. After installation the files must not be repaired if it were moved. I have disabled the Advertise function from all the shortcuts and the features from the Organization tab.
I'm afraid I don't fully understand your scenario. Can you give us more details about your scenario (maybe exemplify)? Also, please keep in mind that in order to clearly report an issue you can take a look on our How to report a problem for a faster resolution article.
I assume, to reach your goal, it has nothing to do with the advertise option. (Advertise is something like "Select now, install when first used")
I you don't want several files to not "Auto Repair", you have to make sure, they are not key elements within a component.
For clarification: each component must have one key element (in AI displayed with the small key- Icon, which looks a bit like a diskette icon).
at minimum you have to define one key element, which always remains as auto repair.
BTW: auto repair ist a core (and good) behaviour in MSInstaller, which has to make sure, nobody can modify or corrupt a software installation by error.
Please keep in mind that when running installer in repair mode if a component key file is missing, then the related component will be reinstalled. Also, a feature will be reinstalled during repair only if at least one of its components will be reinstalled. So, on repair mode, if a component key file is missing then the entire feature containing the related component will be reinstalled.
FOLLOW US
Get the latest news in Application Packaging