Inno Setup: Do not install subfolder if it exists already


I am trying to package everything in C:AppWeb* into an
installer.



If the database sub-folder mysqldata exists, then I
do not want to replace these files.



This is my Inno Setup script:



[Files]
Source: "C:AppWebxampp-control.exe"; DestDir: "{app}"; Flags:
ignoreversion
Source: "C:AppWeb*"; DestDir: "{app}"; Flags: ignoreversion
recursesubdirs createallsubdirs
Source: "C:AppWeb*"; DestDir: "{app}"; Excludes: "C:AppWebmysqldata*";
Flags: ignoreversion recursesubdirs createallsubdirs; Check:
DirExists(ExpandConstant('{app}mysqldata*'))


The files in mysqldata still get replaced.



I want the installer to avoid overwriting the data folder if the
application is already installed (i.e. performing an upgrade).


- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow