Creating folder for Application Data and All Users
Posted: Tue Oct 16, 2007 4:20 pm
I though I found the solution to my problem in this topic, however, it doesn't seem to work for my script.
http://www.installaware.com/forum/viewtopic.php?t=2920
This is the code before files are installed to these folders. The files that are installed can be read, but not modified by even the Admin account that installed the app. What am I doing wrong?
Thanks for the help.
http://www.installaware.com/forum/viewtopic.php?t=2920
This is the code before files are installed to these folders. The files that are installed can be read, but not modified by even the Admin account that installed the app. What am I doing wrong?
Code: Select all
Create Folder $APPDATAALL$\\Railcar Tracking Co
Create Folder $APPDATAALL$\\Railcar Tracking Co\\RMS
Create Folder $APPDATAALL$\\Railcar Tracking Co\\RMS\\FlatFiles
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Grant Complete Access to File System Object "$APPDATAALL$\\Railcar Tracking Co\\RMS"
Grant Complete Access to File System Object "$APPDATAALL$\\Railcar Tracking Co\\RMS\\FlatFiles"
Grant Complete Access to Folder Share "$APPDATAALL$\\Railcar Tracking Co\\RMS"
Grant Complete Access to Folder Share "$APPDATAALL$\\Railcar Tracking Co\\RMS\\FlatFiles"
Apply Install (get result into variable SUCCESS)
end
end