| | |
Reset settings on reinstallation of a setup project
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
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 access algorithm array asp.net bitmap box broadcast c# check checkbox client combobox control conversion csharp database datagrid datagridview dataset datetime dbconnection decryption degrees design developer draganddrop drawing encryption enum eventhandlers excel file firefox focus form format forms function gdi+ grantorrevokepermissionthroughc#.net hospitalmanagementsystem image input install interface java libraries list loop marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe numeric operator path photoshop php picturebox pixelinversion platform polynomial post programming properties radians read regex remote remoting richtextbox server sleep socket sql statistics string stringformatting study system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation visualstudio webbrowser winforms wpf wpfc# xml






