Nitin Varpe
Nitin Varpe

Reputation: 10704

Folder created by application stored in virtual store winForm

I have created setup for my windows form application . My OS is Windows7

On load of first form I have created folder with below code

 bool IsExists = System.IO.Directory.Exists("Orders");
                if (!IsExists)
                System.IO.Directory.CreateDirectory("Orders");

But when i install setup project on machine this folder is created at following path.

  C:\Users\ADMIN\AppData\Local\VirtualStore\Program Files\MySetup

Is there any workaround so that folders i create is stored on

 C:\Program Files\MySetup

Anything related to permission or rights to user?

Any Solutions?

Upvotes: 1

Views: 924

Answers (1)

nasytnyk
nasytnyk

Reputation: 1202

Look:

Upvotes: 1

Related Questions