WebSetup and write permissions
-
It turns out that when you create a WebSetup project in Visual Studio and enable write permission for a directory in the TargetDir, these permissions are valid only for newly created files and directories. All the files already exising in that directory, cannot be modified by the web application you are attempting to install. Obviously there is no way to set the permissions on the files, but the directory and every subdirectory inside it are marked as writable. Still, the application cannot modify them. This just sucks. X|
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework
-
It turns out that when you create a WebSetup project in Visual Studio and enable write permission for a directory in the TargetDir, these permissions are valid only for newly created files and directories. All the files already exising in that directory, cannot be modified by the web application you are attempting to install. Obviously there is no way to set the permissions on the files, but the directory and every subdirectory inside it are marked as writable. Still, the application cannot modify them. This just sucks. X|
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework
Oh , My God?Are you sure?If it is true,I only say the Visual Studio is stupid!!
-
Oh , My God?Are you sure?If it is true,I only say the Visual Studio is stupid!!
WaitYY1980 wrote:
Are you sure?
Sure. I tried myself after a user complained that the application kept displaying file access errors. Some of the files are created at the first start of the app, and those can be modified. All the others (copied by the installer) cannot. If you deploy the application manually, or edit the permissions of the "data" directory after the setup, all works fine. This way the installer is useless, though, because it was supposed to simplify the deployment process. :~
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework
-
WaitYY1980 wrote:
Are you sure?
Sure. I tried myself after a user complained that the application kept displaying file access errors. Some of the files are created at the first start of the app, and those can be modified. All the others (copied by the installer) cannot. If you deploy the application manually, or edit the permissions of the "data" directory after the setup, all works fine. This way the installer is useless, though, because it was supposed to simplify the deployment process. :~
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework
:laugh::laugh:
-
It turns out that when you create a WebSetup project in Visual Studio and enable write permission for a directory in the TargetDir, these permissions are valid only for newly created files and directories. All the files already exising in that directory, cannot be modified by the web application you are attempting to install. Obviously there is no way to set the permissions on the files, but the directory and every subdirectory inside it are marked as writable. Still, the application cannot modify them. This just sucks. X|
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework
-
Thanks. It seems that I can only use the method you provided. CACLS requires user input to work (continue y/n), and this cannot be avoided with some "silent" switch. I'll try.
________________________________________________ Personal Blog [ITA] - Tech Blog [ENG] Developing ScrewTurn Wiki 1.1 and its Plugin Framework