Get Location Where Setup Is Installed?
Jul 28, 2009I 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 RepliesI 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 Replieswe 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 ?
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 Repliesi 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 RepliesAfter 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 RepliesI 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 RepliesI got a problem with my setup I had set the prerequiest download property to download from the same location. Now i am in a problem that my setup dose not check for the already installed prerequiest it starts the prerequiest installation no mater if they are installed or not. after the installation of these prerequiest it says to restart the computer and after restart it starts the prerequiest setup again.
View 5 RepliesI'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 RepliesI 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.
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 RepliesI need to create a setup project, the main project can't be installed without a program called infragistic.
How can I do ask for infragistic program before to install the main project? If infragistic is not installed, the setup project must install it, I mean execute the infragistic installer before the main installer.
I have a simple windows Service developed in VS.net 2008 and VB.net. When I install the service using Installutil.exe from the command prompt it is working like a charm.
When I try to add a setup project and set the output and build and install it though it says successfully installed, it is not showing up in the services.
The event log shows that it is successfully installed. I just did check the registry, it did place the assemblies in HKEY_CURRENT_USERSoftwareMicrosoftinstallerassemblies.
But I don't understand why it is not showing up in the services listing. I refreshed and restarted.
I want to create a setup which requires Microsoft SQL Server 2005 and .NET Framework 3.5. If this software isn't installed, the Setup should offer the user to install them now.
View 2 RepliesAfter 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 RepliesI am using a installer class as I need a custom action that will read in a xml config file.So when the user double clicks the setup, there will be a config.xml file in the same folder. I would like to read in this config.xml file on install event. The folder will contain setup.exe and config.xml.However, it can't find the config.xml file as it is looking for it under C:windowssystem32. I found this out by using application startup. path. However, the setup folder which contains the setup and config.xml is located on my desktop.I thought it will look for it in the current location. Which would be the setup folder. The difficulty is that my setup folder will be downloaded from the Internet and any user could download it and unzip it anywhere on their computer.[code]
View 8 RepliesI need to set a string stored in registry as the default location of a setup file how to do in vb.net (visual studio 2008)
View 1 RepliesI want to make it as an Installer.how can i make it a setup file so that user double click it and the software get installed silently? I used in my program ms-access 2007 database and some other sound files which i linked to my project and some vedio files.Suggest me how can i make all the files as in a single installer or setup.
View 20 Replies[ProgramFilesFolder][Manufacturer][ProductName][Version] is the Default. i Want to change the programfilesfolder to documents folder.
I already try this:
[DocumentsFolder][Manufacturer][ProductName] but it doesnt work. error in installing the product. ERRROR: "Could not access network location Polongo companyMC"
Iam changing the installation directory because when the application is installed in program files, my database can't add and edit record. having an error something like "operation must need an updateable query" because of that error i tried to install the appl in documents and there n error i'd encountered like when I install it to the program files folder.
I am trying add the prerequisites with my setup i have set the prerequisites download location to the same whwere my application is and now i am getting this type of several errors.
Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1dotNetFX20aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information. D:SETUP PACSSystemPACS 1.1.1PACS 1.1.1PACS 1.1.1.vdproj PACS 1.1.1
I had did some search on web but they all say to make change in Product.xml file but they did not say any thing about what to change. The prerequisites i am trying to add are.
windows installer 3.1
.net frame work 3.5
SQL server express
setup build fails every time when i try to do this.
I currently have my resources (images) in C:inetpubwwwrootimages I also have the images in the same location on my production server. How can I set it up so that I don't have to constantly sync up the folders? Seems like an easy thing but I'm not sure..
View 3 RepliesI have a toolstrip along the top of my program. There is a right aligned drop down button that displays a menu. I have a 2 monitor system, and for some reason, the menu wants to open up on the other screen - the screen the program isn't on. How can I keep this menu on the proper screen?
View 3 RepliesI 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 RepliesI want to create a real setup project for my application so when someone want to download it he can run only setup, not default setup that provide me VB . How can I do that?
View 4 Repliesadd serial number requirement to Setup & deployment > setup wizard for VB.net application
View 16 RepliesI am using VS 2008 VB and setup my application software in Win XP without any issue. But after installed in Win 7, it doesn't work well (it show one file not found, but I saw the file in the right folder). Could it be the incompatibility of VS 2008 and Win 7? If I upgrade to VS 2010, will the issue be fixed?
View 10 Repliesi am using an unbound datagridview so i can dynamiclly add rows. all that is working fine. but the grid is not is the location i have coded.. i am using the defualt form as a base then coding the unbound stuff in.. should i just create a blank class file and do everything? the only problem i am having is the grid must bees in the correct location according to the pixel point that i have given it. Right now it is placing the grid at point (0,0) no matter what point is entered on the line for location. so what am i missing??????
View 3 RepliesI got a error when I run this code:
Dim btch As String
Dim LeftPart As String
[CODE]...
It says index and location must refert to a location withing string
dim cn as oledbconnection
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:valid.mdb")
[code]......
I have 2 group box components and both are same size,font,location and visible is false. When i click button2, the groupbox1 won't appear(the group box2 is on bottom n group box1 is on top).
Example:
button1
groupbox1.visible=false
groupbox2.visible=true
button2
groupbox1.visible=true
groupbox2.visible=false
Because i want to show the different,so the location have a little different(actually both are same location). I think my code is no problem. The problem i guess is both component cannot locate at same location?
I was using this old method of creating a bunch of rectangles when I need to get the location of a certain point within a grid so I could draw images on the grid. The thing is, I don't want to use rectangles, I want to be able to just round the location as if I were using rectangles. I need it to be able to round the point (66,70) to (50,50) so if you can imagine a grid and the mouse position being within that square in the grid, I need to get the location of the upper left corner of that square.
View 5 Replies