View Single Post
  #374  
Old 09-04-2013, 03:11
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
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 ;
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
y_thelastknight (09-04-2013)