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.
- 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


Amit GuptaRank #190 · 12.8K reputationPosted Nov 18, 2016, 10:35 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Nov 18, 2016, 8:50 AM EST
app.manifest. Change therequestedExecutionLevelfromasInvokertorequireAdministratorAmit GuptaRank #190 · 12.8K reputationPosted Nov 18, 2016, 10:10 PM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Nov 18, 2016, 6:42 PM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Nov 18, 2016, 10:27 PM EST