Quote:
Originally Posted by y_thelastknight
hi i need help
how to do this
Code:
#define AppName "1"
//values 1,2,3,4,5
[Setup]
AppId={{660BF654-1986-4653-9981-E99323A2E683}
#ifdef AppName "1"
AppVerName=y_thelastknight1
#endif
#ifdef AppName "2"
AppVerName=y_thelastknight2
#endif
#ifdef AppName "3"
AppVerName=y_thelastknight3
#endif
#ifdef AppName "4"
AppVerName=y_thelastknight4
#endif
#ifdef AppName "5"
AppVerName=y_thelastknight5
#endif
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: {win}\help\*; DestDir: {app}\1; Flags: external recursesubdirs ;
|
Code:
#define AppName "1"
//values 1,2,3,4,5
[Setup]
AppId={{660BF654-1986-4653-9981-E99323A2E683}
#if AppName == 1
AppVerName=y_thelastknight1
#elif AppName == 2
AppVerName=y_thelastknight2
#elif AppName == 3
AppVerName=y_thelastknight3
#elif AppName == 4
AppVerName=y_thelastknight4
#elif AppName == 5
AppVerName=y_thelastknight5
#endif
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: {win}\help\*; DestDir: {app}\1; Flags: external recursesubdirs ;