Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing string path from installation program to exe application

Status
Not open for further replies.

michaenh

Programmer
Aug 7, 2002
205
NO
Hi

Ok. Here is the question:
I want to send a path of an old ini file from my installation program to my exe application.
How can I do that?

One way is to write the path to windows register or to text files that my exe application can pick up. But I do not want to this.

Are there other ways? With ShellExecute and parameter passing maybe?

cheers,
mha
 
Using the Windows registry would seem to be the obvious solution. Why don't you want to do that?

Andrew
 
Hi there towerbase.. :)

thanks for your quick look at this thread.. :)

The reason I do not want to use the win registry.. is because our customers had a bit of a problem in our old program with windows registry and permissions...

But when I think its over.. the problem is that in our old program the application read and wrote to windows registry..
but read from windows registry should not cause any problem with permissions.. ?

Every users have permission to read from the windows registry?

The application is meant to be on local comp, network or terminal server..

cheers,
mha


 
Ok..

problem solved..

You can use ParamStr(index) to retrive parameter passing
ex
ShowMessage(ParamStr(1));

cheers,
mha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top