; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! [Setup] ; NOTE: The value of AppId uniquely identifies this application. ; Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{0A6F3AEE-1BE4-4520-A27C-0AE1E2690144} AppName=sp-console AppVerName=sp-console 3.4.0 AppPublisher=Solbox Inc. AppPublisherURL=http://www.solbox.com AppSupportURL=http://www.solbox.com AppUpdatesURL=http:///www.solbox.com DefaultDirName={pf}\LGUplus\sp-console DefaultGroupName=sp-console ;LicenseFile=./LGU/_license.rtf OutputDir=.\Output-LGU OutputBaseFilename=sp-console_Setup SetupIconFile=..\Common\res\ConsoleApp_LGU.ico Compression=lzma SolidCompression=true EnableDirDoesntExistWarning=true AppendDefaultDirName=false UsePreviousAppDir=false [Languages] Name: english; MessagesFile: compiler:Default.isl [Tasks] Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: checkedonce Name: startupicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: checkedonce [Files] ;Source: release\vcredist_x86.exe; DestDir: {tmp}; Flags: deleteafterinstall ;Source: release\vcredist_x86_vs2010_sp1.exe; DestDir: {tmp}; Flags: deleteafterinstall Source: ../_Bin/SPConsole/release_LGU\SP-Console.exe; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: _public\readme.txt; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SPCComm.dll; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SHCSDK.dll; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SHSSDK.dll; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SP-Console.exe; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: LGU\SP-Console.ini; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: _public\SP-Console.xml; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SPCTran.exe; DestDir: {app}; Flags: ignoreversion; Permissions: users-full Source: ../_Bin/SPConsole/release_LGU\SP-Updater.exe; DestDir: {app}; Flags: ignoreversion; Permissions: users-full ; NOTE: Don't use "Flags: ignoreversion" on any shared system files Source: _public\PTxSCP.ocx; DestDir: {sys}; Flags: regserver ignoreversion; Permissions: users-full; Tasks: ; Languages: Source: _public\PTxSCP.lic; DestDir: {sys}; Flags: ignoreversion Source: _public\PTxSCP.oca; DestDir: {sys}; Flags: ignoreversion [Icons] Name: {group}\sp-console; Filename: {app}\SP-Console.exe Name: {group}\{cm:UninstallProgram,sp-console}; Filename: {uninstallexe} Name: {commondesktop}\sp-console; Filename: {app}\SP-Console.exe; Tasks: desktopicon Name: {commonstartmenu}\sp-console; Filename: {app}\SP-Console.exe; Tasks: startupicon [code] function check_vcredist_x86(): Boolean; begin Result := true; // Check for required vcredist_x86 installation // if (RegKeyExists(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{887868A2-D6DE-3255-AA92-AA0B5A59B874}')) then begin if (RegKeyExists(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}')) then begin // Á¸ÀçÇÏ´Â °æ¿ì Result := true; end else begin // Á¸Àç ÇÏÁö ¾Ê´Â °æ¿ì //MsgBox('SP-Console°ú ȣȯÀÌ ÇÊ¿äÇÑ VC++ 2008 Àç¹èÆ÷ ÆÐŰÁö°¡ ¼³Ä¡µÇ¾î ÀÖÁö¾Ê¾Æ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù. ', mbInformation, MB_OK); MsgBox('SP-Console°ú ȣȯÀÌ ÇÊ¿äÇÑ VC++ 2010 SP1 Àç¹èÆ÷ ÆÐŰÁö°¡ ¼³Ä¡µÇ¾î ÀÖÁö¾Ê¾Æ ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù. ', mbInformation, MB_OK); Result := false; end; end; function VCRedistNeedsInstall: Boolean; begin // here the Result must be True when you need to install your VCRedist // or False when you don't need to, so now it's upon you how you build // this statement, the following won't install your VC redist only when // the Visual C++ 2010 Redist (x86) and Visual C++ 2010 SP1 Redist(x86) // are installed for the current user Result := not (check_vcredist_x86()); end; [Run] ; Filename: {tmp}\vcredist_x86_vs2010_sp1.exe; Check: VCRedistNeedsInstall Filename: {app}\SP-Console.exe; Description: {cm:LaunchProgram,sp-console}; Flags: nowait postinstall skipifsilent [UninstallDelete] Name: {app}\update; Type: filesandordirs