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).


Related to : Inno Setup: Do not install subfolder if it exists already

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .