![]() |
Make an onchange for wizardform.diredit to update changes.
How to do one, Code:
procedure DirEditOnChange(Sender: TObject);Code:
Function NumToStr(Float: Extended): String; |
Razor 12911 decimal solved but I am not getting the location to install you could put in my script how
Quote:
|
oops, forgot something.
procedure DirEditOnChange(Sender: TObject); var Page: TWizardPage; lbl: TLabel; Path: String; FreeMB, TotalMB: Cardinal; begin Path := WizardForm.DirEdit.Text; GetSpaceOnDisk(Path, True, FreeMB, TotalMB); Page := PageFromID(wpSelectDir); lbl := TLabel.Create(Page); lbl.Width := ScaleX(105); lbl.Height := ScaleY(43); lbl.Caption := ExpandConstant('Espaço total do disco : ') + MbOrTb(TotalMB); lbl.Left := 0; lbl.Top := 155; lbl.Parent := Page.Surface; lbl := TLabel.Create(Page); lbl.Width := ScaleX(75); lbl.Height := ScaleY(23); lbl.Caption := ExpandConstant('Espaço em disco disponível: ') + MbOrTb(FreeMB) + ' (' + IntToStr((FreeMB * 100) div TotalMB) + '%)'; lbl.Left := 0; lbl.Top := 175; lbl.Parent := Page.Surface; lbl := TLabel.Create(Page); lbl.Width := ScaleX(75); lbl.Height := ScaleY(23); lbl.Caption := ExpandConstant('Espaço do Game : ') + MbOrTb(24000); lbl.Left := 0; lbl.Top := 195; lbl.Parent := Page.Surface; end; WizardForm.DirEdit.OnChange:= @DirEditOnChange; |
Thanks Razor12911 I tried many ways but failed error when compiling (Line 19 Identifier expected) inno setup 5.5.2 unicode
[Code] Function NumToStr(Float: Extended): String; Begin Result:= Format('%.2n', [Float]); StringChange(Result, ',', ','); while ((Result[Length(Result)] = '0') or (Result[Length(Result)] = ',')) and (Pos(',', Result) > 0) do SetLength(Result, Length(Result)-1); End; function MbOrTb(Float: Extended): String; begin if Float < 1024 then Result:= NumToStr(Float)+' '+ 'MB'else if Float/1024 < 1024 then Result:= NumToStr(Float/1024)+' '+'GB' else Result:= NumToStr(Float/(1024*1024))+' '+'TB'; end; procedure InitializeWizard3(); begin procedure DirEditOnChange(Sender: TObject); var Path: String; Page: TWizardPage; lbl: TLabel; FreeMB, TotalMB: Cardinal; begin Path := WizardForm.DirEdit.Text; GetSpaceOnDisk(Path, True, FreeMB, TotalMB); Page := PageFromID(wpSelectDir); lbl := TLabel.Create(Page); lbl.Width := ScaleX(105); lbl.Height := ScaleY(43); lbl.Caption := ExpandConstant('Espaço total do disco : ') + MbOrTb(TotalMB); lbl.Left := 0; lbl.Top := 155; lbl.Parent := Page.Surface; lbl := TLabel.Create(Page); lbl.Width := ScaleX(75); lbl.Height := ScaleY(23); lbl.Caption := ExpandConstant('Espaço em disco disponível: ') + MbOrTb(FreeMB) + ' (' + IntToStr((FreeMB * 100) div TotalMB) + '%)'; lbl.Left := 0; lbl.Top := 175; lbl.Parent := Page.Surface; lbl := TLabel.Create(Page); lbl.Width := ScaleX(75); lbl.Height := ScaleY(23); lbl.Caption := ExpandConstant('Espaço do Game : ') + MbOrTb(24000); lbl.Left := 0; lbl.Top := 195; lbl.Parent := Page.Surface; end; WizardForm.DirEdit.OnChange:= @DirEditOnChange; procedure InitializeWizard(); begin InitializeWizard1(); InitializeWizard2(); InitializeWizard3(); end; |
[QUOTE=Razor12911;419320]I think you can certify Inno Setup as Portable, I mean, all it does is extracts Files.
you are right about this point. Well i was trying to find out a way where i dont have to install the game or application in pf or any other directory ( natural way of innoset up). i want to extract the file in directory (anyone and anywhere) and play that game or run application from there. sorry for being so troublesome..... :D |
hi all i neeed isdone i how to use it thnx
|
To Razor12911 thanks for your help and patience is now "solved"
A hug even more. |
What is the problem? I used compact mode. Then finished resize installer and I see this. http://i41.tinypic.com/30lmnpv.png
http://i41.tinypic.com/30lmnpv.png It's extraction files... caption. How I disable it in Finished page? Code:
procedure CompactCheckBoxClick(Sender: TObject);Code:
if CurPageID=wpFinished then beginFIXED. I deleted all Code:
Filenamelabel.Parent:=WizardForm; |
Help how do I show page is only wpSelectTasks and also add Surface
[CODE] Code:
var |
Hello,
Is it possible to set the compatibility mode of game .exe to Windows XP using inno automatically? |
look in inno help> [Setup]: TerminalServicesAware
you can set that there for the games EXE |
4 Attachment(s)
R.G.Catalyst Inno Setup Script
Preview |
Is it the official one or it's a rip/your work?
|
the original one.
|
Do you have RG Mechanics script?
|
| All times are GMT -7. The time now is 05:39. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com