Reset settings on reinstallation of a setup project

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 4
Reputation: sumitbaks is an unknown quantity at this point 
Solved Threads: 0
sumitbaks sumitbaks is offline Offline
Newbie Poster

Reset settings on reinstallation of a setup project

 
0
  #1
Nov 26th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Reset settings on reinstallation of a setup project

 
0
  #2
Nov 26th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 4
Reputation: sumitbaks is an unknown quantity at this point 
Solved Threads: 0
sumitbaks sumitbaks is offline Offline
Newbie Poster

Re: Reset settings on reinstallation of a setup project

 
0
  #3
Nov 26th, 2008
Originally Posted by LizR View Post
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???
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Reset settings on reinstallation of a setup project

 
0
  #4
Nov 26th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 4
Reputation: sumitbaks is an unknown quantity at this point 
Solved Threads: 0
sumitbaks sumitbaks is offline Offline
Newbie Poster

Re: Reset settings on reinstallation of a setup project

 
0
  #5
Nov 27th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Reset settings on reinstallation of a setup project

 
0
  #6
Nov 27th, 2008
Yep, so whatever you use to make your installer should be told to always overwrite those files newer or not.
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 4
Reputation: sumitbaks is an unknown quantity at this point 
Solved Threads: 0
sumitbaks sumitbaks is offline Offline
Newbie Poster

Re: Reset settings on reinstallation of a setup project

 
0
  #7
Nov 28th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Reset settings on reinstallation of a setup project

 
0
  #8
Nov 28th, 2008
I dont know what you use to make your installer with. Wise (the one I use) does.
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,152
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 531
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Reset settings on reinstallation of a setup project

 
0
  #9
Nov 28th, 2008
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
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Reset settings on reinstallation of a setup project

 
0
  #10
Nov 29th, 2008
A fair assumption - but at no point has this been said.
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC