| | |
Reset settings on reinstallation of a setup project
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 4
Reputation:
Solved Threads: 0
Hi All,
I have created a setup project for a WPF application using VS 2008.
Now if reinstall the same version again the default settings are not overwriting the user made settings.
Suppose my project while installation creates an xml file. The user can change that file. However if I reinstall it again the xml file should be replaced by the default one.
I believe there is some macro for this.
Can somebody help?
Cheers,
Sumit
I have created a setup project for a WPF application using VS 2008.
Now if reinstall the same version again the default settings are not overwriting the user made settings.
Suppose my project while installation creates an xml file. The user can change that file. However if I reinstall it again the xml file should be replaced by the default one.
I believe there is some macro for this.
Can somebody help?
Cheers,
Sumit
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Your installer should overwrite the file, giving them the option of course to keep the old one if they are really sure they want to
Last edited by LizR; Nov 26th, 2008 at 4:18 am.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Nov 2008
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Your installer should overwrite the file, giving them the option of course to keep the old one if they are really sure they want to
This is not happening. Currently the files are not getting overwritten. Please tell what change should i make in my setup project to get this feature???
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
I cant see your installer, it would need to deploy the file, and save it to the correct location. Only you can work out why that doesnt happen.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Nov 2008
Posts: 4
Reputation:
Solved Threads: 0
I am afraid but i guess you didn't understood my query. Let me frame that in a different way...
See I have created a Setup project which upon deployment creates certain "xml" files. Now when my application runs it changes those "xml" files.
Now when I run the same installer again it asks me for "Repair" option...on selecting that it doesn't changes the "xml" files since they were having a later TIMEStamp...i,e the installer is having old files so it didn't replace.
My requirement is that I want it to change those "xml" files everytime I select Repair option regardless of whether it was changed or not....
Hope to get a more appropriate response this time around
See I have created a Setup project which upon deployment creates certain "xml" files. Now when my application runs it changes those "xml" files.
Now when I run the same installer again it asks me for "Repair" option...on selecting that it doesn't changes the "xml" files since they were having a later TIMEStamp...i,e the installer is having old files so it didn't replace.
My requirement is that I want it to change those "xml" files everytime I select Repair option regardless of whether it was changed or not....
Hope to get a more appropriate response this time around
![]() |
Other Threads in the C# Forum
- Previous Thread: how to collect the datas from the treeview using C#
- Next Thread: Merge dotnet file and crystal report with C# project
Views: 1422 | Replies: 11
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development drawing encryption enum event excel file files form format ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view webbrowser windows winforms wpf xml






