Creating application data during installation

What is the best way to create a folder for my application in the application data (all users / AppData or ProgramData depending on the OS) during installation?

+7
source share
1 answer
<Directory Id="CommonAppDataFolder" Name="CommonAppData"> <!-- your subdir structure here --> </Directory> 

Use the CommonAppDataFolder property to get a link to the currect directory (OS specific), and then insert the Directory elements along with the Component and CreateFolder elements to create the directory.

Also remember the default folder permissions for this part of the file system and compare it with your expectations.

+10
source

All Articles