Can't Find The Installation Directory?

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


ADVERTISEMENT

Find Installation Directory Of Other Application Installed?

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

Publishing A Project - Can't Find The Installation Directory

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

Get Installation Directory Path From The .net Registry?

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

How To Get The Installation Directory In A Custom Action

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

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

Select The Installation Directory Using Click Once Deployment?

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

Specify Installation Directory For Vb 2008 Express Application?

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

Allow Installation In Custom Target Directory And Suppress Autostart

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

VS 2010 Free Method To Access Installation Directory

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

App Can't Find DB After Installation

Mar 11, 2012

my app cant see my access db after installation.i traced the location of the db on the computer after installation

C:\Users\Timosoft\AppData\Local\Apps\2.0\QY65PWX9.W3T\QECRQCWW.P3T\wwtb...exe_e6ecfcd40db94ae4_0001.0000_none_93fcea95705260c6\bin\Debug

didnt get it.am using below code in the program to locate the db.

'declare provider and location
strPath = Path.GetDirectoryName(Application.ExecutablePath) & "\bin\Debug"
dbProvider = "PROVIDER=Microsoft.ACE.OLEDB.12.0;"
dbSource = "Data Source=" & strPath & "\wwtbamDB.mdb;Persist Security Info=False;Jet OLEDB:Database Password=kkkkkkkvvf??"

View 1 Replies

Find Microsoft.net Framework Installation Path?

Jul 18, 2009

can anyone has idea how to get Microsoft.net framework installation path using window application in c#/vb.net.

View 2 Replies

Can't Find The Microsoft.SQLServer.ManagedDTS.dll In Vs2010 Installation?

Dec 7, 2010

I am using vb.net in vs2010.I can't find the Microsoft.SQLServer.ManagedDTS.dll. How do I add that dll to the reference?

Imports
Microsoft.SqlServer.Dts.Runtime

View 3 Replies

VS 2008 VB 2008 Express Edition Softare - Specific Installation Directory For A Program?

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

Deployment :: Combine WAMP And Application Installation Into One Packet Installation?

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

Find Directory With Portion Of Name?

Jun 28, 2010

I'm trying to look in the program files for a directory(the gimp directory). I could hard code it but they change the file name and the exe name with the versions. So I only know that the folder contains the word gimp. How do I search for it only knowing a portion of the file name.

My.Computer.FileSystem.FindInFiles(Environment.SpecialFolder.ProgramFilesX86, "gimp", True, FileIO.SearchOption.SearchTopLevelOnly)

This is the code that I've tried but it just doesn't work.

View 14 Replies

Find The Size Of A Directory

Dec 29, 2005

I've been trying to find the size of a directory with vb.net but not having much luck. I've tried things like: My.Computer.FileSystem.GetDirectoryInfo(basePath). but no appropriate methods or properties are coming up.

View 14 Replies

Cannot Find Application Data Directory

Dec 7, 2009

I have a vb.net program that initially finds the directory where application data can be stored with the following command.[code]....

View 4 Replies

Find Folder Directory (Similar Name)

Nov 20, 2010

i am trying to use code to find search for a folder and it will give me back the full directory root. I am using this code:

[Code]...

View 4 Replies

Find Group In Active Directory?

Mar 8, 2012

I am trying to find out the Active Directory Group that the current user belongs to. I have the current users username stored in strUserName and have got this [code]....

View 4 Replies

Find Path Of Current Directory?

Jun 12, 2009

i want to get path of current directory .

View 2 Replies

Find The Path Route From One Directory To Another?

Dec 15, 2011

Given that I have a file in path: C:ApplicationsGeneral UtilsAssembly1Assembly1BinDebugAssembly1.dll

and I am working in the following path:C:ApplicationsUnder DevelopmentApp1App1

is there some easy way to find the dotted path route from the application to the assembly:

General UtilsAssembly1Assembly1BinDebugAssembly1.dll

View 1 Replies

VS 2008 Find Files In Directory?

Jun 10, 2010

I'm making a Cleaner for my PC that could delete all files with a specific name.So I have all the names in a .txt file, like:

A
B
C
D

Now I need somekind of function that would search in a directory ( The user gives the dir. in a textbox ), and its important that it would also search in all sub folders and see if there is a match to any of the names in the .txt file. And it shall not care about in what format the file is. It can be in .exe , .txt or any format.

View 10 Replies

Find Domain Users Name In Active Directory?

May 16, 2012

i am using following code to retive Domain Users from AD

but i am getting APPUser and IUSER in the give

how to avoide this type of user from the list i wantreal user names only

Dim pctx As New PrincipalContext(ContextType.Domain, "192.1.1.1", "myusername", "mypwd")
Dim grp As GroupPrincipal = GroupPrincipal.FindByIdentity(pctx,

[Code]....

View 5 Replies

Find Next Computer In Active Directory By Pre/subfix?

Aug 1, 2008

I am trying to get the next available computer name based on a pre/sub fix e.g. "PC0001", atm I have a working solution from sql asset database.Anyone got an idea on how to convert the following from sql query to directorysearcher.filter?"Select TOP 1 Computername from computers where Computername LIKE '" & computerNamePrefix & "%' AND ISNUMERIC(right(ComputerName,4)) = 1 ORDER BY Computername DESC"At the moment I got the following

mySearcher.Filter = "(cn=*pc*)" mySearcher.Sort = New SortOption("Name", SortDirection.Descending)

View 2 Replies

Getfiles - Find Most Recent File In Directory?

Feb 20, 2012

I'm trying to load the most recent file from a directory, but my following code doesn't work. Am i getting something obvious terribly wrong?!

Dim myFile = Directory.GetFiles("C:UsersJoeDesktopXML Logs").OrderByDescending(Function(f) f.LastWriteTime).First()

I get two error messages:

Data type(s) of the type parameter(s) in extension method 'Public Function OrderByDescending(Of TKey)(keySelector As System.Func(Of String, TKey)) As System.Linq.IOrderedEnumerable(Of String)' defined in 'System.Linq.Enumerable' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.

And:

'LastWriteTime' is not a member of 'String'.

View 1 Replies

Searching Active Directory To Find All Users?

Jul 14, 2010

Our organization has users that have similar first and last names, but different users ID. How do I search the Active Directory to find all the users?

View 1 Replies

Creating Install Directory - Automatically Find The Desktop For Xp

Aug 19, 2010

im an amateur programmer making a program for somebody else. i need to get it to run out of the box no problems and i need to find a way to automatically find the desktop for xp but it would be nice if the same code worked on vista/7 to but thats only if its convenient.

View 4 Replies

Find If User Is Member Of Active Directory Group ASP.NET?

Jul 6, 2010

I am using Active Directory to authenticate users for an intranet site. I would like to refine the users that are authenticated based on the group they are in in Active Directory. how to find what groups a user is in in ASP.NET 4.0 (VB)?

View 3 Replies

Find Location Of AppDataRoamingMicrosoftWordSTARTUP Directory With Visual Basic

Jul 4, 2009

I am trying to write a simple Visual Basic 2008 installer that copies word macro templates to Word's startup directory. On Vista and 7, that directory is the user's AppDataRoamingMicrosoftWordSTARTUP directory. Is there a way that I can programmatically find this directory? I.e. is it safe to say that this directory will almost always be in this location such that I can simply get the user's home directory and then add AppDataetc.... or is there a registry or something else that I can access to get Word's current standard startup directory?

View 1 Replies







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