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!

Johnny
Posts: 2
Joined: Sat Feb 04, 2006 6:30 am

Install User Editable File & Stopping Self-Repair

How do I include a user editable file (user.abc) in my setup so that the user can modify/delete the installed file without the MSI self-repairing the file each time the app.exe is run the next time? The app.exe reads the user.abc file.

Currently, when the user changes/delete the user.abc file, the installer reinstalls the file the next time the app.exe is run.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi Johnny,

To prevent a modified file from being reverted by a repair you need to set it's component "Never Overwrite" attribute. This way, if the file exists it is never installed or reinstalled.

But I am afraid you cannot stop Windows Installer from restoring the file if it is missing.

As a general observation, it is not recommended to use the installed files to store user data. It is better to create new files, possibly using the installed ones as templates.

For more details please refer to the following topic:

http://www.advancedinstaller.com/forums ... .php?t=302

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Johnny
Posts: 2
Joined: Sat Feb 04, 2006 6:30 am

Thank you.

Return to “Common Problems”