Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Пользователь


Сообщения: 144
Благодарности: 3

Профиль | Отправить PM | Цитировать


saurn, Конечно !
Код: Выделить весь код
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=example1
Compression=lzma
SolidCompression=true
CreateAppDir=true
ShowLanguageDialog=yes

[Languages]
Name: english; MessagesFile: compiler:Default.isl

#include ReadReg(HKEY_LOCAL_MACHINE,'Software\Sherlock Software\InnoTools\Downloader','ScriptPath','');

[_Code]
#ifdef UNICODE
 type
  PChar = PAnsiChar;
#endif

const
 MOVEFILE_REPLACE_EXISTING = 1;

function MoveFileEx(lpExistingFileName, lpNewFileName: PChar; dwFlags: DWORD): BOOL;
 external 'MoveFileExA@kernel32.dll stdcall';

procedure InitializeWizard();
begin
 itd_init;
 itd_addfile('http://sayt.ru/1.rar',expandconstant('{src}\1.rar'));
 itd_downloadafter(wpReady);
end;

procedure CurStepChanged(CurStep: TSetupStep);
begin
 case CurStep of
   ssInstall: MoveFileEx(ExpandConstant('{src}\1.rar'), ExpandConstant('{app}\1.rar'), MOVEFILE_REPLACE_EXISTING);
 end;
end;

Отправлено: 13:55, 13-05-2013 | #427