can you help me any one for create the folder,how to create the folder in program files folder ?
thanking you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dharmraj ThakurPosted May 2, 2017, 5:14 AM
Waruna ManjulaPosted May 2, 2017, 2:57 AM
You'll want to modify the manifest that gets embedded in the program. This works on Visual Studio 2008 and higher: Project + Add New Item, select "Application Manifest File". Change the
element to:The user gets the UAC prompt when they start the program. Use wisely; their patience can wear out quickly.
Rathrola Prem KumarPosted May 2, 2017, 2:38 AM
The
C:\program filesfolder is protected (by design) in Vista and Windows 7 (and Windows Server 2008 / 2008 R2) - normal user accounts do not have any permission to create directories in there - it's a system folder.Either you need to run as admin - then you have permission to create directories even in protected system folders - or you create the directories elsewhere and not inside a protected system folder. The second option would be the recommended and preferred option.
Rafnas T PPosted May 2, 2017, 2:18 AM
Karthi KeyanPosted May 2, 2017, 2:10 AM
Waruna ManjulaPosted May 2, 2017, 12:28 AM
using System.Security.Principal;
Vithal WadjePosted Dec 3, 2012, 5:34 AM
guru suryaPosted Dec 3, 2012, 2:35 AM
thanking you, i have write my code below
Posted Dec 3, 2012, 2:09 AM
Are you trying to deploy something, then try the Setup project.