I Would like to create a constant, and then, adding files or not in setupfile case constant is set On Or Off
example :
#define ForLS "0"
[Files]
;Only for LS :
If (ForLS=="1")
{
Source: D:\Exec\Starter.exe; DestDir: {app}\Starter; Flags: ignoreversion
Source: D:\Exec\M2.exe; DestDir: {app}\M54; Flags: ignoreversion
}
;For All
Source: D:\Exec\M1.exe; DestDir: {app}\Starter; Flags: ignoreversion`
The reason is that for example M2 is heavy (10Mo) and not necessary for everybody
Thanks for your help
You can use the define itself, include source whether it is defined or not: