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 08-02-2018, 13:45
Sebazz Sebazz is offline
Registered User
 
Join Date: Mar 2016
Location: Terra
Posts: 60
Thanks: 24
Thanked 7 Times in 6 Posts
Sebazz is on a distinguished road
Please i need help. How to add Minimize and Exit Buttons ?. Thanks
Reply With Quote
Sponsored Links
  #2  
Old 09-02-2018, 00:45
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Code:
//---> Directive
#define ExitButtonLeft = "765"
#define ExitButtonTop = "10"
#define MinimizeButtonLeft = "735"

//End

//---> Files
Source: Resources\MinimizePng.png; DestDir: {tmp}; Flags: dontcopy;
Source: Resources\ExitPng.png; DestDir: {tmp}; Flags: dontcopy;
//End

//---> Code
var
  ExitBtn,MinimizeBtn: HWND;
//End

//---> InitializeSetup
ExtractTemporaryFile('MinimizePng.png');
ExtractTemporaryFile('ExitPng.png');
//End

procedure MinimizeBtnClick(hBtn:HWND);
begin
  SendMessage(WizardForm.Handle,$112,61472,0);
end;

procedure CloseBtnClick(hBtn:HWND);
begin
  WizardForm.CancelButton.Click;
end;

//---> InitializeWizard
ExitBtn:=BtnCreate(WizardForm.Handle,{#ExitButtonLeft},{#ExitButtonTop},23,23,ExpandConstant('{tmp}')+'\ExitPng.png',0,False);
BtnSetEvent(ExitBtn,BtnClickEventID,WrapBtnCallback(@CloseBtnClick,1));
BtnSetCursor(ExitBtn,GetSysCursorHandle(32649));

MinimizeBtn:=BtnCreate(WizardForm.Handle,{#MinimizeButtonLeft},{#ExitButtonTop},23,23,ExpandConstant('{tmp}')+'\MinimizePng.png',0,False);
BtnSetEvent(MinimizeBtn,BtnClickEventID,WrapBtnCallback(@MinimizeBtnClick,1));
BtnSetCursor(MinimizeBtn,GetSysCursorHandle(32649));
//End
__________________
if you understand read more

Last edited by rinaldo; 09-02-2018 at 00:57.
Reply With Quote
The Following 4 Users Say Thank You to rinaldo For This Useful Post:
pakrat2k2 (09-02-2018), PsYcHo_RaGE (19-03-2018), Sebazz (10-02-2018), Simorq (09-02-2018)
  #3  
Old 18-02-2018, 00:53
ZakirAhmad ZakirAhmad is offline
Registered User
 
Join Date: Sep 2015
Location: Kmr
Posts: 290
Thanks: 56
Thanked 58 Times in 37 Posts
ZakirAhmad is on a distinguished road
is it possible to use percentage instead of ram usage in mb in srepint('', 256,0) function of isdone.
Reply With Quote
  #4  
Old 02-03-2018, 01:37
PsYcHo_RaGE's Avatar
PsYcHo_RaGE PsYcHo_RaGE is offline
Registered User
 
Join Date: Mar 2018
Location: DarckSide
Posts: 238
Thanks: 193
Thanked 160 Times in 78 Posts
PsYcHo_RaGE is on a distinguished road
just downloaded

tried to compile

got this bloody error

Line 349:
Column 8:
Unknown Type 'TTimer'
Reply With Quote
  #5  
Old 02-03-2018, 01:41
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,338 Times in 2,839 Posts
KaktoR is on a distinguished road
Use Inno Unicode Enhanced Edition
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
PsYcHo_RaGE (19-03-2018)
  #6  
Old 02-03-2018, 07:20
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 KaktoR View Post
Use Inno Unicode Enhanced Edition
which you find in first post of topic
http://www.fileforums.com/showthread.php?t=96619
Reply With Quote
The Following User Says Thank You to pakrat2k2 For This Useful Post:
PsYcHo_RaGE (19-03-2018)
  #7  
Old 14-03-2018, 12:01
mahbodsx mahbodsx is offline
Registered User
 
Join Date: Sep 2017
Location: IR_KRJ
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
mahbodsx is on a distinguished road
Sorry guys which Script Use Pzlib
Reply With Quote
  #8  
Old 14-03-2018, 16:21
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Quote:
Originally Posted by mahbodsx View Post
Sorry guys which Script Use Pzlib
this
__________________
if you understand read more
Reply With Quote
The Following User Says Thank You to rinaldo For This Useful Post:
mahbodsx (03-08-2018)
  #9  
Old 19-03-2018, 22:03
PsYcHo_RaGE's Avatar
PsYcHo_RaGE PsYcHo_RaGE is offline
Registered User
 
Join Date: Mar 2018
Location: DarckSide
Posts: 238
Thanks: 193
Thanked 160 Times in 78 Posts
PsYcHo_RaGE is on a distinguished road
Question

Quote:
Originally Posted by Razor12911 View Post
Windows Phone Installer v3.1

-Inno Setup Enhanced Edition 2 Unicode is required - Download
-Design based on Windows 8.1, Windows Phone 7.5, 7.8 and 8
-Enjoy

Link of WPI based on FMX:
http://fileforums.com/showthread.php?t=99856

Thank you very much for this installer i appreciate your hard work
but i need some help with music how to add it, and when we install something with this installer it always goes to lockscreen again; i want lockscreen but only for one time when we run the installer, and also how t add the fonts to installer so that they work if i don't have these fonts installed on my pc


and if you're going to help me please explain it well because i am still a noob
and i don't want to mess with your installer

Last edited by PsYcHo_RaGE; 19-03-2018 at 22:30.
Reply With Quote
  #10  
Old 16-04-2018, 13:43
bunti_o4u's Avatar
bunti_o4u bunti_o4u is offline
Registered User
 
Join Date: Aug 2017
Location: India
Posts: 162
Thanks: 29
Thanked 172 Times in 61 Posts
bunti_o4u is on a distinguished road
I tried to create new page between welcome page and select directory page but no new page is getting created in the installer.

procedure CurPageChanged(CurPageID: Integer);

wpLicense:
begin
ButtonSetText(NextBtn,'Proceed');
ButtonSetText(BackBtn1,'Back');
end;

function ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID <> wpWelcome) and (PageID <> wpLicense) and (PageID <> wpSelectDir) and (PageID <> wpInstalling) and (PageID <> wpFinished) then
Result:=True
else
Result:=False;
if (ISDoneError = True) and (PageID = wpFinished) then
Result:=True;
end;
Reply With Quote
  #11  
Old 17-04-2018, 01:21
ffmla ffmla is offline
Registered User
 
Join Date: Nov 2014
Location: Digital world
Posts: 112
Thanks: 609
Thanked 65 Times in 41 Posts
ffmla is on a distinguished road
Quote:
Originally Posted by bunti_o4u View Post
I tried to create new page between welcome page and select directory page but no new page is getting created in the installer.

procedure CurPageChanged(CurPageID: Integer);

wpLicense:
begin
ButtonSetText(NextBtn,'Proceed');
ButtonSetText(BackBtn1,'Back');
end;

function ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID =wpLicense)or(PageID =wpInfoBefore)or(PageID =wpUserInfo)or(PageID =wpSelectComponents)or(PageID =wpSelectProgramGroup)or(PageID =wpSelectTasks)or(PageID =wpReady)then
Result:= True;
end;
You may test this.
In function ShouldSkipPage(PageID: Integer): Boolean; function you need to mention which page you want to hide.
ie. You use wpLicense page,then remove it from hide function.
Quote:
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID =wpInfoBefore)or(PageID =wpUserInfo)or(PageID =wpSelectComponents)or(PageID =wpSelectProgramGroup)or(PageID =wpSelectTasks)or(PageID =wpReady)then
Result:= True;
end;
Reply With Quote
  #12  
Old 28-05-2018, 23:48
PsYcHo_RaGE's Avatar
PsYcHo_RaGE PsYcHo_RaGE is offline
Registered User
 
Join Date: Mar 2018
Location: DarckSide
Posts: 238
Thanks: 193
Thanked 160 Times in 78 Posts
PsYcHo_RaGE is on a distinguished road
Change Logs Ver 3.1

* Added Installation Bar called winTB
* Added Music, Button, Position
* Added Pause & Resume Buttons
* Added ESplash & NSplash (Are you confused what are they?)
* Added Lockscreen switch
* Added Font - Even you don't have it installed
* Added Video Mechanism
* Added more colors at least 63 Colors
* Added Innocallback to control video and music seperately
* Added Exit & Minimize Button instead of Labels
* Added Extraction process ouside by using Archives.ini Instead of using internal
* Added Rollback while cancelling the installion process(actually fixed it)
* Added round edges (thanks to jiva Newstone)
* Added More which i forget!

Upcoming mod will be with more functions

Oh one thing more i changed the name from WPI to RPI; sorry @Razor12911 but if you want i can change it to RWPI also
and about your watermark its still there and will be always

Thanks for this great Thing @Razor12911

Last edited by PsYcHo_RaGE; 29-05-2018 at 22:46. Reason: Updated
Reply With Quote
The Following 2 Users Say Thank You to PsYcHo_RaGE For This Useful Post:
EzzEldin16 (04-06-2018), pakrat2k2 (29-05-2018)
  #13  
Old 08-06-2018, 02:04
ffmla ffmla is offline
Registered User
 
Join Date: Nov 2014
Location: Digital world
Posts: 112
Thanks: 609
Thanked 65 Times in 41 Posts
ffmla is on a distinguished road
Exclamation Button Refresh issue.

Hello everyone.
Is there any way to fix the button refresh issue in the Windows phone installer...?

For example:

While clicking close.
1.Close form showed.=ok
2.If we click No,=> then Close button keep active in the main form(Button not refreshed).

anyone help...
Reply With Quote
  #14  
Old 08-06-2018, 03:01
PsYcHo_RaGE's Avatar
PsYcHo_RaGE PsYcHo_RaGE is offline
Registered User
 
Join Date: Mar 2018
Location: DarckSide
Posts: 238
Thanks: 193
Thanked 160 Times in 78 Posts
PsYcHo_RaGE is on a distinguished road
Quote:
Originally Posted by ffmla View Post
Hello everyone.
Is there any way to fix the button refresh issue in the Windows phone installer...?

For example:

While clicking close.
1.Close form showed.=ok
2.If we click No,=> then Close button keep active in the main form(Button not refreshed).

anyone help...
Send me a screenshot of the error you are getting!!
__________________
“WE ALL GO A LITTLE MAD SOMETIMES”
Reply With Quote
  #15  
Old 08-06-2018, 03:22
ffmla ffmla is offline
Registered User
 
Join Date: Nov 2014
Location: Digital world
Posts: 112
Thanks: 609
Thanked 65 Times in 41 Posts
ffmla is on a distinguished road
Question

Sorry now I am far from PC..
I'll talk about button refresh... issue...

Already posted by some user.

http://fileforums.com/showpost.php?p...&postcount=573

See the above posted image in the URL.

When you click [About],[Close] button, respective forms shows.on that forms if you click close,then on main form repective buttons got Active not refreshed yet.

R u understand?
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
Conversion Designer/Installer Creator Razor12911 Conversion Tutorials 1613 03-10-2024 01:24
Windows XP - Tricks gargujjwal Software 3 25-05-2008 02:54
Error Windows Installer: Command And Conquer 3 Kane Edition glfsd PC Games 14 24-01-2008 06:00
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 20:22.


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