- setup.zip
- Setup
- Setup.msi
- database.zip
- Database
- MS Access
- AccountPlus.mdb
- MySQL
- SQL Server
- Backup
- AccountPlus.bak
- Script
- accountplussource.zip
- AccountPlusSource
- AccountPlus.BusinessLogic
- AccountPlus.Configurations
- AccountPlus.DataAccess
- AccountPlus.Formatting
- AccountPlus.Messaging
- AccountPlus.Setup
- AccountPlus.sln
- AccountPlus.UserInterface
- Assemblies
- log4net.dll
- accountplus.zip
- AccountPlus
- AccountPlus
- Source_Code.zip
|
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml;
using System.Configuration;
using System.Diagnostics;
namespace AccountPlus.Setup.CustomActions
{
public static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
public static void Main(string[] args)
{
string[] argCollection = args[0].Split(Convert.ToChar(","));
string installPath = argCollection[0].Trim();
string exeName = installPath + @"AccountPlus.UI.exe";
string configFileName = installPath + @"\AccountPlus.UI.exe.config";
ModifyAppConfig(configFileName, "connectionStrings", "connectionString", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + installPath + @"Database\AccountPlus.mdb;Jet OLEDB:Database Password=admin;");
ModifyAppConfig(configFileName, "appSettings", 4, "value", argCollection[1]);
}
private static void ModifyAppConfig(string fileName, string sectionName, string attributeName, string value)
{
ModifyAppConfig(fileName, sectionName, 0, attributeName, value);
}
private static void ModifyAppConfig(string fileName, string sectionName, int nodeIndex, string attributeName, string value)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(fileName);
XmlNodeList nodes = xmlDoc.DocumentElement.ChildNodes;
foreach (XmlNode node in nodes)
{
if (string.Compare(node.Name, sectionName, true) == 0)
{
node.ChildNodes[nodeIndex].Attributes[attributeName].Value = value.Trim();
break;
}
}
xmlDoc.Save(fileName);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
• 8 years of experience in IT Industry as a Developer.
• Experience of End-To-End Software Development and Implementation (Entire SDLC i.e Software Development Life Cycle)
• Real time Exposure to Banking, Finance and Energy industry.
• Expertise in distributed application architecture as well as web based applications using Microsoft.NET platform.
• Expertise in database design, SQL programming and SQL performance tuning.
• Expertise in Web Services and WCF Services.
• Experience of Rich Internet Application using Adobe Flex.
• Experience in migration of legacy application to latest technology, migration of VB application to .NET.
• Knowledge of OOPS and Design Concepts.
• Expertise in Agile/ Scrum software development processes.
Specialties
• Languages\ Technologies-
.NET Framework 1.1/2.0/3.0/3.5, C#.NET, VB.NET, ASP.NET, VB6, AJAX, ASP.NET, Adobe Flex 3.0, Web Services, Windows Communication Foundation (WCF), LINQ, SQL Server, Oracle, MySql, MS Access, HTML, XML, JavaScript, C# Script, CSS and XSLT.
• Methodology/ Concepts-
OOPS, Data Structures, Design Concepts and Agile/ Scrum Software Development