1

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?

Nitin Varpe
  • 10,450
  • 6
  • 36
  • 60

1 Answers1

1

Look:

Community
  • 1
  • 1
Ilya Tereschuk
  • 1,204
  • 1
  • 9
  • 21