Could we have a feature that allows the adding of empty folders. The current 'add folders' appears to add only folders that must contain files. It would be useful to add blank folders by getting innoscript to add the [DIR] directive to inno setup.
Hope this makes sense.
Regards
Paul
Aloha Paul,
InnoScript does allow you to use the Add Folders selection to add an Empty folder, although I have never tested it to deploy that empty folder. Does this give an error message or something that causes the folder not to deploy?
If you want to add an empty folder you can do that via using templates. You include the section and the line that you want to add to your script and when you re-create the script the line will automatically be added to your script. Of course you have to add the template created to the templates tab.
Hi
Inno setup throws an error when you compile, if the folder you are creating is empty, because it does a copy folder*.* to create the folder. Does this make sense?
Now, I have tried using a template. I added the following to a blank text file and saved it as a .tpl, then added it inside the template tab.
[Dirs]
Name: {commonappdata}folder 1Shopexportfiles
It put the line in when the script was generated but it was at the end and in red. How do I get it added at the correct place i.e. before [UninstallDelete] section and after [icons] and why is it in red? I'm obviously missing something.
Regards
paul
You cannot control where the section ends up when you add it, it does not matter where it is in the script anyway. There is NO correct place... IE. Sequence in the script.
The color you see is not red, Check your color chart from the Color menu in InnoScript, you can change the color if you like. The color is for lines added to the script.
Ok, thanks again
The next version will include a function that will detect empty folders entered into the Add Folders Tab then create a [Dir] section for the empty folders