Archive: ReplaceInFile - File Permissions after replace


ReplaceInFile - File Permissions after replace
I'm trying out the ReplaceInFile script from:
http://nsis.sourceforge.net/ReplaceInFile

And it nicely replaces strings in web.config and app.config files as I desire. However it's act of creating a new file means it does not have the same file permissions as the original. The original has inherit permissions set allowing user group access. The replaced file has only Administrator, System and the current user.

So after an admin has installed my apps user's are unable to access them and IIS can use the web.config files for any webservices.

Is there a simple way round this?

Thanks


I've used AccessControl to set inherit back on for now.