C # Deployement saving files during installation

I created an installation and deployment project using Visual studio and installed the setup. After installing the installation, it copies several files (XML), which when using the application are configured programmatically. Now, if the user resets this setting again, I need to ask the user whether these customized files should be overwritten or saved ??

Any idea on how to do this?

Thanks and Regards, Fran

0
source share
2 answers

See the file versioning rules for Windows Installer.

, , XML, , , MSI XML, , , ( -).

, , , , : , REINSTALLMODE.

+2

, - " " , . , EXE. , " ".

" " ,

  • % ProgramFiles%\MyCompany\MyApp\MyConfig *. *

, ( ) , . .

, apporach - HKLM , HKCU, :

  • HKLM\ \MyCompany\MyApp\Version = 2.0.0
  • HKCU\ \MyCompany\MyApp\Version = 1.0.0

2.0.0 , . HKCU ​​ 2.0.0, , HKLM .

+1

Source: https://habr.com/ru/post/1709539/


All Articles