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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #916  
Old 20-10-2012, 07:20
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
Incredible yener90, just got a little time off, and you made ​​good progress ... CI 8.5.7.4 tested and approved!!!

thx
Sponsored Links
  #917  
Old 20-10-2012, 11:38
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
Back again with some questions yener, i suppose you didnt reply to my previous problem because you don't know the answer or my description was too vague.

Anyway, what im trying to do now, is to implement one password page in your awesome script. But it seems my scripting skills are sucky at the moment, but i have an excuse, im beginner.

Anyway, let's proceed with my problems:

The below code is in [SETUP]
Quote:
; Password setup
Encryption=false
Password=123456

#define EncryptPass
#define i Len(SetupSetting("Password"))
#for {i; i > 0; i--} EncryptPass = EncryptPass + Copy(SetupSetting("Password"), i, 1)
The below code is in [CODE]

Quote:
Function DecryptPass(Password: String): String;
var n: Integer;
Begin
for n:= Length(Password) Downto 1 do Result:= Result + Copy(Password, n, 1)
End;

Function CheckPassword(Password: String): Boolean;
Begin
Result:= (GetMD5OfString(Password) = DecryptPass('{#EncryptPass}'))
if not Result then exit;
PasswordText.Caption:= WizardForm.PasswordEdit.Text
WizardForm.PasswordEdit.Text:= DecryptPass('{#EncryptPass}')
PasswordText.Show
End;

Procedure PasswordEditOnKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
Begin
WizardForm.Nextbutton.Enabled:= CheckPassword(WizardForm.PasswordEdit.Text)
End;
This is the password page:

Quote:
////////////////////// PasswordPage //////////////////////

PasswordEditLabel := TLabel.Create(WizardForm);
with PasswordEditLabel do begin
AutoSize:=False;
Top:= TextPositionTop + 97 + MoveDirectoryInfo;
if Wizardform.RightToLeft then
Left := InstallerWidth - TextPositionWidth - TextPositionLeft + TextSpaceFromBorder + 7
else
Left:= TextPositionLeft + TextSpaceFromBorder + 7 ;
Width:= TextPositionWidth - 2* TextSpaceFromBorder - 14;
//SetBounds(ScaleX(127), ScaleY(308), ScaleX(446),16);
WordWrap:= True;
ShowAccelChar := False;
Transparent:=True;
Font.Name:= SetupFont;
Font.Size:= 10 + SetupFontSize;
Font.Color:=SetupFontColor;
//Font.Style:=[fsBold];
//Caption := MinimizePathName(WizardForm.PasswordEditLabel.Text , PasswordEditLabel.Font, PasswordEditLabel.Width);
//Caption:= WizardForm.PasswordEdit.Text;
Parent := WizardForm;
OnMouseMove:=@MainAreaMouseMove;
OnMouseDown:=@MainAreaMouseDown;
end;

PasswordText:=TPanel.Create(WizardForm)
with PasswordText do begin
WizardForm.PasswordEdit.OnKeyUp:= @PasswordEditOnKeyUp
PasswordText.SetBounds(WizardForm.PasswordEdit.Lef t, WizardForm.PasswordEdit.Top, WizardForm.PasswordEdit.Width, WizardForm.PasswordEdit.Height)
PasswordText.Font.Style:= [fsBold]
PasswordText.Alignment:=taLeftJustify
PasswordText.BevelOuter:= bvNone
PasswordText.BorderStyle:= bsSingle
PasswordText.Parent:= WizardForm.PasswordPage
PasswordText.Hide
end;

with Wizardform.PasswordEdit do begin
if Wizardform.RightToLeft then
Left := InstallerWidth - TextPositionWidth - TextPositionLeft + TextSpaceFromBorder
else
Left:= TextPositionLeft + TextSpaceFromBorder;
Top:= TextPositionTop + 95 + MoveDirectoryInfo;
Width:= TextPositionWidth - 2* TextSpaceFromBorder ;
Parent:=Wizardform
end;

////////////////////// PasswordPage //////////////////////
Quote:
wpPassword:
begin
Wizardform.PasswordEdit.Show
PasswordEditLabel.Show
end;

if CurPageID = wpPassword then if PasswordText.Caption = '' then
begin
WizardForm.Nextbutton.Enabled:= CheckPassword(WizardForm.PasswordEdit.Text);
if FileExists(ExpandConstant('{tmp}\Button.png')) then begin
NextBtnEnable(Wizardform.NextButton.Enabled)
end;
end;
Now, what i want to do is to enable the NEXT button when i enter the correct password. The problem is, even if i input the correct password, the NEXT button is Disabled. Any assistance please? Thanks in advance as always.

Last edited by johnnyusa; 20-10-2012 at 11:40.
  #918  
Old 20-10-2012, 11:45
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
you need to run Setup.cab Cryptor.exe to input the password into setup.cab file then ( I think it gives you the encrypted password that needs to be entered in setup.ini ) Hope its right as dont use that feature YET.
  #919  
Old 20-10-2012, 11:47
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
No man, im not talking about password protecting the cab file, im talking about password protection inside the setup.
  #920  
Old 20-10-2012, 12:43
yener90 yener90 is offline
Registered User
 
Join Date: Nov 2008
Location: Away
Posts: 810
Thanks: 93
Thanked 1,093 Times in 217 Posts
yener90 is on a distinguished road
why password protected setup? o.o
  #921  
Old 20-10-2012, 12:45
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
Because i want to test things and i want to learn from you and your scripts.
  #922  
Old 20-10-2012, 13:03
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
When I compact a game mode internal setup, the autorun opens, but the setup does not open or delay opening. this has happened to someone in CI 8.5.7.4 hitch?

Last edited by kassane; 20-10-2012 at 13:05.
  #923  
Old 20-10-2012, 13:09
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
Yes, that happened to me too kassane, just described the problem above on one post.

I've used both CI 8.5.7.4 and CI 8.5.7.3, same problem like you describe with internal setup.
  #924  
Old 20-10-2012, 16:29
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by Valeron View Post
Hey everyone. I need help.

What video type does CI. Use?

Dumb question. Avi. But what type of avi? Xvid?

I use xilisoft.

My videos resolution 1920x1080.

HELP...
http://fileforums.com/showpost.php?p=401440&postcount=1

Scroll down until you see "Suggested video settings".
You can also use flash files (.swf) as background video!
  #925  
Old 20-10-2012, 16:57
Onizuka87k's Avatar
Onizuka87k Onizuka87k is offline
Registered User
 
Join Date: Oct 2009
Location: Italy
Posts: 96
Thanks: 31
Thanked 15 Times in 8 Posts
Onizuka87k is on a distinguished road
Quote:
Originally Posted by Valeron View Post
i need avi man.
I told you:
Quote:
Suggested video settings:
http://img221.imageshack.us/img221/3931/supermw.jpg
Take a look at the pic.
  #926  
Old 20-10-2012, 18:46
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
Yener90, I'm trying to create a conversion only mode:
Code:
#define Internal
But unfortunately when I put a video in the background, the list appears copilação, but during installation the video does not appear .. Only works with setup.cab?
  #927  
Old 21-10-2012, 02:47
Kamyk95 Kamyk95 is offline
Registered User
 
Join Date: Mar 2011
Location: Poland
Posts: 97
Thanks: 19
Thanked 11 Times in 8 Posts
Kamyk95 is on a distinguished road
@yener90
I have a suggestion. Can You change the application uninstall name from this - "<Game Title> Uninstall" to this "Uninstall <Game Title>" (Use it as a verb, not as a noun)? It would look more aesthetically. I ask you this, because this is not a correct form in Polish language and it looks "ugly" (look at the attachment). Second question - Can You change the word "Wyjdź" (it means "Quit" in English) to "Zamknij" in your script (Polish language Autorun)? It means the same if it comes to Autoruns and the word "Zamknij" doesn't contain typical Polish characters like "ą,ż,ź" and others, so the font would be compatible.
Attached Images
File Type: jpg suggestion.jpg (29.1 KB, 109 views)
The Following User Says Thank You to Kamyk95 For This Useful Post:
yener90 (21-10-2012)
  #928  
Old 21-10-2012, 04:56
yener90 yener90 is offline
Registered User
 
Join Date: Nov 2008
Location: Away
Posts: 810
Thanks: 93
Thanked 1,093 Times in 217 Posts
yener90 is on a distinguished road
Quote:
Originally Posted by kassane View Post
Yener90, I'm trying to create a conversion only mode:
Code:
#define Internal
But unfortunately when I put a video in the background, the list appears copilação, but during installation the video does not appear .. Only works with setup.cab?
Make sure you put it correct.

Next Update... i need new translations :P

-> Read Manual
-> Read ReadMe
-> Browse DVD
The Following User Says Thank You to yener90 For This Useful Post:
NamelessOne (21-10-2012)
  #929  
Old 21-10-2012, 06:40
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
Yener90, I tried to create the conversion in the traditional way. but even so the video did not work...

Quote:
Originally Posted by yener90 View Post
Next Update... i need new translations :P

-> Read Manual
-> Read ReadMe
-> Browse DVD
Translation Portuguese

-> Read Manual - Leia Manual
-> Read ReadMe - Leia-me
-> Browse DVD - Explorar DVD

Last edited by kassane; 21-10-2012 at 07:36.
The Following User Says Thank You to kassane For This Useful Post:
yener90 (21-10-2012)
  #930  
Old 21-10-2012, 06:47
NamelessOne's Avatar
NamelessOne NamelessOne is offline
Registered User
 
Join Date: Dec 2008
Location: Sigil
Posts: 285
Thanks: 235
Thanked 855 Times in 186 Posts
NamelessOne is on a distinguished road
Quote:
Originally Posted by yener90 View Post
Next Update... i need new translations :P

-> Read Manual
-> Read ReadMe
-> Browse DVD
A little suggestion if I may, yener. Maybe you should just leave Manual and ReadMe instead of Read Manual and Read ReadMe. As for Browse DVD, maybe you could name it Extras and make it to open folder with the same name.

Translation Bosnian (could be used for Croatian also)

-> Read Manual -> Pročitaj priručnik
-> Read ReadMe -> Pročitaj obavijest
-> Browse DVD -> Pregledaj DVD (maybe Otvori DVD would be more appropriate if it opens root directory of DVD)
The Following User Says Thank You to NamelessOne For This Useful Post:
yener90 (21-10-2012)
Closed Thread


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 - Questions Here REV0 Conversion Tutorials 1565 29-11-2024 09:51
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 09:59
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Help- How to extract a .bin file compressed by a code ? Adonix Conversion Tutorials 22 22-03-2015 15:02
yener90's older Inno Project Source Codes THADEADMAN2011 PC Games - CD/DVD Conversions 0 16-06-2012 03:40



All times are GMT -7. The time now is 00:08.


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