How to remove the readonly attribute when creating a customization
My Windows Mobile app setup is built using VS2008. It contains a couple of data files to copy to the target device.
These files are only found on the dev machine (because they are under source control). The setting retains the readonly attribute, which is a problem in this case.
How can I tell the setup project to drop the readonly attribute of these files on the target machine?
TIA,
source to share
You must remove it before packing. CABWIZ just puts the file as it is (attributes and everything) in the CAB. The INF format does not contain any conditions for a read-only attribute (or any attribute), only behavior for a copy (overwrite, write if it does not exist, etc.).
You can add a pre-build step and use it to run your custom application (or batch file) to change the attribute before packaging (and post-build to restore it if needed).
source to share