Data File For Installed App Location

Jun 21, 2010

I am using VS2008 and for the project I am creating, I have a "settings" text file I am using to save user defined settings like color theme, homepage, etcetera. It works fine, however, I am unsure as to how to handle the eventual distributed apps' destination folder/file.

Creating a pre-determined folder/file is easy enough, but what I'd like to do is make it part of the installed folder files, which should be:

I tried creating the file if it wasn't found, however this did not happen (Though I specified the above formatted pathway) perhaps because I was in debug but it should have saved the text file, which it did not and wasn't found anywhere after saving/creating one.

I have the InnoSetup application (Looks great BTW) and see I can include a starting default text file AND make a specific directory for it, but I am unsure as of yet how Inno works exactly, but would prefer testing it through debug before an install anyway. Wish SHOULD be able to be done, am I right?

The odd thing is that although the file was NOT created as specified when creating one, it DID save a setting when I re-ran/debugged the app. (Rather odd, how is this happening I wonder?)

Here is how I am trying to resolve my problem...[code...]

So I am also wondering... if I use the InnoSetup to "set up" the directory and file, and it is according to user-defined destination, how do I reflect that decision in my coding for reading and writting the file?

I could simply use a basic path like C:DATAFILES but this wouldn't be very professional, though fine for development purposes.

View 2 Replies


ADVERTISEMENT

Make Sure Data Source File Will Be Installed At Pre-defined Location?

Dec 8, 2011

After I published my application and then installed it to the same computer i used to develop the application, there was an error during the installation, the data source file was not found in the new location set by VBE 2010. How to make sure data source file will be installed at the pre-defined location? so that there will be no installation error.

View 9 Replies

Error - You Cannot Start Application <App_Name> From This Location Because It Is Already Installed From A Different Location

Dec 10, 2009

we have a user that my program works fine for.. and another that it just crashes for.. they get this error

"You cannot start application <App_Name> from this location because it is already installed from a different location."

then they run it up again and it comes up.. and then just closes..in reading some stuff online it says its a framework 2.0 sp 1 issue ?these pc's have 3.5, but my program uses all 2.0 stuff..so is this a 2.0 sp level issue ? or should I make my programs start to use framework 3.0 instead ?

View 6 Replies

Cannot Start Application Shell From Location Because It Is Already Installed From Different Location

Jul 21, 2009

I have encounterd a problem when trying to re-enstall a program i have writen in vb 2008.I get the following message:"You cannot start application Shell from this location because it is already installed from a different location."This program is to be used on many workstation computers and i need to be able to update any changes by just reinstalling the program, no uninstalling needed first. If the program was installed from a cd first and needs to be updated from a flash disk this error will be a problem, if the update is from a cd as well then there is no problem.Is there a way to change the installation package to ignore where the program installs from and just update itself?

View 2 Replies

VS 2008 - Choose Data Source - User To Easily Create A Connection To Any Installed Data Types They Have Installed

Jun 1, 2011

I have been trying for days now how to create a process to the user to easily create a connection to any installed data types they have installed. I have found an example right inside vb2008. I never use this because I code my own connections, but this would be real nice if I could include it or duplicate it.

View 1 Replies

Get Location Where Setup Is Installed?

Jul 28, 2009

I m doing a vb.net project merely completed. now while the setup is being installed i need to get the location where the user selected as the target location.

View 1 Replies

Getting Location Of Installed Application .net?

Apr 9, 2010

i published an application in vb.net. the user will be able to install the application anywhere they choose on the computer (or perhaps not anywhere they choose but where ever the default location is). how can i programmatically get the location where the user installed the application? another words i need the application to know where it is running from. how do i detect that?

View 6 Replies

IDE :: Deployment - Is Already Installed From A Different Location?

Apr 19, 2010

