Innosetup Code 문법
http://www.mirality.co.nz/inno/tips.php?printable=1 요기 링크에 있다.
사라질걸 염려해서 파일로도 남겨둔다.
Download<--요기
Innosetup Code 문법
http://www.mirality.co.nz/inno/tips.php?printable=1 요기 링크에 있다.
사라질걸 염려해서 파일로도 남겨둔다.
Download<--요기
[run], [file] 항목등 에서 check:fileCheck 를 추가한 후
[Code] 에 함수를 추가해서 사용하면 가능하다.
function Filecheck(): boolean;
begin
if FileExists(ExpandConstant('C:\Runtimes\en_.net_framework_4_full_x86_x64_508940.exe')) then
begin
result :=False
end;
end;
[Files]
Source: aaa.txt; DestDir: c:\; Check : Patch(1);
;Patch(1)을 만족하면 aaa.txt 란 파일을 c:\ 에 설치 합니다.
[Code]
function Patch (Get:integer):Boolean;
begin
case get of
1: result:=RadioButton1.checked;
2: result:=CheckBox1.checked;
3: result:=(RadioButton1.checked) and (CheckBox1.checked);
end;
end;
// 위와 같이 함수를 만들어 줌으로써 체크박스나 라디오버튼이 동작되었을때를 지정해 줄 수 있습니다.
[출처] Inno Setup GUI로 만든 버튼 동작방법|작성자 곤냥이