473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Capture installed directory

I enabled my new creation "MyProg.exe" to start up at the second last screen
of the windows install process, as set up in VB.net.

My problem is, that MyProg.exe expects the current direcory to be the
directory into which it was copied by the install program, usually
Start>Progam files>Mycompany.>MyProgram

At the time the windows installe launched MyProgam, the current directory
was windows\system32
I can code my application to start in the default directory, but what if the
user choses another directory during the install.
Is this variable which is created during the install available to the run
time process where i can use it in real time to change the directory to the
installed location?

In the registtry perhaps??

joisey.
Nov 21 '05 #1
1 945
Joisey,

There are more ways in this too Rome, however this is in my idea the
easiest.

application.startuppath

http://msdn.microsoft.com/library/de...ppathtopic.asp

I hope this helps?

Cor
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve High | last post by:
I'm working on an app where a page is created dynamically via a CMS, and I need to save the page similar to the way you can save a 'complete web page' via a browser. I need to save the graphics,...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
2
by: Marcin | last post by:
hello, Anyone has an idea how can I delay the preview from my camera about 4 minutes? I want to delay capturing stream and then show it on screen. I used Stream Buffer Engine but I can't lock...
0
by: Sijmen | last post by:
In reference to the following post by Brandon Bray from Microsoft: http://groups.google.com/groups?q=g:thl1709599354d&dq=&hl=en&lr=&ie=UTF-8&selm=%238CXKwM3BHA.2488%40tkmsftngp04 Among other...
9
by: John Grandy | last post by:
Open a .sln containing a web-app and receive the "ASP.NET 1.1 not installed .... " error ..... I've never know the root cause of this error. I've always dealt with it by closing the web-app ,...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
1
by: feng | last post by:
I have a VB.Net program that consumes a web service. When calling the web service from my program, I would like to be able to capture and evaluate the request xml going out and the response xml...
2
by: guttyguppy | last post by:
This code: <? //PHP SCRIPT: getimages.php Header("content-type: application/x-javascript"); //This function gets the file names of all images in the current directory //and ouputs them as a...
0
by: j101 | last post by:
I am attempting to set up Q Capture on RH Linux (x86_64) using DB2 9 fp2, but there seems to be a general problem loading a specify MQ shared library "/opt/mqm/lib/libmqm_r.so". I have MQ v6...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.