I am getting quite frustrated with InstallAware as it regards setting Permissions and Shares. That is, I have followed the instructions passed to me, and the results are the same. My install creates folders in the ProgramData hierarchy and then I want to have those folders available for EVERYONE. So here is the code I used as advised...
Code: Select all
if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
if Variable MAINTENANCE not Equals TRUE
Comment: *****************************************************************************************
Comment: Manage Rights - Permissions first, then Security
Comment: *****************************************************************************************
MessageBalloon: Product Activation, Managing Rights...
Comment: *****************************************************************************************
Comment: Update Access Rights for every Schema file
Comment: *****************************************************************************************
Grant Complete Access to File System Object "$CONFIGDIR$"
Grant Complete Access to File System Object "$EXPORTDIR$"
Grant Complete Access to File System Object "$LOGSDIR$"
Grant Complete Access to File System Object "$SCHEMADIR$"
Grant Complete Access to File System Object "$VIDEODIR$"
Comment: *****************************************************************************************
Comment: Update Access Rights (Only applies after APPLY INSTALL)
Comment: *****************************************************************************************
Grant Complete Access to Folder Share "$CONFIGDIR$"
Grant Complete Access to Folder Share "$EXPORTDIR$"
Grant Complete Access to Folder Share "$LOGSDIR$"
Grant Complete Access to Folder Share "$SCHEMADIR$"
Grant Complete Access to Folder Share "$VIDEODIR$"
Comment: *****************************************************************************************
Comment: Update Access Rights for these files
Comment: *****************************************************************************************
Grant Complete Access to File System Object "$CONFIGDIR$\ReportIT4.settings"
Grant Complete Access to File System Object "$LOGSDIR$\ReportIT_ErrorLog.txt"
Grant Complete Access to File System Object "$LOGSDIR$\ReportIT_RunLog.txt"
end
end
end
\ProgramData\CompanyName
\ProgramData\CompanyName\AppName
\ProgramData\CompanyName\AppName\Schemas
\ProgramData\CompanyName\AppName\Exports
\ProgramData\CompanyName\AppName\Logs
\ProgramData\CompanyName\AppName\Videos
After running the install, users cannot gain access to Schemas, Exports, Logs, or Videos. Its as though the InstallAware code simply does not work.
When I first implemented this code, it didnt work, and I was told to put the code AFTER the Apply Install command - you can see, I did that. Doesnt seem to make any difference.
Please, what is the trick here? What am I missing? Or is it that this simply cannot be done... (I find that hard to believe, but...)

