Avoid existing files being overwritten when newer version is installed.
Posted
by constant learner
on Stack Overflow
See other posts from Stack Overflow
or by constant learner
Published on 2010-04-19T06:13:16Z
Indexed on
2010/04/19
6:33 UTC
Read the original article
Hit count: 283
setup-deployment
|.NET
Hello
I have a VS2008 windows application project (WinProject) which is deployed by the installation project (InstallationProject) which inturn has the property RemovePreviousVersions set to True.
In my app for each configuration made by an user, the winapp writes the configurations into an xml file (stored in C:\Application Name\Files\ folder) which also includes the path where the config was saved.
Now when I build new versions of the installer,This folder and the files are overwritten since i the flag AlwaysCreate is set to True.
My question is how can i avoid these older files from being overwritten and at the same time shall get the updated file from the installer.
Ex: Contents of the file
<PriceFiles>
<Name>arr</Name>
<Path>C:\NewTool\arr.xml</Path>
<UserDefined>true</UserDefined>
</PriceFiles>
<ReferenceProjects>
<Name>studio</Name>
<Path>C:\NewTool\ReferenceProjects\6cd3a9e9-ad65-475e-953b-128915a496cd.xml</Path>
<UserDefined>true</UserDefined>
<CreatedBy>Admin</CreatedBy>
</ReferenceProjects>
Thanks in advance
© Stack Overflow or respective owner