Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2017, 15:22
nizcoz nizcoz is offline
Registered User
 
Join Date: Apr 2016
Location: argentina
Posts: 53
Thanks: 2
Thanked 1 Time in 1 Post
nizcoz is on a distinguished road
@pakrat2k2 or @Bulat Can you give me an example of use of facompress.dll and fazip.exe? (ISDone). Please, thanks.
Reply With Quote
Sponsored Links
  #2  
Old 12-06-2017, 13:34
johnnyusa johnnyusa is offline
Registered User
 
Join Date: Oct 2011
Location: Romania
Posts: 20
Thanks: 4
Thanked 1 Time in 1 Post
johnnyusa is on a distinguished road
Luis, Delphi 9 is fully compatible with unicode, that's why your script is working properly, you can try to compile Inno Unicode with Delphi 2009, worked for me. Also you can dll your functions in Delphi 2009 and should work fine in Inno.

Now a question, is there a way to get Inno Setup Extended Edition sorce code? I'd like to compile my own Inno with a different DiskID.
Reply With Quote
  #3  
Old 22-07-2017, 04:28
Danziel123 Danziel123 is offline
Registered User
 
Join Date: Mar 2013
Location: Surabaya
Posts: 1,334
Thanks: 1,213
Thanked 813 Times in 699 Posts
Danziel123 is on a distinguished road
How to make 2 or more icon in inno setup?
Reply With Quote
  #4  
Old 23-07-2017, 08:16
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
Quote:
Originally Posted by Danziel123 View Post
How to make 2 or more icon in inno setup?
try:

[Icons]
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"; Components: main; Tasks: startmenu
Name: "{group}\My Program Help"; Filename: "{app}\MyProg.chm"; Components: help; Tasks: startmenu
Name: "{commondesktop}\My Program"; Filename: "{app}\MyProg.exe"; Components

or in INNO > HELP > documentation, search for icon, for more info.
Reply With Quote
  #5  
Old 24-07-2017, 02:57
seventhorama seventhorama is offline
Registered User
 
Join Date: Jul 2011
Location: outer space
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
seventhorama is on a distinguished road
i need some help in modifying xml using innosetup

Code:
<?xml version="1.0"?>
<Settings>
  <Setting type="10" key="DownloadInPlaceDir" value="D:\Games\My Games"/>
  <Setting type="10" key="LastUsernameToLoginProd" value="fb2076434038419fa915a7c07bc4768f2b847bd600b9482d440f1ced341a48c64654c4fdec3f57a7b1b35d4913675d33d8c7793691b0ff84caaf6815ee873f91964e2fe64cbf4683"/>
  <Setting type="10" key="RememberMeProd" value="1b07700a38e33470"/>
  <Setting type="10" key="RememberMeUserIdProd" value="1b07700a38e33470"/>
  <Setting type="10" key="TFAIdProd" value="1b07700a38e33470"/>
</Settings>
can i modify D:\Games\My Games into parent dir (not app dir)?

i have tried this script but no luck yet...

Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
  UnicodeStr: string;
  ANSIStr: AnsiString;
begin
  if (CurStep = ssPostInstall) then
  begin
  LoadStringFromFile(ExpandConstant('{src}\apps.xml'), ANSIStr)
  UnicodeStr := String(ANSIStr);
  StringChangeEx(UnicodeStr, 'DownloadInPlaceDir', ExpandConstant('{src}'), False)
  SaveStringToFile(ExpandConstant('{src}\apps.xml'), AnsiString(UnicodeStr), False);
  end;
end;
Reply With Quote
  #6  
Old 11-08-2017, 22:24
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Need some help.

Code:
function InitializeSetup(): Boolean;
begin
    if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
      LoadSkin(ExpandConstant('{tmp}\Setup.cjstyles'), '');
      Result := True;
    end;
    if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
      LoadVCLStyle(ExpandConstant('{tmp}\Setup.vsf'));
      Result := True;
    end;
end;


procedure DeinitializeSetup();
begin
  if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
    UnloadSkin();
  end;
  if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
    UnLoadVCLStyles;
  end;
end;
Setup.exe don't start, it just closes.

Maybe i am blind and don't see the mistake

Edit: Ok after a cup of coffee i just found my mistake.

Result := True was missing in InitializeSetup
__________________
Haters gonna hate

Last edited by KaktoR; 11-08-2017 at 22:28.
Reply With Quote
  #7  
Old 21-08-2017, 09:11
-NORO- -NORO- is offline
Registered User
 
Join Date: May 2017
Location: France
Posts: 42
Thanks: 44
Thanked 12 Times in 11 Posts
-NORO- is on a distinguished road
Question

fixed !

Last edited by -NORO-; 22-08-2017 at 13:55.
Reply With Quote
The Following User Says Thank You to -NORO- For This Useful Post:
EzzEldin16 (21-08-2017)
  #8  
Old 21-08-2017, 10:17
Chayan Manna's Avatar
Chayan Manna Chayan Manna is offline
Registered User
 
Join Date: Jun 2016
Location: India
Posts: 82
Thanks: 89
Thanked 114 Times in 37 Posts
Chayan Manna is on a distinguished road
Quote:
Originally Posted by -NORO- View Post
Hello
Am trying to add a customform. To make short once you click on System Tile
that page opens.
I suceeded to make it but once open it just freezes and not moving.



Here the code
You must write a code of "mousedown" for the custom form.
Reply With Quote
  #9  