After deployment and clicking 'setup.exe' the error message: 'Cannot Start Application - You cannot start application ... from this location because it is already installed from a different location.'details: cannot start it from d:/... (local path) because it is already installed from ... shared directory on different pc.on the shared dir: I tried to install it there some days ago, but cancelled the installation process, because the .net framework wasn't there. So I do not have a clean application that i can uninstall. The shared folder is now deleted, but if I try to deploy locally, the error is thereI installed the app on a third PC in a shared folder and uninstalled it afterwards. I can deploy and start the app on this third PC (but at the moment it is uninstalled there) .What file / entry in a file can I delete that I can install my application locally again (it runs in the debugger of the IDE)?

View 2 Replies

Get The Message Application Already Installed At Other Location?

Jun 15, 2009

I am trying to install a program but I get the message Application already installed at other location The application does not appear in the program manager to be uninstalled. I have tried publishing a later version but when I try to install it I get the same message. The click-once publisher generally includes an uninstall program with the applications. when Ive had this problem before it was fixed by republishing as a newer version.

View 1 Replies

IDE :: Specify Location Where Data File Will Be Placed?

Aug 11, 2011

I am currently developing a Windows Service in VB 2010. The service depends on two binary files and one text data file that contain connection information for the app. At this time I have an installer setup with the service so that when I build the service and then the installer I get a setup.exe and MSI file.

I added the three additional files to the installer project and notice that they get placed in the application folder, that is, in the same folder as the application, when the setup app is run. For the two binary file this is ok and actually required, but
I would like the data file to go into the docs and settings, <user name>, Applications Data, <AppName> folder, NOT the Application folder as it defaults to. The Folder property in the properties dialog box for the data file allows me to select Application Folder, User Desktop or User Program Menu as the location of the file on the target machine, but none that will let me select where I want the file to go.

Is there any way to tell the installer where I want the data file to go? Since the installer itself is a project with code, perhaps I can add code to manually create the data folder for the application and then copy the data file from the application folder
to the data folder, but I am not sure of this.

View 7 Replies

Create Exce File Whe Installed Or Txt File If Not?

Mar 11, 2012

I have a Datatable, and I want to export it to file, and attach to e-mail message.[code]...

View 1 Replies

Write Data To Excel Format Without Having Microsoft Office Installed??

Oct 1, 2010

I have a software that writes data to Excel sheet. I'm using Microsoft Excel 11.0 Object Library for this. Everything is working fine so far, but apparently the drivers require Microsoft Office installed onto the computer.

Is there a way to write data to Excel format without having Microsoft Office installed?

View 3 Replies

Can The .exe File In The Bin/debug Folder Be Used On A Computer Without .net Installed On It?

Dec 6, 2010

I'm using vb10 express.When I give copies of my exe file to friends to test will they have to install anything on there computers to get it to work? Do I need to include other files with the exe?

View 3 Replies

Created Setup File And Installed Successfully

Nov 11, 2011

I have created setup file and installed successfully. while removing the Application from my system by using Add/Remove programs I got the Error as below,"Error 1001. Exception occured while the installation.System.Io.filenotFoundException.could not load the file of assembly file or one of its dependencies. the system cannot find the file specified."..After that i got one more Error box that says "fatal Error during installation"..By the above errors i could not uninstall the Application from my system.How can i solve this error? and is there any other way to uninstall the application from my Machine?

View 3 Replies

IDE :: Make Sure The Application For The File Type (.vb) Is Installed?

Nov 14, 2005

I installed VS 2005 Beta 2 on a WinXP pro system (numerous times). It finally installed without erreors. It looks like it is basically working - I can create a new windows project and add items from the toolbox, edit the code etc. If I open an existing project (created on another box) things load properly but I cannot open any forms in designer view (I can open them in code view). When I attempt to open a form in design view I get the following error popup:=====================There is no editor available for 'c:....myForm.vb'.Make sure the application for the file type (.vb) is installed.

View 12 Replies

VS 2008 Get Installed Applications With File Path?

Mar 6, 2010

I Used this code for the getting installed applications

Sub ListPrograms()
Try
Dim rk As RegistryKey =

