Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating application data during setup

Tags:

wix

What's the best way to create a folder for my application in application data (All Users/AppData or ProgramData depending on OS) during setup?

like image 213
Kristoffer Lindvall Avatar asked Apr 18 '11 16:04

Kristoffer Lindvall


People also ask

What is application data?

Application Data means a set of instructions which causes a computer system to perform a function when executed on the computer; Sample 1Sample 2Sample 3.

How do I create a Windows setup application?

Open Solution Explorer->Click on 'solution'test'('project)->Add New Project->Select other project types from left window->Select visual studio Installer->Select the setup Wizard-> write your setup name in below(mysetup)->click OK. One wizard will be opened->click 'Next' Button.

How to access Application data?

Search for "Run" in the windows search as shown below, or press the Windows + R button to open the Run App. In the run app text box, enter "%AppData%" and click OK. Windows will directly open up the Roaming folder which is inside the AppData folder.


1 Answers

<Directory Id="CommonAppDataFolder" Name="CommonAppData">
  <!-- your subdir structure here -->
</Directory>

Use the CommonAppDataFolder property get a reference to the currect directory ( OS specific ) and then nest Directory elements along with a Component element and CreateFolder element to get the directory built out.

Also be aware of the default folder permissions of this part of the filesystem and compare it against your expectations.

like image 110
Christopher Painter Avatar answered Oct 18 '22 04:10

Christopher Painter