Old 21-08-2017, 10:25
-NORO- -NORO- is offline
Registered User
 
Join Date: May 2017
Location: France
Posts: 42
Thanks: 44
Thanked 12 Times in 11 Posts
-NORO- is on a distinguished road
Smile

Quote:
Originally Posted by Chayan Manna View Post
You must write a code of "mousedown" for the custom form.
Nevermind , fixed
Thank you JRD!

Last edited by -NORO-; 21-08-2017 at 16:34.
Reply With Quote
  #10  
Old 21-08-2017, 10:36
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
Quote:
Originally Posted by Chayan Manna View Post
You must write a code of "mousedown" for the custom form.
Quote:
-NORO-
he is asking for form's mouse drag functionality. This is what happens when you copy the code, doesn't know what is really the purpose behind, conjectures is all you got and foul perceptions
Reply With Quote
  #11  
Old 21-08-2017, 21:09
Chayan Manna's Avatar
Chayan Manna Chayan Manna is offline
Registered User
 
Join Date: Jun 2016
Location: India
Posts: 82
Thanks: 89
Thanked 114 Times in 37 Posts
Chayan Manna is on a distinguished road
Quote:
Originally Posted by PrinceGupta2000 View Post
he is asking for form's mouse drag functionality. This is what happens when you copy the code, doesn't know what is really the purpose behind, conjectures is all you got and foul perceptions
That's the thing I have said him. I made the reply from my phone so, that's why I have not wrote the full code. I know all the purpose of the code.
The procedure "onmousedown" is a fixed property of a label in a custom form in which one have to add the mouse drag procedure. like this,
OnMouseDown:=@INFOMouseDown;
And the "INFOMouseDown" procedure is the mouse drag procedure which can be like this,
procedure INFOMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(InfoForm.Handle,$0112,$F012,0);
end;

And one thing, you have cracked my mod, so You can see there is more things than coping a code. No one can make such type of mod by just only coping the codes.

Last edited by Chayan Manna; 21-08-2017 at 21:17.
Reply With Quote
  #12  
Old 22-08-2017, 02:32
-NORO- -NORO- is offline
Registered User
 
Join Date: May 2017
Location: France
Posts: 42
Thanks: 44
Thanked 12 Times in 11 Posts
-NORO- is on a distinguished road
Quote:
Originally Posted by Chayan Manna View Post
That's the thing I have said him. I made the reply from my phone so, that's why I have not wrote the full code. I know all the purpose of the code.
The procedure "onmousedown" is a fixed property of a label in a custom form in which one have to add the mouse drag procedure. like this,
OnMouseDown:=@INFOMouseDown;
And the "INFOMouseDown" procedure is the mouse drag procedure which can be like this,
procedure INFOMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(InfoForm.Handle,$0112,$F012,0);
end;

And one thing, you have cracked my mod, so You can see there is more things than coping a code. No one can make such type of mod by just only coping the codes.
That wasnt the problem
Reply With Quote
  #13  
Old 22-08-2017, 12:43
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Anyone knows how to draw shadow on text TLabel?

Google comes up with nothing.
__________________
Haters gonna hate
Reply With Quote
  #14  
Old 23-08-2017, 05:17
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
yener had used A dummy label to use as shadows.
jst top and left property be +1 else everything is same

Code:
procedure UpdateShadow(var Current, Shadow :TLabel);
begin
  if Shadow = nil then
    Shadow := TLabel.Create(WizardForm);
  if Current.Visible and (ShadowTXT >= 0) then begin
    with Shadow do begin
      Caption := Current.Caption;
      Alignment := Current.Alignment;
      AutoSize := Current.Autosize;
      Transparent := Current.Transparent;
      WordWrap := Current.Wordwrap;
      Parent := Current.Parent;
      OnClick := Current.OnClick;
      OnDblClick := Current.OnDblClick;
      OnMouseDown := Current.OnMouseDown;
      OnMouseMove := Current.OnMouseMove;
      OnMouseUp := Current.OnMouseUp;
      Font.Color := ShadowTXT;  
      Font.Size := Current.Font.Size;
      Font.Name := Current.Font.Name;
      Font.Style := Current.Font.Style;
      Visible := Current.Visible;
      Height := Current.Height;
      Width := Current.Width;
      Left := Current.Left + 1;
      Top := Current.Top + 1;
      SendToBack;
    end;
  end else
    Shadow.Hide;
end;
or
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Reply With Quote
The Following 3 Users Say Thank You to Gupta For This Useful Post:
Chayan Manna (27-09-2017), KaktoR (23-08-2017), Kobi Blade (23-08-2017)
  #15  
Old 24-08-2017, 07:17
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Code:
procedure CurPageChanged(CurPageID: integer);
  begin
  case CurPageID of
    wpInstalling: begin
      WizardForm.ClientHeight := (180);
      WizardForm.ClientWidth := (497);
      WizardForm.CancelButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(412), ScaleY(327));
...
...
I'm not able to move Cancel button on installing page. Anyone knows why?

Also, BackButton just disappears with this

Code:
wpSelectDir: begin
      WizardForm.NextButton.Caption := 'Install';
      WizardForm.BackButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(242), ScaleY(227));
I have to define these buttons seperatly? I just thought because there are already in "InnoSetup Support" tab.
__________________
Haters gonna hate

Last edited by KaktoR; 24-08-2017 at 07:19.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 21:44.


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