Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 23rd, 2008, 04:06 AM
Registered User
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# application publishing troubles

Hi everybody,

I'm new here and even my search didn't reveal any answers to me.

I've written a C# SQL application which sort of got successful and we're going to implement it on different levels in a couple of companies. The application uses the native "Publish" method of Visual Studio 2005. My problem is, that when you install application like this, it stores itself deep into user profile on some generated path including the config file.

I am now searching for some reasonable way how to maintain 1 application build but have everyone download the proper config file for it. As the application would query in each organization unit different sql server and also other stuff in the .config file would be different, I still can't find a way how can autoupdate download the proper version without me having to do a separate publish for each unit.

Thanks for any hints and pointers.
Old May 23rd, 2008, 04:23 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

I think if you create a custom installer (templates are in VS) you can have a lot more control over all of this, including creating custom prompts. If I understand correctly, you would like a single application build, but allow different config files to be downloaded yes? If thats the case then you could create a custom step in the wizard, prompt the user for their department (or whatever) and then provide custom code to download the appropriate .config file.

Using the installer will also enable you to set a static install path and end the madness! :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shader troubles Largo39 BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 August 9th, 2007 03:01 PM
Parser Error after publishing application AbhijitSinha General .NET 1 November 20th, 2006 08:15 AM
Database troubles notrosh ASP.NET 2.0 Professional 0 June 13th, 2006 01:20 PM
CurrentRegion troubles Glen Frank Excel VBA 2 July 20th, 2005 07:04 AM
Interop Troubles Yehuda Pro VB.NET 2002/2003 0 June 29th, 2004 01:26 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.