Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: spick56 on November 25, 2011, 09:22:51 PM

Title: Can 'Add Folder' be used to create a folder in user's 'Documents' ...
Post by: spick56 on November 25, 2011, 09:22:51 PM
Hi,
I have a couple of questions:
a) Is it possible to use the IS Add Folder feature to add a folder to (for example) user's Documents folder, e.g. C:UserstomDocumentsInstalled folder
b) While experimenting with the Add Files feature I selected a ReadOnly file and got This file is set to ReadOnly. Try again with a different file name. error. Coincidentally I debugged the same error in my program today and found that I unintentionally had the dlgCommonDialog.cdlOFNNoReadOnlyReturn flag set when using dlgCommonDialog control so to add that file I first had to make it non-ReadOnly. Was that intended to work that way or was never picked up?
 
/Mike
Title: Can 'Add Folder' be used to create a folder in user's 'Documents' ...
Post by: Randem on November 25, 2011, 09:34:35 PM
Aloha,
 
a) The Add Folder feature was never intended to add to the users area unless it was already a default DestDir Constant in Inno Setup. It will only add to the pre-selected destinations in the drop-down box for the selection. The way to add the folder to the user's area would be to use the template to replace the line from the Add Folders section with the location you prefer.
 
b) No it was not intended to work that way. It was never tested with read-only files. We will make the change.
 
Thank you for reporting this issue.
Title: Can 'Add Folder' be used to create a folder in user's 'Documents' ...
Post by: spick56 on November 26, 2011, 03:07:21 AM
Thanks a lot for the prompt response and explanation.
 
/Mike