ClickOnce Installation Question

agroom

Active member
Joined
Sep 14, 2006
Messages
39
Programming Experience
Beginner
I published an application with an SQL database on a computer at work. The user is changing workstations and I'd like to install it on the new PC but cannot find the database file to copy over. I've searched for all .mdf files and come up with nothing.

I did not do any modifications to the ClickOnce installer, just selected Publish and ran the installer on the PC. I can't even find the default directory or the origional .exe that runs the application. After the installer is run, it set's up the shortcuts in the start menu, but that shortcut points to a file other than a .exe.

Could any help me please? Basically I want to find the database file to transfer.
 
Is this something nobody really knows or is this just a really dumb question?

I've posted this question on about 6 forums and have gotten no responce.
 
Search on the target computer for the file location that ClickOnce installed. I cannot remember the path, but it's somewhere in their profile area (Documents and Settings) AppData (depending on their OS). If you search for your .EXE you'll then be able to find the install path and other related files.
 
Thanks, you know I searched for the .exe file several times with no success, then I wrote a test program that just displayed the application path and finally found it.

It was in the C:\Documents and Settings\user\Local Settings\Apps\2.0 folder.
 
This is helpful. I gave up on click once b/c of this feature. Maybe I am lost when it comes to configuring clickonce or whtatever but I wasn't able to build multi user applications or adminstrative applications with clickonce. But then again, i only userd it like twice and went back to the same ole Installer Class and prebuilt Installer Project.
 
Yeah, I was getting very frustrated with not being able to create a multi-user application. From now on I just do the "Build" and not "Publish".
 
Apparently there is a lot of possibilities and questions for the Installer Class and ClickOnce ect. If anyone reading this knows where to get a good book on these things specifically or a nice web tutorial then please let me know.
 
Back
Top