[Code]....

But, this code not returns the application filename, only return Application Name

How to get filename? e.g ("C:Program FilesMozilla Firefoxfirefox.exe")

View 1 Replies

VS 2008 When Create Setup File To Allow It Be Installed Over Itself?

Jul 15, 2009

I'm using the setup method to deploy an app I wrote. The program installs fine, but If I want to reinstall it I get an error message saying the program is already installed and I have to uninstall it first. Is there a flag somewhere when I create the setup file to allow it be installed over itself?

View 3 Replies

X86 App On Machine With Office X64 Installed Read Xls, Xlsx, Mdb And Accdb Files Using System.Data.OleDb?

Apr 19, 2012

Question: How do I programmatically determine which provider to use (Microsoft.Jet.OLEDB.4.0 vs Microsoft.ACE.OLEDB.12.0) when my app runs as a 32-bit process on a machine with Office x64 installed?

I'm developing a VB.net WinForms app in VS 2010 and targeting both x86 and x64.The app processes data from xls, xlsx, mdb and accdb files using System.Data.OleDb:Dim oConn As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=...")

The x64 version of the program works as expected. The x86 version works as expected on a system with Office x86.When I run the x86 version on a machine with Office 2010 x64, I get the following exception when trying to open a connection:

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.I believe this is because I'm running Office 2010 x64 so the x86 data access components are not installed.I can get it to work for Office 2003 files (*.mdb and *.xls) by changing the provider to Microsoft.Jet.OLEDB.4.0.

How do I figure out which provider to use when running as a 32-bit process on a machine with Office x64 installed?Ideally, I'd like a function:If ProviderIsAvailableFor("Microsoft.ACE.OLEDB.12.0") Then

Else If ProviderIsAvailableFor("Microsoft.JET.OLEDB.4.0") Then

View 8 Replies

IDE :: Make Sure Application For File Type (.vb) Is Installed Message

Jan 6, 2011

I am running VS 2010 Professional and have a solution with 3 VB projects in it. I can open the forms in 2 of the projects just fine but if I try to open any of the forms in the 3rd project I get a message saying "There is no editor available for .....Form1.vb. Make sure the application for file type (.vb) is installed". Everything was working fine last month and I could open any of the forms.

Again the problem is limited to just the 1 project in the solution.

View 3 Replies

IDE :: Vs 2008 - Make Sure The Application For The File Type (.vb) Is Installed

Aug 7, 2009

My Visual Studio 2008 seems to be corrupted. I can not use the Windows Forms designer. I get an error about: "Make sure the application for the file type (.vb) is installed." Also, under menu item Tools>Options, it says "an error occurred loading this property page" when I try to look at the options for 'Data UI Customization' under 'Windows Forms Designer'

[Code]....

View 2 Replies

Installed VB Express 2008 On Machine And It Went Without A Redistributable File

Jul 19, 2010

I installed VB Express 2008 on my machine and it went without a redistributable file. It got download during the install. Anyone knows where I can download the redsitributable file from, so I can give it to my students?

View 2 Replies

Making A File That The User Doesn't Have Access To And Changing The Location Of The Configuration File?

Jun 25, 2011

on my program i have an activation in it and in order to activate the program you need to enter a code that is stored in the settings. so i was looking through my computer and i found the programs config file. and so I opened it and i found all of the codes for the activation. I need to find out how to make the file so the user doesn't have access to it and then how to move it to a more hidden place in the C: drive.

View 3 Replies

Save The File Location Or Directory Of A File In Mysql Without Deleting Its Slashes?

Mar 16, 2009

i just want to ask how can i save the file location or directory of a file in mysql without deleting its slashes...i tried to save it directly.. for example: the original directory is c:folderimg.jpg and when i checked it on mysql it is save as c:folderimg.jpg

View 5 Replies

File Associations - Default Mail Client Not Properly Installed

Jul 25, 2009

