Abhilash J A

Abhilash J A

  • 524
  • 2.4k
  • 600.9k

Problem administrator password in windows application.

Nov 18 2016 12:52 PM
How do I force my .NET application to run as administrator also access Sqlite?
 
I have create Set up file for WPF application and the database is SQLite DB. After the installation the SQLite DB is located this path in C folder, and the application is running properly on any computer that without an administrator Password PC.
 
C:\Program Files (x86)\myCompany\myScanApp.
 
  1. public SQLiteConnection dbConnection = new SQLiteConnection(@"Data Source=C:\Program Files (x86)\myCompany\myScanApp\test.s3db;");  

The problem is, it is failing to login after running this application if any other administrator password set PC. How can I solve this problem?

How can I access Sqlite DB from C drive after installation WPF application if pc have administrator password ? Please advise me for a right solutions


Answers (5)