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 01-09-2016, 09:18
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 102
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Add icon ready page

Friends adding the menu icon in the start ready page

I do not know how to add the function UpdateReadyMemo

Could someone for an example of how to add

Example below as I use

IconCB := TNewCheckBox.Create(WizardForm);
with IconCB do begin
Parent := WizardForm.SelectTasksPage;
SetBounds(0,215,300,20);
Caption := ExpandConstant('{cm:CreateDesktopIcon}');
Checked:=True;
end;

imagem.jpg

Thank you
Reply With Quote
Sponsored Links
  #2  
Old 01-09-2016, 12:29
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
If you want just "Create a desktop icon" in the Ready Memo with your personal IconCB:
Code:
[Tasks]
//Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:Icons}";
Name: "groupicon"  ; Description: "{cm:CreateGroupIcon}";   GroupDescription: "{cm:Icons}";

[CustomMessages]
Icons=Icons:
CreateDesktopIcon=Create a desktop icon
CreateGroupIcon=Create a startmenu icon

[#Code]
var
  IconCB: TNewCheckBox;

function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo,
  MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String;
var
  S1, S2: String;
begin
  S1 := '';
  S2 := '';
  S1 := S1 + MemoDirInfo + NewLine + NewLine;
  if IconCB.Checked then
  S2 := #32#32#32#32#32#32#32#32#32+CustomMessage('CreateDesktopIcon');
  S1 := S1 + MemoTasksInfo + NewLine + S2 + NewLine;
  Result := S1;
end;
If you want show your personal IconCB in the memo add this code:

Code:
[#Code]
Procedure CurPageChanged(CurPageID: Integer);
begin
  if CurPageID = wpReady then IconCB.Show else IconCB.Hide;
end;
For IconCB creation:

Code:
Procedure InitializeWizard();
begin
  IconCB := TNewCheckBox.Create(WizardForm);
  with IconCB do
  begin
    Parent := WizardForm.ReadyMemo;
    SetBounds(25,150,150,15);
    Caption:=CustomMessage('CreateDesktopIcon');
    Checked:=True;
  end;
end;
I have not quite understood your request ...
Reply With Quote
The Following User Says Thank You to JRD! For This Useful Post:
buttignol (01-09-2016)
  #3  
Old 01-09-2016, 15:45
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 102
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Thank JRD! but it is to appear "Create an icon on the Desktop" on UpdateReadyMemo

Example: Image

Capturar3.jpg

Create an icon on the Desktop. together with Start Menu folder destination and additional tasks
Attached Files
File Type: rar Installer.rar (1.59 MB, 34 views)

Last edited by buttignol; 01-09-2016 at 16:06.
Reply With Quote
  #4  
Old 01-09-2016, 16:42
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
Just add:

Code:
[CustomMessages]
Icons=Icons:

[#Code]
function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo,
  MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String;
var
  S1, S2: String;
begin
  S1 := '';
  S2 := '';
  S1 := S1 + MemoDirInfo + NewLine + NewLine;
  if IconCB.Checked then
  S2 := #32#32#32#32#32#32+CustomMessage('Icons')+ NewLine + #32#32#32#32#32#32#32#32#32+CustomMessage('CreateDesktopIcon');
  S1 := S1 + MemoTasksInfo + NewLine + S2 + NewLine;
  Result := S1;
end;
Attached Files
File Type: rar Installer.rar (4.3 KB, 12 views)
Reply With Quote
  #5  
Old 01-09-2016, 16:45
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
Reply With Quote
  #6  
Old 01-09-2016, 16:57
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 102
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Resolved That's what I wanted

Thank JRD! for their work to help
Reply With Quote
  #7  
Old 01-09-2016, 17:03
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
You're welcome.
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
Transformers: Rise of the Dark Spark 2xDVD5 *GBB+srep+FreeArc lzma* ahmetbtmn PC Games - CD/DVD Conversions 6 02-07-2014 13:46
Anyone know why some PS2 games waste memorycard space needlessly? Cyber Akuma PS2 Games 8 09-11-2006 16:54
Icon is always the same _SpRoKaT_ CD/DVD Copy Protections & Utilities 1 04-07-2001 09:07
I have read page by page.... but 1 more question... thanks! Ryu1 DC Games 2 19-12-2000 09:04



All times are GMT -7. The time now is 14:49.


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