473,396 Members | 1,961 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,396 software developers and data experts.

modifing app.config file during installation

Hi,

How do I modify the app.config file for my application during install.
The file is not available when using a helper class or custom action program
until after the install?

Tim
Jul 21 '05 #1
1 1800
Hello Tim,

Thanks for posting, if you are working with VS.Net Setup project and
managed .Net custom actions, the App.config file should already been
installed when the custom action is run.

Please note that we the installer class is executed, the current working
directory is "C:\windows\system32". So you may need to path the target
installation path as the "CustomActionData" into the installer class.
Please refer to the following links:

CustomActionData Property
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxgrfcustomactiondataproperty.asp?frame=true

Walkthrough: Passing Data to a Custom Action
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxwlkwalkthroughpassingdatatocustomaction.asp?fram e=true

We can use the following as the "CustomActionData" for the custom action:

/name="[TARGETDIR]\".

I hope this helps.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2

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

Similar topics

0
by: Bob Willer | last post by:
I have a .NET Installer class that gets executed during my installation. However, that installer class is reliant on an associated .config file. So I have "MyClass.dll" that is a .NET Installer...
2
by: policywatcher | last post by:
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...
2
by: KennethBohman | last post by:
Hi everybody, Question: how can I use the executable.config-files during installation? The answer might seem obvious, but there is apparently more to it! My itention was, as part of the...
1
by: Rajesh Abraham | last post by:
I would like to Exclude MyApp.Exe.Config from my Setup Package as I don't want it to get overwritten during upgrade installation of my application. If I remove app.config while building the...
0
by: Ravikanth[MVP] | last post by:
Hi Use Server Variables to get full path. Server Variable i s :APPL_PHYSICAL_PATH Ravikanth >-----Original Message-----
1
by: Tim Marsden | last post by:
Hi, How do I modify the app.config file for my application during install. The file is not available when using a helper class or custom action program until after the install? Tim
0
by: Nenad Dobrilovic | last post by:
Hi all, I have a really strange situation, but I believe that there is someone else who has already experinced the same, and is willing to help me! I made an application using VS 2005 in C#,...
3
by: Blasting Cap | last post by:
I am working on a web app that I want to be able to use a separate config file on, in addition to the web.config file that's already working in the application. If I put the following in the...
1
by: bogdan.taru | last post by:
Hello, I have had a lot of problems installing a DB2 v8.1 Personal Edition on a RHEL4. Solved most of them by using a JDK-1.4.1 instead of the default 1.3.1, which comes with DB2. But I still...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.