Folder access
Posted: Wed Nov 21, 2007 8:14 am
Hi,
I have a problem that I can't seem to get around. I want 2 folders to be created by the installer, "$TARGETDIR$\\Cache" and "$TARGETDIR$\\Cache\\Rapport" and I want all users to be able to write and modify files in these folders. I have added the sub-folders via the Files page and it works just fine. Then I tried to give access to the folders via the Access Control page and that does not work. Write access is not granted to everyone. My MSI code look like this:
Create Folder $TARGETDIR$\\Cache
Create Folder $TARGETDIR$\\Cache
\\Rapport
Apply Install (get success into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
set Read Write Permissions on Folder Share $TARGETDIR$\\Cache" for Everyone
set Read Write Permissions on Folder Share $TARGETDIR$\\Cache\\Rapport" for Everyone
set Read Write Permissions on File System Object $TARGETDIR$\\Cache" for Everyone
set Read Write Permissions on File System Object $TARGETDIR$\\Cache\\Rapport" for Everyone
end
end
This is all generated by the GUI. It looks fine to me but as I wrote, the users do not get write or modify rights. What am I doing wrong?
Regards,
Martin
I have a problem that I can't seem to get around. I want 2 folders to be created by the installer, "$TARGETDIR$\\Cache" and "$TARGETDIR$\\Cache\\Rapport" and I want all users to be able to write and modify files in these folders. I have added the sub-folders via the Files page and it works just fine. Then I tried to give access to the folders via the Access Control page and that does not work. Write access is not granted to everyone. My MSI code look like this:
Create Folder $TARGETDIR$\\Cache
Create Folder $TARGETDIR$\\Cache
\\Rapport
Apply Install (get success into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
set Read Write Permissions on Folder Share $TARGETDIR$\\Cache" for Everyone
set Read Write Permissions on Folder Share $TARGETDIR$\\Cache\\Rapport" for Everyone
set Read Write Permissions on File System Object $TARGETDIR$\\Cache" for Everyone
set Read Write Permissions on File System Object $TARGETDIR$\\Cache\\Rapport" for Everyone
end
end
This is all generated by the GUI. It looks fine to me but as I wrote, the users do not get write or modify rights. What am I doing wrong?
Regards,
Martin