Solved

How To Install Sqlite database to a specific path in a Visual Studio Package ?

Posted on 2011-02-23
3
350 Views
Last Modified: 2013-11-26
Hi All,

I am developing a client -server application in Visual Studio 2005 C#.

I am using sqlite as my database.

When  I build one click installation and install it on another machine the sqlite database is install on following default path which is
C:\Documents and Settings\lt\Local Settings\Apps\2.0\XTRXPMR6.CE0\LJEH924J.7R4\asce...exe_27e7cc688ee11b76_0001.0000_none_1a9ebedbf08f462c\Data\

What I want to do is install the sqllite database to a folder on c drive i.e C:\sqlite\

How can I do this in my Visual Studio which on build becomes one click installation.

Thanks a lot for the help in advance.

Aash.
0
Comment
Question by:matrix_aash
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 35157744
You can't. One of the design goals of ClickOnce applications is that they require no administrative privileges, and the only places you can write with impunity on Vista and Windows Fabulous (7) are under the user's profile.

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/5c7d00c2-2473-4fd5-b815-30066383eb47
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 35157754
so simply put there's no way to change or override the installation location for ClickOnce applications.
0
 
LVL 8

Author Closing Comment

by:matrix_aash
ID: 35800519
Partially Helpfull
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now