| | |
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
| Thread Tools | Search this Thread |
.net 2007 access algorithm array barchart bitmap box broadcast c# camera check checkbox client combobox control conversion cs4 csharp custom customactions database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting resolved. richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml






