user1013552
user1013552

Reputation: 313

Creating folders inside LocalLow through Installer

I am developing deployment project for Vista. In Vista inside AppData folder there are Local, LocalLow and Roaming folders. What I want from installer is to create folder 'Data' inside LocalLow folder and put there file data.xml (AppData\LocalLow\Data\data.xml). Installer should make this operation for all existing user accounts. How can I achieve this?

This is a screenshot of setup project('Data' folder configuration) which is not working: enter image description here

Attached example creates the following path: \AppData\Roaming\LocalLow\Data\data.xml

Upvotes: 1

Views: 681

Answers (1)

competent_tech
competent_tech

Reputation: 44971

I think a much better approach is to store the xml file in the application's install directory, then, when the application starts up, copy the file to the appropriate directory.

The primary issue is this: what if a user that wasn't on the machine when it was installed launches the application?

Since your installer didn't copy the file to their directory (because it didn't exist), your application would either have to do something or fail anyway.

Upvotes: 3

Related Questions