Please don't multi-post. It's extremely irritating having to read all
your (different) posts and then deciding which one to allow.
--
Cerebrus.
Group Moderator.
On Nov 12, 7:35 pm, kishore <[EMAIL PROTECTED]> wrote:
> In .Net deployment project type, is it possible to read a text file by
> Setup.Exe when the installation is in progress. I am distributing
> Setup.exe, Setup.msi along with a text file. I want the Setup.exe to
> read the text file and apply some settings from the text file once the
> installation is complete. For every customer i will have a different
> text file and I do not want to Build the project everytime I change
> the text file. I have tried something like this in the Custom Action,
> but it is unable to find the file (in the location of Setup.Exe) as it
> is trying to locate the file where the project is getting installed:
>
> string fileName = "installer.config";
> string path = Application.StartupPath;
> string filePath = path + "\\" + fileName;
> string[] lines = File.ReadAllLines(filePath);
> foreach (string str in lines)
> {
> MessageBox.Show(str);
> }
>
> thanks