﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Is there a way to automatgically point the application to the correct database?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 18 Sep 2026 00:39:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Is there a way to automatgically point the application to the correct database?</title><link>http://forum.strataframe.net/FindPost30789.aspx</link><description>Hi all.&lt;br/&gt;&lt;br/&gt;I am getting ready to deploy a new winforms app to several dozen users. These users are not extremely computer literate. I am going to programmatically create a desktop shortcut for them and I do not want them to have to point the application to the correct database the first time that they run it. Is there something that I can do so that the app knows which database to connect to without user intervention the first time they run the app?&lt;br/&gt;&lt;br/&gt;TIA&lt;br/&gt;&lt;br/&gt;Marcia</description><pubDate>Mon, 09 Jan 2012 09:58:03 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Is there a way to automatgically point the application to the correct database?</title><link>http://forum.strataframe.net/FindPost30792.aspx</link><description>[quote][b]Marcia G Akins (1/9/2012)[/b][hr][quote][b]...The trick is also going to be creating the desktop shortcut from a web page. This app is replacing a web app that they are currently using, so when we go live, the powers that be want the current app to point to a page that will handle pointing them to the new app.[/quote]&lt;br/&gt;&lt;br/&gt;Hmmm, interesting, but just for clarification, your winform application will be replacing a web application, right?&amp;nbsp; If so, then, what I would do is create an installation setup with any tool (I use InstallAware), upload the setup to a web folder where they can just download it, run it and start using it.&amp;nbsp; I do that all the time with some of my applications which does not require the user to select anything.</description><pubDate>Mon, 09 Jan 2012 09:58:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Is there a way to automatgically point the application to the correct database?</title><link>http://forum.strataframe.net/FindPost30791.aspx</link><description>[quote][b]Edhy Rijo (1/9/2012)[/b][hr]Hi Marcia,&lt;ul&gt;&lt;li&gt;In your computer, make a backup copy of those files and delete the .dat files.&lt;/li&gt;&lt;li&gt;Open your application so the connection string will be created as expected on the end users computer.&lt;/li&gt;&lt;li&gt;Copy the new .dat files to another folder to be deploy with your application.&lt;/li&gt;&lt;li&gt;Restore your original .dat files so you can have all connections for all application you have been working on.&lt;/li&gt;&lt;/ul&gt;Now, the trick is to use your install program to find the All Users folder and create the MicroFour\ConnectionData folder and copy your .dat files there.&lt;br/&gt;&lt;br/&gt;Good luck![/quote]&lt;br/&gt;&lt;br/&gt;Hi Edhy.&lt;br/&gt;&lt;br/&gt;Thanks so much for the response. The trick is also going to be creating the desktop shortcut from a web page. This app is replacing a web app that they are currently using, so when we go live, the powers that be want the current app to point to a page that will handle pointing them to the new app.&lt;br/&gt;&lt;br/&gt;It's always an adventure. :)</description><pubDate>Mon, 09 Jan 2012 09:50:11 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Is there a way to automatgically point the application to the correct database?</title><link>http://forum.strataframe.net/FindPost30790.aspx</link><description>Hi Marcia,&lt;br/&gt;&lt;br/&gt;Sure you can.&amp;nbsp; The connection string is stored in the AppKeys.dat and Connections.dat files which will be created in the folder C:\Users\All Users\MicroFour\ConnectionData.&amp;nbsp; My suggestion would be to do the following:&lt;ul&gt;&lt;li&gt;In your computer, make a backup copy of those files and delete the .dat files.&lt;/li&gt;&lt;li&gt;Open your application so the connection string will be created as expected on the end users computer.&lt;/li&gt;&lt;li&gt;Copy the new .dat files to another folder to be deploy with your application.&lt;/li&gt;&lt;li&gt;Restore your original .dat files so you can have all connections for all application you have been working on.&lt;/li&gt;&lt;/ul&gt;Now, the trick is to use your install program to find the All Users folder and create the MicroFour\ConnectionData folder and copy your .dat files there.&lt;br/&gt;&lt;br/&gt;Good luck!</description><pubDate>Mon, 09 Jan 2012 09:30:53 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>