[BeforeInstall]
[Files]
Source: "MYPROG.EXE"; DestDir: "{app}"; BeforeInstall: MyBeforeInstall
Source: "A\MYFILE.TXT"; DestDir: "{app}"; BeforeInstall: MyBeforeInstall2('{app}\A\MYFILE.TXT')
[AfterInstall]
[Files]
Source: "MYPROG.EXE"; DestDir: "{app}"; AfterInstall: MyAfterInstall
Source: "A\MYFILE.TXT"; DestDir: "{app}"; AfterInstall: MyAfterInstall2('{app}\A\MYFILE.TXT')
[Code]
procedure MyBeforeInstall();
begin
MsgBox('About to install MyProg.exe as ' + CurrentFileName + '.', mbInformation, MB_OK);
end;
procedure MyBeforeInstall2(FileName: String);
begin
MsgBox('About to install ' + FileName + ' as ' + CurrentFileName + '.', mbInformation, MB_OK);
end;
procedure MyAfterInstall();
begin
MsgBox('Just installed MyProg.exe as ' + CurrentFileName + '.', mbInformation, MB_OK);
end;
procedure MyAfterInstall2(FileName: String);
begin
MsgBox('Just installed ' + FileName + ' as ' + CurrentFileName + '.', mbInformation, MB_OK);
end;
'삽질 > Delphi' 카테고리의 다른 글
[Delphi] InnoSetup : 설치 시 강제로 프로세스 죽이기 (0) | 2017.10.02 |
---|---|
[Delphi] Embeddedwb에서 Post로 보내기, User-Agent 보내기 (0) | 2016.10.18 |
[Delphi] InnoSetup : event 함수들 (0) | 2013.08.07 |
[Delphi] InnoSetup : 방화벽 추가 (0) | 2013.08.07 |
[Delphi] InnoSetup : 설치/제거 할 때 프로그램 종료하기 (0) | 2013.08.07 |
댓글