![]() |
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?
|
yep. I do have it.
|
Awesome, attach it please :D
|
Searched forum and found this
Link |
2 Attachment(s)
Filetest Run
Now I know this is meaningless post but helps out people dealing with scripts. I compressed a file which is pretty much deflated. Users can use this archive to test out their compression methods and etc and it saves time to apply precomp and etc. the original file size is 440mb but I manage to drop it down to 318kb:eek::eek::eek: If games were like this it would have been awesome. compress max payne 3 from 35gb to 765kb. Try it. |
I saw a Windows XP iso once compressed to 2m.b file only.
Where is RG Mechanics script? |
Quote:
There. |
How do i transparent WizardForm.FilenameLabel
or how do i get WizardForm.FilenameLabel.Caption to another label? |
how to compress vp6 videos
or to resambled those videos |
Quote:
use RAD Video Tools to resample |
Quote:
|
1 Attachment(s)
Friends is possible to change the image of the top of the 55x55 pages for a complete picture but leaving the letters over the image example
|
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
|
Quote:
If it is not abusing you too much to make a script to change the image of the page finalize the installation to get image different page welcome.o same size only to put another image on the page finish if possible thanks |
1 Attachment(s)
Quote:
|
Quote:
Perfect extamente I wanted this same «resolved» |
2 Attachment(s)
Quote:
has a sample image |
Hey Flieforum users
Can someone help me with freearc and unarc.dll It seems like unarc.dll(295kb) and unarc.dll(317kb) have different functions and unarc.dll(317kb) is the latest either than unarc.dll(320kb) therefore, I'd like to know which one to use if I'm using Freearc 0.67 Alpha December 12, 2012. because the one which works is unarc.dll(295kb) which is kinda of outdated. Note: I use freearc.exe to compress and not arc.exe. Thanks. |
no one an answer for me
how can i insert hompage and browse button in autorunscript thanks for help me |
Greetings Guys,
During installation progress , i want to add time (eg. 14 minutes and 30 seconds remaning), name of the file being extracted and some line (eg. please wait while setup install the game/app on your system).. is it possible? if yes... Please tell me how? thanks in advance |
Friends I am trying to put a warning on the page selecttasks page but I can not see the prompt script ex what is wrong
Code:
var |
no parent maybe.
remove this // //avisoLabel.Parent := WizardForm; to avisoLabel.Parent := WizardForm; |
how can i insert hompage and browse button
in autorunscript thanks for help me |
2 Attachment(s)
Hello.
I still have two little problem in my installer, if anybody know how to solve, i will appreciate the help: 1) Make rounded corners. Attachment 6710 2) A scrip to make a progress bar with image PNG. Attachment 6711 Regards. |
| All times are GMT -7. The time now is 07:38. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com