943,866 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2318
  • C# RSS
You are currently viewing page 1 of this multi-page discussion thread
Nov 26th, 2008
0

Reset settings on reinstallation of a setup project

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumitbaks is offline Offline
4 posts
since Nov 2008
Nov 26th, 2008
0

Re: Reset settings on reinstallation of a setup project

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.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 26th, 2008
0

Re: Reset settings on reinstallation of a setup project

Click to Expand / Collapse  Quote originally posted by LizR ...
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???
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumitbaks is offline Offline
4 posts
since Nov 2008
Nov 26th, 2008
0

Re: Reset settings on reinstallation of a setup project

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.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 27th, 2008
0

Re: Reset settings on reinstallation of a setup project

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumitbaks is offline Offline
4 posts
since Nov 2008
Nov 27th, 2008
0

Re: Reset settings on reinstallation of a setup project

Yep, so whatever you use to make your installer should be told to always overwrite those files newer or not.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 28th, 2008
0

Re: Reset settings on reinstallation of a setup project

That's what I am asking how to tell my installer to overwrite those files....There should be some setting and I am unaware of that..Please let me know if u r familiar with it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumitbaks is offline Offline
4 posts
since Nov 2008
Nov 28th, 2008
0

Re: Reset settings on reinstallation of a setup project

I dont know what you use to make your installer with. Wise (the one I use) does.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 28th, 2008
0

Re: Reset settings on reinstallation of a setup project

Quote ...
I dont know what you use to make your installer with. Wise (the one I use) does.
He is using the installer capability built into visual studio
Moderator
Featured Poster
Reputation Points: 1767
Solved Threads: 574
Moderator
jbennet is offline Offline
16,517 posts
since Apr 2005
Nov 29th, 2008
0

Re: Reset settings on reinstallation of a setup project

A fair assumption - but at no point has this been said.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: how to collect the datas from the treeview using C#
Next Thread in C# Forum Timeline: Merge dotnet file and crystal report with C# project





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC