Get Installation Directory Path From The .net Registry?
Jun 8, 2010I 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 RepliesI 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 RepliesI am trying to change the path of Service ImagePath value in registry just after installation. Unfortunately my change path becomes only single letter in registry.[code]Source code for changing the ServiceConfig taken from codeproject.
View 4 RepliesI'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]...
I have a application that I deployed to web server. Users go to "publish.htm" deployment web page to install my vb.net application. Where is the application installed? I don't think it is installed under "Program Files" like others.
View 2 RepliesI would like to ask about publish project in Vb.I am using OneTouch in Vb After I have publish the project, all information (database, images, other files ) will be put in this C:Documents and Settings ewuserLocal SettingsApps2.0
[Code]....
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.
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.
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 RepliesIs there a way to set the installation path of my program to c:Foldername.
question number 2 is that I have 2 database files which is located in m� program, is there a way to copy these to a spesific location during the installation of the program?
can anyone has idea how to get Microsoft.net framework installation path using window application in c#/vb.net.
View 2 RepliesI have a .chm file linked to my app that is presently being called from it's actual location.HelpProvider1.HelpNamespace = C:Documents and SettingsmgfranzMy DocumentsVisual Studio 2008ProjectsApp NameCleanUp.chm
But when I package the app the directory is going to change to C:Program FilesApp Name by default. The problem arises if the user decides to create an alternate directory. Is there a way to set a $Path at setup runtime so that when the .chm file is called it knows to look in the Home installation directory? Here is the code I use to call the .chm; Private Sub PictureBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
[Code]...
In my setup and deployment project, I have made all the directories I needed. The problem I have is: With the registry keys, how do I enter the value field with a wildcard for the location to the new installation. People don't always use the default location, so I need my key to dynamically set the registry to the correct place. So what do I do? [ProgramLocation] or something?
View 3 RepliesI 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?
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?
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)?
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.
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?
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[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 need help changing the default installation directory for a deployment package installer. The application's default directory is currently: [ProgramFiles][Manufacturer][ProductName].
What would I change this to, so that I can install the software directly on the root drive; Such as 'C:ManufacturerProductName'?
I'm a developer for a College we have an active directory.I need to query Active Directory with the Pc name and return it's path in the Active Directory tree.
View 3 RepliesI'm using VB.NET application. [code] Can anyone tell me how to read the full path from registery key? [code] I have no idea knowing what it is That's why i need to get it from the registry. Whatever path is in that registry entry is the path I need.I just want my VB.NET program to determine the full path from the registery key.I know that the registery key is: HKEY_LOCAL_MACHINESOFTWAREQuickProjects.QSUpdat.What I meant by "full path" is the location of where the registry key been installed. For example: "C:Program Files QuickProjects.QSUpdate". [code] using regedit.exe i double check and Software\QuickProjects.QSUpdate exist.If you know how to find out the path from registry key, please let me know.
View 4 RepliesIf I use REGSVR32 to register THREED32 on a mapped network drive (N:) then the registry enry INPROCSERVER32 Path THREED32 has N: as the drive. If Iuse REGSVR32 to register itand put the UNC path i.e. \192.168.0.100SOFT in the command line theNPROCSERVER32 path has the UNC path in it.But, no matter how we try and registerour own DLL's made in VB6, the INPROCSERVER32 path always has a UNC path and not the network drive letter.
View 1 Repliesi want save image in directory path and also save path in database...sqlserver 2005 and retrieve in in same folder and path?
View 1 RepliesI want to know exact path to All programs in the registry. Im creating an my own installer and i want my installer to add program to All programs in the START->All Programs. I browse the registry i found this "SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Products" but im not sure because it doesnt show program name , only it show 32 hexadecimal, then when i click on each hexadecimal, i got 4 subkeytree, FEATURES, INSTALLPROPERTIES,PATCHES,USAGE. In installproperties, i find information programs on my computer. if that is the path, how is the hexadecimal number generated.
View 4 RepliesI have a batch file with the following code which works fine[code]...
I would like to execute it from within the .net environment, however I can't seem to execute that command using the shell syntax.I tried Shell (cmd "MsiExec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150070}",vbHide)
I want to search a directory and get all the names of the "Folders" within that directory and place them into a string array. Note: No Files just folders
View 3 RepliesI am trying to change the DWORD value in a specific registry path. It starts with the user who is entering the value in decimal into a text box. Then with the click of a button, the application takes that value and change the existing value of the DWORD to the new one typed into the text box. I think I have manage to get it to work with "strings" but I seem to get stuck when it comes to the DWORD key. I have a feeling it have something to do with the hexadecimal value which is set by default. Do I need to create a converter?
View 1 RepliesI've been testing the code below (vb 2010) and everything works except for the fact that I cannot get the statement "Dim dirName As String = Path.GetDirectoryName(Application.ExecutablePath)" to work. The dialog is "Path is not declared.it may be inaccessible due to protection level".As you may note I have it commented out below and went with the more explicit statement. Note that the code is from another author and I'd like to understand how to make this work as originally provided.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim fileName As String = "flatfile.txt"
'Dim dirName As String = Path.GetDirectoryName(Application.ExecutablePath)[code].....
How do i get the directory name, without the full path?[code]....
View 8 Replies