RE: How to set up .exe.config during installation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: DesignedForDOTNET (DesignedForDOTNET_at_discussions.microsoft.com)
Date: 10/18/04


Date: Mon, 18 Oct 2004 09:11:01 -0700

hi....

for reading the values from the install program, i guess u must have added
custom forms to ur install app from the setup project, in this case u have to
create a custom installer class to read the values from the installer
application and do the required job, once u have created ur installer class u
need to add this dll file as a custom action to the installer,
so when the installer runs, the code in the installer class also gets
executed.

you need to pass the parameters thro the custom action data property in the
setup app.
Ex. - /INSTALLDIR="[INSTALLDIR]"
and inside the installer class you can read the parameters as shown below.
Console.WriteLine(Context.Parameters["INSTALLDIR"].ToString());

check out these links for further reading.
http://www.c-sharpcorner.com/Code/2002/July/UseInstClasses.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemconfigurationinstallinstallerclasstopic.asp

hope this helps,
Bye

Kannan.V
http://kannanv.blogspot.com

"policywatcher" wrote:

> So I've been really good. I've written my nice shiny new app to use a
> .config file.
>
> I have code that is nicely reading (and updating as required) the settings
> in the .config file, and the app is passing testing, fine.
>
> All goes well, right up to the point where I want to make the install script
> set up the initial values in the config file, based on part of the
> installation script values and text box values from a form in the install
> script.
>
> And can I find out how to do it?
>
> Nope. Not at all.



Relevant Pages

  • Re: Get your questions answered by LabVIEW developers.
    ... custom, dedicated hardware board, that plugs into a proprietary databus ... I do use that installer section completely when I build an installer ... runtime engine based on what your VI APP needs) would allow you to tic ... basically such has to be done under compiler evaluation control.  ...
    (comp.lang.labview)
  • Re: How to get a WM5 devices O/S Version in a call without using RAPI?
    ... my app on the device side creates files during its execution. ... found that the ActiveSync uninstaller knows nothing about these and does not ... I was doing all of this using my custom uninstaller and manually ... you can uninstall your desktop installer from CeAppMgr.exe Add/Remove ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Poll: Customized Fedora
    ... ability to select "Choose packages" in the Fedora installer before actually ... "pre-customize Fedora Core with your own logos" or something, ... >> I had the need to build custom installs of Fedora. ... >> distro, I think that was a bit too high a price. ...
    (Fedora)
  • Re: Deployment project - conditional custom action
    ... I assume your talking about setting the condition property of the custom ... speaking of is a property of the windows installer itself. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: Custom action in MSI prevents repair installation
    ... Do you want your custom action code to be called during a repair? ... Definitive Guide to Windows Installer ...
    (microsoft.public.vsnet.setup)