DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   Reset settings on reinstallation of a setup project (http://www.daniweb.com/forums/thread159543.html)

sumitbaks Nov 26th, 2008 3:08 am
Reset settings on reinstallation of a setup project
 
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

LizR Nov 26th, 2008 4:16 am
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

sumitbaks Nov 26th, 2008 5:08 am
Re: Reset settings on reinstallation of a setup project
 
Quote:

Originally Posted by LizR (Post 744936)
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???

LizR Nov 26th, 2008 5:48 am
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.

sumitbaks Nov 27th, 2008 4:08 pm
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:)

LizR Nov 27th, 2008 4:10 pm
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.

sumitbaks Nov 28th, 2008 2:57 pm
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

LizR Nov 28th, 2008 4:57 pm
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.

jbennet Nov 28th, 2008 9:06 pm
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

LizR Nov 29th, 2008 5:22 am
Re: Reset settings on reinstallation of a setup project
 
A fair assumption - but at no point has this been said.


All times are GMT -4. The time now is 3:51 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC