Автор: Edison007007
Дата сообщения: 01.06.2011 21:41
vintage 1
Ну о каком смысле ты говоришь?
1. Инсталл не кликлекабелен.
2. Есть IsDone, IsExec, тотже самый ExecAndWait, хотя и работает криво.
3. Скрипт писался 15 минут [more]
Код: [Setup]
AppName=IsEXEextract
AppVersion=0.9 Alpha
DefaultDirName={pf}\IsEXEextract 0.9 Alpha
OutputDir=.
Uninstallable=no
[Files]
Source: Files\arc.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\rar.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\precomp.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\packjpg_dll.dll; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\zlib1.dll; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\7z.dll; DestDir: {app}; Flags: deleteAfterInstall
Source: Files\7z.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\srep.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\srep32.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\srep64.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\tak.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\oggdec.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\PAQ.exe; DestDir: {app}; Flags: deleteAfterInstall
;Source: Files\Rep.exe; DestDir: {app}; Flags: deleteAfterInstall
Source: Files\sbc.exe; DestDir: {app}; Flags: deleteAfterInstall
[Code]
var
Progressbar2: TNewProgressbar;
N: integer;
procedure CurStepChanged(CurStep: TSetupStep);
begin
case CurStep of
ssPostInstall: begin //Не изменять!!!
Exec(ExpandConstant('{app}\Arc.exe'), 'x '+AddQuotes(ExpandConstant('{src}\data-a.bin'))+' -y -dp'+AddQuotes(ExpandConstant('{app}')), '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}')+'\7z.exe', 'x "'+ ExpandConstant('{src}')+'\data-f.bin' + '" -y -o"'+ ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\sbc.exe'), 'x data-f.bin', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\srep.exe'), '-d '+AddQuotes(ExpandConstant('{app}\Data.srep'))+' '+AddQuotes(ExpandConstant('{app}\data.7z')), '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\precomp.exe'), '-r data.pcf', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}')+'\7z.exe', 'x "'+ ExpandConstant('{app}')+'\data.7z' + '" -y -o"'+ ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}')+'\7z.exe', 'x "'+ ExpandConstant('{app}')+'\data.zip' + '" -y -o"'+ ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}')+'\7z.exe', 'x "'+ ExpandConstant('{app}')+'\data.tar' + '" -y -o"'+ ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\rar.exe'), 'x '+AddQuotes(ExpandConstant('{src}\setup.rar'))+' '+AddQuotes(ExpandConstant('{app}')), '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\tak.exe'), '-d data.tak', '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\oggdec.exe'), '-Q '+AddQuotes(ExpandConstant('{app}\data.ogg'))+' '+AddQuotes(ExpandConstant('{app}')), '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\rep.exe'), '-d '+AddQuotes(ExpandConstant('{app}\data.rep'))+' '+AddQuotes(ExpandConstant('{app}\data.7z')), '', SW_HIDE, ewWaitUntilTerminated, n);
Exec(ExpandConstant('{app}\PAQ.exe'), '-d data.paq8l', '', SW_HIDE, ewWaitUntilTerminated, n);
end;
end;
end;