${SegmentFile} ${SegmentInit} ${If} $Bits = 64 ${If} ${FileExists} "$EXEDIR\App\Toucan\7za64.exe" Rename "$EXEDIR\App\Toucan\7za.exe" "$EXEDIR\App\Toucan\7za32.exe" Rename "$EXEDIR\App\Toucan\7za64.exe" "$EXEDIR\App\Toucan\7za.exe" ${EndIf} ${If} ${FileExists} "$EXEDIR\App\Toucan\ccrypt64.exe" Rename "$EXEDIR\App\Toucan\ccrypt.exe" "$EXEDIR\App\Toucan\ccrypt32.exe" Rename "$EXEDIR\App\Toucan\ccrypt64.exe" "$EXEDIR\App\Toucan\ccrypt.exe" ${EndIf} ${If} ${FileExists} "$EXEDIR\App\Toucan\cygwin164.dll" Rename "$EXEDIR\App\Toucan\cygwin1.dll" "$EXEDIR\App\Toucan\cygwin132.dll" Rename "$EXEDIR\App\Toucan\cygwin164.dll" "$EXEDIR\App\Toucan\cygwin1.dll" ${EndIf} ${Else} ${If} ${FileExists} "$EXEDIR\App\Toucan\7za32.exe" Rename "$EXEDIR\App\Toucan\7za.exe" "$EXEDIR\App\Toucan\7za64.exe" Rename "$EXEDIR\App\Toucan\7za32.exe" "$EXEDIR\App\Toucan\7za.exe" ${EndIf} ${If} ${FileExists} "$EXEDIR\App\Toucan\ccrypt32.exe" Rename "$EXEDIR\App\Toucan\ccrypt.exe" "$EXEDIR\App\Toucan\ccrypt64.exe" Rename "$EXEDIR\App\Toucan\ccrypt32.exe" "$EXEDIR\App\Toucan\ccrypt.exe" ${EndIf} ${If} ${FileExists} "$EXEDIR\App\Toucan\cygwin132.dll" Rename "$EXEDIR\App\Toucan\cygwin1.dll" "$EXEDIR\App\Toucan\cygwin164.dll" Rename "$EXEDIR\App\Toucan\cygwin132.dll" "$EXEDIR\App\Toucan\cygwin1.dll" ${EndIf} ${EndIf} !macroend ${OverrideExecute} StrCpy $1 `"$AppDirectory\$ProgramExecutable"` ; Get command line arguments from the launcher INI file. ClearErrors ${ReadLauncherConfig} $0 Launch CommandLineArguments ${IfNot} ${Errors} ${DebugMsg} "There are default command line arguments ($0). Adding them to execution string after parsing." ${ParseLocations} $0 StrCpy $1 "$1 $0" ${EndIf} ; Get command line parameters that were passed directly ${GetParameters} $0 StrCmp $0 "" LaunchWithoutParameters LaunchWithParameters LaunchWithoutParameters: SetOutPath $EXEDIR\App\toucan ExecShell "open" $1 "" SW_HIDE Goto TheEnd LaunchWithParameters: SetOutPath $EXEDIR ExecShell "open" $1 "$0" TheEnd: !macroend