VS 2008 Finding The Directory Of Installation
Jul 8, 2009
Alright, my program requires a folder to put the save files in, and it works fine to create it when I know where the program was installed to. I want to assume that everyone will install to C:/Program Files... however, one cannot assume. Is there a way for me to find out where the program was installed to ie. D:/WorkPrograms/ProgramHere, instead of the Program files? Specifically, is there some sort of code that I can run at startup to find where the program file is, so I can keep all the save files in there?
View 3 Replies
ADVERTISEMENT
Apr 27, 2009
I am using VB 2008 express. I created a setup file for installation using the publish command. When I install on another computer, it installs under the documents and settings directory. I want it to install under program files like most other programs.
I've search everywhere on the web for this. The closest thing i could find was talking about the DefaultFolder under the projects applications folder. I don't see that option. I can specify all the publication directories - but these are strictly for where VB creates the setup file at - not where the setup file installs it. Frankly it would be really nice to be able to allow the user to specify the directory as an option, with program files as the default. But for now I'd be happy to just be able to change the default install directory for my app.
View 5 Replies
Aug 9, 2009
Where in Visual Basic 2008 Express Edition Software program do you specify a specific installation directory for a program?
c:Program Filesfinished program
I want to publish my program to try it out on another system and I want to ensure its installed in the directory structure I want.
View 3 Replies
Mar 21, 2012
I've written an application [Visual Studio 2005 / VB) that works fine when I build it on my Win 7 PC.But when I try to install it XP as a test it falls over imediately on a 'file.exists' call made to establish if the data file exists or not (and if not then create it).
But it raises an exception because it can't find the directory that the file is supposed to be in. For the files location I was using Application.ExecutablePath but on the XP machine it is some weird directory like
Code:
[Code]...
View 6 Replies
Jun 8, 2010
I am finishing a project for a client , however I am having an issue with the registry. How do I get installation directory path from the .net registry?
View 10 Replies
Dec 9, 2010
I am using Visual Studio 2005. I have just figured out how to create a Custom Action during installation, but I can not figure out how to get data from the installer. Following is the simple test code that I am trying to use to call the directory that the user defines during installation, but the Path string is not returning anything.
Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
MyBase.Install(stateSaver)
Dim Path As String = MyBase.Context.Parameters("targetdir")
Dim AppConfigFile As String = Path & "FilesAppConfig.txt"
MsgBox("The target filepath is: " & AppConfigFile)
End Sub
I have tried many other things, such as...
Me.Context.parameters("targetdir")
stateSaver.item("targetdir")
And I entered /INSTALLDIR="[TARGETDIR]" in the custom action data property.
View 1 Replies
Mar 16, 2011
I have started working on the module based application (plugin based architecture) and client want setup of module that can be run later and added automatically in main application. So, what I am thinking to apply in module setup project is to find the installation directory of main application and then paste dll of module in specific sub-directory.
Is it possible? Is there any other way to add feature in main application later using setup?
View 10 Replies
Mar 18, 2009
I am trying to publish a project. Via the publish wizard I have published the project. So I have:Project.applicationSetup.exeand a directory application files in which:Project.applicationProject.exe.deployProject.exe.manifest. When I start the setup it does it's thing (only one question: do you want to install ...etc) and 2 seconds later its done.
Problem:
1. I can't find the installation directory... (I can find the app in the 'add/remove programs' but not anywhere in program files or ..)
2. there are a few xml and mdb files I want to include in de project (or else the project does not work).
But because of (1) I don't know where to do so. Or beter yet, I would like to include these files in the installer.3. Why doesn't the installer ask me where I want to install?
View 5 Replies
Jul 20, 2009
I have developed a WinForm app using vb.net. The app needs to send an email notification to users containg the id of an item that needs thier attention. The email needs to contain the link and commandline parameters so that the user can clik on the link and the app will open the correct form, with the item to be updated, already loaded. Click Once installs the app under the users directory ("Documents nd setting\%USERNAME%Start MenuPrograms\%AppName%..."), so, the email has to contain the user name as part of the path.
- How can click once be configured so that the instalation is in the program files directory to avoid having to add the username as path of the path?
- how do send a link which contains a parameter that directs the app to load a speciified form (not the startup form)?
View 4 Replies
Mar 1, 2010
I've developed a VB.NET console application and tried to use the Build | Publish menu option in Visual Studio 2008 to create a Setup. It works fine except two things:
- when I run the Setup on a Windows 2003 Server, it installs the application in the C:Winntprofiles\Local SettingsApps2.0 directory. How can I configure the setup so that it would prompt for a target directory for the application?
- After the Setup is complete, it starts the application automatically. How can I suppress the auto-start?
View 1 Replies
Jan 20, 2011
My app has a folder that has some xml documents which is or should be created within the installation Directory. What is the best / most problem free method to access the installation directory: [code]
View 6 Replies
Jun 19, 2010
how do i get the directory of which my program is running as string? like "C:whatever"
View 1 Replies
Apr 19, 2009
Ok, I have a code to get all subdirectories in a file. Here it is:
Try
Dim di As New DirectoryInfo("C:\Library\AvailableBooks")
For Each subdi As DirectoryInfo In di.GetDirectories
[code]....
View 1 Replies
Mar 11, 2010
All I am doing is reading each txt file I find in a directory and finding certain strings in the text then counting how many I find in each file and then once each file has its separate counts it send it to a sql database. I have most of it done, but I cant seem to get the count to separate each file so my problem now is that it counts the first file but when it counts the next file it adds to the first file and so on through all the files
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
[Code] .....
View 1 Replies
May 24, 2009
I just made an application using MySQL for the database. I use WAMP.Can I combine WAMP and my application installation into one packet installation ?
View 2 Replies
Dec 25, 2009
I'm using a dialog box to select multiple files and move them to the directory "C:/Playlist". I guess you can say I'm having trouble with 2 things.
1. The Loop
2. Use of the dialogs FileNames function
[Code]...
View 1 Replies
Nov 18, 2008
I have VB6 and i want to install VB.NET 2008 without uninstall VB6. Is possilbe? Can i works correctly both?
View 1 Replies
Dec 16, 2010
I have created a setup project that after the installation, starts the app that is being installed. To do that I have added an Installer class to the app I want to get started and I am using it's commited event to start the app (Process.Start("...myapp.exe").
While this works fine on XP, on Windows Vista the application gets started as a "System" user which makes some parts of the app missbehave i.e. retreiving special folders of the user etc...
This is the question: way to start myapp as the logged in user? Mind you I will not have the credentials of the users.
View 2 Replies
Aug 30, 2010
How to use this code on security installation?
Public Function GetHDSerial() As String
Dim disk As New ManagementObject(_
"Win32_LogicalDisk.DeviceID=""C:""")
[CODE]...
View 4 Replies
Sep 12, 2010
I have developed a windows application in VB 2008. Now I want to make an Installation Package (setup) of my Project. But I don't want to create only the Setup. I want to include the .Net Framework 3.5 and Crystal Reports and all the files that are necessary to run my Application. so that when I run that setup (installation package of my application) all the necessary files installed automatically.
View 1 Replies
Jul 15, 2011
Why am I getting a request to configure DAO when I start a program I am developing in VS 2008? After I execute several cancels, the program runs fine.
View 1 Replies
Jun 22, 2009
1. Is there a way to use a smaller Active X SDK installation rather than the full (~450 MB) one to play MP3 in VB 2008?2. Is there a loop command (as with a wave file) in case using Media Player to play MP3 in VB 2008?
View 1 Replies
Aug 22, 2009
I seem to be having an issue with Building my application. THe programs builds just fine,but when you install the program and then run the program it wants to act like its configuring the program, prior to running the actual program.I get a windows box that pops up stating its configuring the program and then it runs.But it only happens when I access the program through the shortcuts that I have the program create when it installs. If I go directly to the program directory and click on the program there, it starts just fine.
View 4 Replies
Jan 8, 2011
I have recently installed SQL SERVER 2008 Express edition for learning purpose. but I am unable to find SQL Enterprise Manager in the START Menu. It wont come with Express Edition?then, how can i create/manage databases. I am a starter in .Net. Anybody please help me.for your info, i have installed SQLEXPRADV_x86_ENU.exe - sql express with advanced services?
View 2 Replies
Nov 11, 2010
The setup is running in 32 bit mode and the installer class is made with Visual Basic installer class.
Now the problem is, how to read SQL Server 2008 64 bit registry settings in Windows Server 2008 R2 64bit machine.
E.g. installed instances and the data paths for every instances.
I need to check the SQL Server instance name and read from registry the database location path for that instance.
By default it reads the 32 bit registry so it does not found the settings at all.
Example code that can be set in visual basic installer class would we nice.
View 6 Replies
Jan 29, 2010
when i try to install VS2008 sp1 which is downloaded from microft.com , i got error "The application or DLL E:vs90sp1sqmapi.dll is not a valid Windows image. Please check this against your installation diskette."
[Code]...
View 1 Replies
Sep 24, 2011
I've just created a setup file for my application . Instead of using the click once process , I used the Create Install Free 4.14.5 program , in order to be able to specify some parameters that under click once I couldn't (like specifying installation folder etc) . The problem , however , is that now when I installed the application , an error message appears saying that the computer is missing the Visual Basic Power Packs 9.0 (which I indeed used in my application) . So , is there any way I can add it to my setup file ? That is in order to avoid making people manually downloading and installing it .
View 4 Replies
Jan 11, 2011
I have published a vb.net application and installed it on my PC. When I try to locate the installed application, I dont find the location where its been installed.
How to install a publish application on a specified location in C:Program FilesProject?
View 8 Replies
Feb 17, 2009
Can I have Two basic Questions about Setup Project deploying -
1, After I put company's logo at startup installation, there was still text shown up "Welcome xxxx setup.." together with the logo, how to remove it and display company's logo only? Also, if using text display and the text is too long, how to return to next line?
2, If I setup more than once, I was told to remove the first one using Add/Remove program in Control Panel before setting up new program. How can I use a dialog like "Overwrite the existing program"?
View 3 Replies
Apr 12, 2010
I've been creating a small application and now I'm going to make a setup file for it. And I started doing this using Installshield. Here's a prtscreen of where I'm stuck: Since I've developed my Application in .Net, I don't know whether it can be installed on earlier versions of Windows such as Windows 98. Should I uncheck some options?
View 6 Replies