Results 1 to 5 of 5

Thread: Deployment

  1. #1

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    Deployment

    Ahh the app is finished. Now the fun part. I have a windows app that stores connection string and other system dependant info in the app.config file. My question is, how do I modify the app config file during installation. An example would be prompting a user for server name, Username, and a Password during setup.

    I realize I should not be using impersonation to connect to my database and should be using windows authentication but this is an app upgrade and I have no choice in the matter.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Why not modify it the first time the program is run?

  3. #3

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    I really wish I could. Other than the install It will never be seen by a person. It is called by a SQL Server Job.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    One way , is to make little utility that runs before installation finishes (you can do this) . Let the user enter whatever you need and apply it at once .

  5. #5
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    I dont know what you use to create your setup, but if you use the installer coming along with visual studio, this is no problem.

    There is a tab called custom actions, and you can call any exe or any other file in that one. Like pirate said, just create a small "custom setup" (just needs to be a console app or something...) where you perform the action.

    In your setup you can add another setup form prompting the customer for the relevant information, and pass these on to your custom app.

    Heres a great link i got from Pirate tallking about the Setups.

    http://msdn.microsoft.com/library/d...application.asp

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width