FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

y_thelastknight 21-01-2014 02:39

how to create a quick install button for normal installer.

altef_4 21-01-2014 03:16

Quote:

Originally Posted by y_thelastknight (Post 428449)
how to create a quick install button for normal installer.

try this
function shouldskippage(pageid: integer):boolean;
begin
case pageid of
wplicense,wppassword: //add or remove skiped pages
result:=true;
else result:=false;
end;
end;

y_thelastknight 21-01-2014 03:40

thanks. used like this :)

Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked=true then
    case pageid of
    wpSelectDir,wpSelectProgramGroup,wpReady: //add or remove skiped pages
    result:=true;
    else
    result:=false;
  end;
end;


altef_4 21-01-2014 05:04

Quote:

Originally Posted by y_thelastknight (Post 428453)
thanks. used like this :)

Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked=true then
    case pageid of
    wpSelectDir,wpSelectProgramGroup,wpReady: //add or remove skiped pages
    result:=true;
    else
    result:=false;
  end;
end;


little edit
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
  else result:=false;
end;


y_thelastknight 21-01-2014 06:08

http://www.mediafire.com/convkey/c5f....jpg?size_id=8

altef_4 21-01-2014 06:36

uuups, sorry little error, i think you already fix it yourself, but if no - hare edited code
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
    end
  else result:=false;
end;

i dont check but must work ;)

y_thelastknight 21-01-2014 06:49

Quote:

Originally Posted by altef_4 (Post 428457)
uuups, sorry little error, i think you already fix it yourself, but if no - hare edited code
Code:

function shouldskippage(pageid: integer):boolean;
begin
  If RadioButton1.Checked then
    case pageid of
      wpSelectDir,wpSelectProgramGroup,wpReady: result:=true;
    else
      result:=false;
    end
  else result:=false;
end;

i dont check but must work ;)

hehe works now. i use my old code before :p
thank Bro..

Logrim 21-01-2014 07:35

y_thelastknight, i dont know if this method is valid to you, but in mine work :D.

my installer have only welcome screen.. All i do its create a config button like this:

Quote:

procedure ConfigBtnClick(h: HWND);
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0002);
img2:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}\Directorio.png'),0,0,600,375,True,True);
ImgApplyChanges(WizardForm.Handle);
WizardForm.DirEdit.Show;
WizardForm.DirBrowseButton.Show;
CoderLabel.Show;
TaskLabel.Show;
DirLabel.Show;
WizardForm.DirEdit.Show;
DiskSpaceLablel.Show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Instalar';
WizardForm.DirBrowseButton.Show;
DiskSpaceLablel.Show;
ShortcutCB.Show;
CreateDLabel.Show;
DirectXCB.Visible:=ExpandConstant('{code:Redist1Na me}') <> '';
DirectXLabel.Visible:=ExpandConstant('{code:Redist 1Name}') <> '';
VisualCCB.Visible:=ExpandConstant('{code:Redist2Na me}') <> '';
VisualCLabel.Visible:=ExpandConstant('{code:Redist 2Name}') <> '';
NvidiaPhysxCB.Visible:=ExpandConstant('{code:Redis t3Name}') <> '';
NvidiaPhysxLabel.Visible:=ExpandConstant('{code:Re dist3Name}') <> '';
LiveCB.Visible:=ExpandConstant('{code:Redist4Name} ') <> '';
LiveLabel.Visible:=ExpandConstant('{code:Redist4Na me}') <> '';
CreateDLabel.Visible:=ExpandConstant('{code:GameEx e}') <> '';
ShortcutCB.Visible:=ExpandConstant('{code:GameExe} ') <> '';
ShortcutCB.Checked:= True;
GameNameLabel.Caption:='Directorio de instalación';
end;
Quote:

hConfigBtn:=BtnCreate(WizardForm.Handle,400,259,10 0,40,ExpandConstant('{tmp}\Button.png'),18,False);
BtnSetEvent(hConfigBtn,BtnClickEventID,WrapBtnCall back(@ConfigBtnClick,1));
BtnSetCursor(hConfigBtn,GetSysCursorHandle(32649)) ;
BtnSetText(hConfigBtn,'CONFIGURAR');
BtnSetFont(hConfigBtn,Font.Handle);
BtnSetFontColor(hConfigBtn,clGray,clSilver,clGray, clSilver);
And i have the quick install button wich is the next button, and custom config button :D

Without botva its the same, create config button and leave next how quick install..

i hope if its not valid to you, be valid for other..

y_thelastknight 21-01-2014 07:56

thanks logrim.

Logrim 21-01-2014 09:05

One question.. how can i call a custom form in a button?

y_thelastknight 21-01-2014 09:18

Quote:

Originally Posted by Logrim (Post 428463)
One question.. how can i call a custom form in a button?

can't understand it.

Logrim 21-01-2014 09:20

yup.. i try to explain :D. i create a custom form for task. i want to call it when I click "Task" button, created with botva. But i dont know how to call it.

y_thelastknight 21-01-2014 09:23

Quote:

Originally Posted by Logrim (Post 428465)
yup.. i try to explain :D. i create a custom form for task. i want to call it when I click "Task" button, created with botva. But i dont know how to call it.

did you add (formname).Showmodel; ???

Logrim 21-01-2014 09:28

mmm, no, i have another custom form for the search button, and i call it in initializeWizard with "CreateDirBrowseForm";

p.d. i forget to say.. i work with inno 5.5.4 not with innoultra

y_thelastknight 21-01-2014 09:44

Quote:

Originally Posted by Logrim (Post 428467)
mmm, no, i have another custom form for the search button, and i call it in initializeWizard with "CreateDirBrowseForm";

p.d. i forget to say.. i work with inno 5.5.4 not with innoultra


check your personal msg


All times are GMT -7. The time now is 04:10.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com