Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

SetUP and Deployment projects

I want to create install package that contains an .INI file has the path of the installed components in it.

e.g. Example.INI contains the following line in text
INPUT=C:\program files\Myapp\Input
Output=C:\program files\Myapp\output

The path must be dynamic to match the dynamic install path set at installation. What is the easiest way to do this?. Any ideas?
[388 byte] By [rwlavoie] at [2007-11-11 8:48:38]
# 1 Re: SetUP and Deployment projects
It doesn't sound like you need an INI file; you can simply obtain the location of the application at runtime and append "input" and "output" to the path:

Dim AppPath As String = System.AppDomain.CurrentDomain.BaseDirectory()
Dim Input As String = AppPath & "input"
Dim Output As String = AppPath & "output"
Phil Weber at 2007-11-11 21:47:00 >
# 2 Re: SetUP and Deployment projects
I agree (that is the correct .net solution), if it was that simple. I don't like to have to use an .INI file to identify locations, but unfortunately this .INI is part of a previous architecture use by a C program that I can't make any changes to. Originally the .INI was built by Wise Installer that would generate it with the right paths
rwlavoie at 2007-11-11 21:48:00 >