|
-
Jan 9th, 2004, 02:11 PM
#1
Thread Starter
Addicted Member
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
-
Jan 9th, 2004, 02:30 PM
#2
Why not modify it the first time the program is run?
-
Jan 9th, 2004, 02:49 PM
#3
Thread Starter
Addicted Member
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
-
Jan 9th, 2004, 10:32 PM
#4
Sleep mode
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 .
-
Jan 10th, 2004, 05:29 AM
#5
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|