I have my setup and deployment project is set to make the mailto: links refer to my program. It works with Firefox no problem. Internet Explorer complains that "Could not perform this operation because the default mail client is not properly installed." The mailto link shows as being associated to my program in the windows default programs thing.

My.Computer.Registry.ClassesRoot.CreateSubKey(".mailto").SetValue("", "SGA", Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.ClassesRoot.CreateSubKey("SGA\shell\open\command").SetValue("", Application.ExecutablePath & " ""%l"" ", Microsoft.Win32.RegistryValueKind.String)

View 6 Replies

VS 2008 - My.Settings File - Specify The Location For User.config File

Jan 3, 2010

I'm looking for a way to specify the location for the User.config file that is used for storing the My.Settings object. It appears that this is not possible. The problem for me is, I don't want to be responsible for creating several different files on the users computer that really have no use and are difficult to find and clean once an update is released. For most users, this is not a serious problem, as many will probably never update the software, and most will probably only go through a couple of updates. On my system, there are config files for every build of the application, and the same to a lesser extent will be true for my beta testers.

I can understand that MS wants to make sure that no two applications will use the same location for storing application data, but a simple [UserData] [CompanyName][ApplicationName] for storing application data will probably suffice for 99.9999 percent of the legitimate applications in the world. Bogging a user's system down with erroneous files, no matter how small, is an unnecessary drain on system resources and a potential source of problems for the user. It's bad enough that most programs leave bits and pieces of themselves all over a user's system after De-installation - this to me seems only to exaggerate this problem.

Is the only way to get around this problem to write a whole new Settings Class? Is there a way to change the location of the UserConfig file to a more friendly (and more predictable) location that I am not finding for myself? It would seem that having at least the OPTION to specify a location for the User.Config file would be OBVIOUS and easy to implement, so why did they leave this out?

View 5 Replies

PDF File Generated Through Crystal Report Anything To Do With Adobe Installed In The Local Machine?

Jun 30, 2011

I am generating PDF file using Crystal report ExportToDisk method in VB.NET 3.5.
Locally and on integration environment generated PDF file is much readable i.e.font size is good. But the PDF file generated on production environment is different in formatting.The lines are wrapping and font size is also little small. There is not Adobe installed on integration.

View 1 Replies

Read CSV File Into Dataset/datatable Without Having Microsoft Excel Installed On That Machine?

Dec 16, 2010

I'm facing a problem reading .csv file into datatable. The machine on which i install my window service ( which reads the csv ) is Windows Server 2008 R2.The error i get is : The 'Microsoft.Jet.Oledb.4.0' provider is not registered on the local machine

Below is the code i use to fill the dataset from .csv file :

string connstr = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" + System.IO.Path.GetDirectoryName(arrFilesName[iCount].ToString()) + ";Extended Properties = 'text;HDR=YES;FMT=Delimited'";
OleDbConnection conn = new OleDbConnection(connstr);

[code]....

I also looked at the other option i.e. Micorosft.Office.Interop.Excel but that also needs Excel installed.So, I would like to know that, is there a way to read a .csv file without having Microsoft Excel install on the machine.

View 6 Replies

VS 2008 Create Excel 2003 Thru 2007 File Without MSOffice Installed?

Mar 14, 2010

I have a windows form and I am attempting to create an excel file from a datatable that has already been created and i'm hitting a snag - the error is: The ':' character, hexadecimal value 0x3A, cannot be included in a name."I have a button to start the Export process, here's the

'here's all my imports for the form
Imports DocumentFormat.OpenXml.Packaging
Imports System.Text

[code]....

View 2 Replies

VS 2008 : Get The File Extension From File Location String?

Dec 16, 2009

I need to get the extension part of a file path for example,

c:me.jpg

i need to return the ".jpg" to a string. Im sure this is easy enough, im guessing i need to get all the text after the last .

View 2 Replies

Program Data Storage Location?

Dec 2, 2011

Where should I store my programs user data so no one will have trouble accessing it?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved