Can 'Add Folder' be used to create a folder in user's 'Documents' ...

Started by spick56, November 25, 2011, 09:22:51 PM

Previous topic - Next topic

spick56

Thanks a lot for the prompt response and explanation.
 
/Mike

Randem

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.

spick56

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