Friends

Rate

  

Parmaja.com

Forums for programming, Open source and free software.

You are not logged in.

#1 2005-05-09 14:49:03

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Bidi Inno Setup, Right to left

BidiInnoSetup, full support right to left.

Bidi Innosetup support full right to left forms and VCL components, compatible with 95, 9x, Win2k and WinXP with out using mirror layouts, with minor changes of code with less increase size of Setup.e32

Project page

if you have any problem post message here in this topic.

Offline

 

#2 2005-05-15 17:06:46

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

Fix: NewCheckListBox Left alignment of SubItem (size of component);
redownload the file.

Fix: Project web page small font in IE.

Offline

 

#3 2005-06-22 16:11:34

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

Fix:XP Style not appear in RightToLeft.
Add:Arabic language in setup file.
Release:
bidi-is-setup-5.1.4.exe

Offline

 

#4 2005-10-24 07:27:39

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

New version now to download for InnoSetup IS-5.1.5

bidi-is-setup-5.1.5.exe

Offline

 

#5 2006-02-07 05:10:06

dirarko
New member
Registered: 2006-02-07
Posts: 2

Re: Bidi Inno Setup, Right to left

Dear Zaher,

I downloaded the Bidi inno setup version 5.1.5, but cannot find any documentation on how to use it. I tried compiling the setup while adding Arabic language in the setup wizard langauge menu, but when compiling I get ???????? where the Arabic characters should be.. Any help would be appreciated.

I found some misspellings here: http://www.parmaja.com/projects/innosetup/, just wanted to tell you about it in case you want to correct it:
  > if you have any bug or something not work good post a message in Forum
  = if you have any bug or something is not working good post a message in Forum

> Screenhosts
= Screenshots

> Some classes not use the new Classes ...
= Some classes are not using the new Classes like ...

I guess there is some other mistakes that I didn't see, but I felt I should those I found.

Thank you and keep the good work

Offline

 

#6 2006-02-09 03:49:14

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

Hi dirarko
That odd, i used it as good with my customers, did you check your Regional options in control Panel, InnoSetup not support yet Unicode, and arabic language use Ansi windows charset.

There is no documentation becuase i just replace Setup.e32 with one support right to left.

I will fix this word Thanks a lot smile

Offline

 

#7 2006-02-09 04:04:35

dirarko
New member
Registered: 2006-02-07
Posts: 2

Re: Bidi Inno Setup, Right to left

I guess the problem is in the ANSI windows charset, I would use the English setup since there is no guaranty that the users will not have the same problem.

I would like to ask you one question about inno setup and would appreciate it if u can help me with it. I am trying to make a setup file that will only extract a zip file that's located in the same directory, the zip file it self can be changed, not the name but the contains, is there a way to do so with inno setup.

Thank you for reply to my post

Offline

 

#8 2006-02-11 15:39:47

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

If you want extract file from zip inside your setup you must include extractor program, but i prefer extract the files and make another setup with IS then call it in silent mode.

BTW there is a good News (as like forums) in innosetup site
http://news.jrsoftware.org/read/

Offline

 

#9 2006-06-29 22:15:21

BelowSky
New member
Registered: 2006-06-29
Posts: 4

Re: Bidi Inno Setup, Right to left

Hi Zaher and how are you?

Just three questions:

1- the UNINSTALLATION wizard is stll using LTR and not RTL like the SETUP wizard do?

2- Why you didn't update your project to the latest InnoSetup v5.1.6?

3 What did mean by:
"BTW there is a good News (as like forums) in innosetup site"
I didn't find any news related to you?

Thanx in advance...

Offline

 

#10 2006-06-30 11:19:04

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

1 - Uninstall not multi language it is save the language from the setup, so i can detect the codepage of language used because not saved, may be must it is support it in offical innosetup before make it rtl.
2 - Ok, i am too lazy, i am always need some one say to me "DO IT" smile i will make it this week.
3 - I meant there is a (News / Forum/ Mesasge) you can ask or discuss there, not a news about my project.

You are welcome any time.

Offline

 

#11 2006-06-30 19:07:02

BelowSky
New member
Registered: 2006-06-29
Posts: 4

Re: Bidi Inno Setup, Right to left

Thanx for the replay...
BTW, I like "Mirror Layout" more than "RTL Form".
I know about the fact that Mirror Layout does not work in PURE english Win9x and Me.

But I don't think Amercans or Germans will ever use an arabic program...so why don't you use Mirror Layout instead of RTL Form???

Offline

 

#12 2006-07-01 16:20:59

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

- "Mirror Layout" Make the Shadow of objects Left-Bottom, i hate it.
- And If you see Office like (Ms Word) not use "Mirror Layout" in the last versions,
- Mirrors make some confused with some component (You must flip the keyboard by your self).
- Not Work in 95

Offline

 

#13 2006-07-01 22:43:47

BelowSky
New member
Registered: 2006-06-29
Posts: 4

Re: Bidi Inno Setup, Right to left

I'm sorry for being so annoying with all of my stupid questions...
Anyway, I have made a very small code to flip all the forms off InnoSetup at RUNTIME using Pascal Script. The problem is that some control doesn't appear (controls in the "Tasks Page" for example) . Not to mention that I cann't force MessageBox to use RTLReading. Here is a sample for you, so take a good a look it:

[Setup]
AppName=Test
AppVerName=Test 1.0
DefaultDirName={pf}\Test
DefaultGroupName=Test
AllowNoIcons=yes
OutputDir=/
OutputBaseFilename=Test_Setup

[Icons]
Name: {group}\{cm:UninstallProgram,Test}; Filename: {uninstallexe}; Tasks: desktopicon
Name: {userdesktop}\{cm:UninstallProgram,Test}; Filename: {uninstallexe}

[Run]
Filename: {uninstallexe}; Flags: postinstall unchecked

[Messages]
BeveledLabel=Test

[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked

Code:

Const
  // Extended Window Styles
  WS_EX_LAYOUTRTL = $00400000;

  // Window field offsets for GetWindowLong()
  GWL_EXSTYLE = -20;

  // GetWindow() Constants
  GW_CHILD  = 5;

// LONG GetWindowLong( HWND hWnd, int nIndex );
Function GetWindowLong( hWnd: Integer; nIndex: Integer ): Cardinal;
External 'GetWindowLongA@User32.dll StdCall';

// LONG SetWindowLong( HWND hWnd, int nIndex, LONG dwNewLong );
Function SetWindowLong( hWnd: Integer; nIndex: Integer; dwNewLong: Cardinal ): Cardinal;
External 'SetWindowLongA@User32.dll StdCall';

// HWND GetWindow( HWND hWnd, UINT uCmd );
Function GetWindow( hWnd: Integer; uCmd: Cardinal ): Integer;
External 'GetWindow@User32.dll StdCall';

// ------ End of functions definition ------

Procedure ConvertToRTL();
Var
  hWnd: Integer;
  hChildWnd: Integer;

Begin
  hWnd := StrToInt( ExpandConstant( '{wizardhwnd}' ) );
  SetWindowLong( hWnd, GWL_EXSTYLE, GetWindowLong( hWnd, GWL_EXSTYLE ) OR WS_EX_LAYOUTRTL );
  hChildWnd := GetWindow( hWnd, GW_CHILD );

  While hChildWnd > 0 Do
  Begin
    SetWindowLong( hChildWnd, GWL_EXSTYLE, GetWindowLong( hChildWnd, GWL_EXSTYLE ) OR WS_EX_LAYOUTRTL );
    hChildWnd := GetWindow( hChildWnd, GW_CHILD );
  End
End;

Procedure InitializeWizard();
Begin
  ConvertToRTL;
End;

Offline

 

#14 2006-07-02 15:46:57

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

The problem it is from delphi, when try to add mirror flag to form some Controls get out from From, i mean it Left, Top take values out side the form, it is one of problem of of Mirror.

I'm sorry for being so annoying with all of my stupid questions...

Nop, you are as like my brother wink dont warry about that.

Offline

 

#15 2006-08-17 13:00:07

hicham
New member
Registered: 2006-08-17
Posts: 1

Re: Bidi Inno Setup, Right to left

Salam wa alaykum;

I am setting up my punbb in arabic and I am using your translation pack, Thank you.
However, I have a small request: Is there a way to change the arabic font and size

and Thank you very much
Hicham

Offline

 

#16 2006-08-20 14:34:43

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

New release of Bidi Inno Setup for InnoSetup 5.1.7

bidi-is-setup-5.1.7.exe

http://www.parmaja.com/projects/innosetup

Offline

 

#17 2006-09-20 20:03:17

BelowSky
New member
Registered: 2006-06-29
Posts: 4

Re: Bidi Inno Setup, Right to left

Thanx Zaher, you such a good guy.
But how about asking the InnoSetup developer to implement your work in his so that It get updated automatically whenever he update his application.
Thank you again...

Offline

 

#18 2006-09-20 21:22:45

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

I prefer to merge my code to original source, because it too hard when i spend 3 hour in re hack the code and test it before i release my work.

Thank you.

Offline

 

#19 2006-12-01 08:51:31

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

New release of Bidi Inno Setup for InnoSetup 5.1.8

bidi-is-setup-5.1.8.exe

http://www.parmaja.com/projects/innosetup

Offline

 

#20 2006-12-23 17:39:07

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

New release of Bidi Inno Setup for InnoSetup 5.1.9

http://www.parmaja.com/projects/innosetup

Offline

 

#21 2007-05-04 06:14:07

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

New release of Bidi Inno Setup for InnoSetup 5.1.12 With Updated Arabic language
I removed Hebrew.is because it is become official translation.

http://www.parmaja.com/projects/innosetup

Offline

 

#22 2007-09-08 14:41:51

Ahmad Abd El Kader
New member
Registered: 2007-09-08
Posts: 2

Re: Bidi Inno Setup, Right to left

Zaher wrote:

BidiInnoSetup, full support right to left.

Bidi Innosetup support full right to left forms and VCL components, compatible with 95, 9x, Win2k and WinXP with out using mirror layouts, with minor changes of code with less increase size of Setup.e32

Project page

if you have any problem post message here in this topic.

al salamo 3alaykom,

thanks Zaher for your work. unfortunately, i can't get the innosetup to work in arabic it completely ignores the language and doesn't even display the language selection dialoge. i'm using the arabic.isl you made. when i open the file using notpad++ i can't read the arabic values and it looks like latic characters. the file format is ANSI not utf8 as i would have expected. i installed is-bidi-5.1.12.exe but it didn't help.

any help would be appreciated.

Offline

 

#23 2007-09-08 16:00:52

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

First try too use Tahoma font
and include the Arabic language like example

Code: ini

[LangOptions]
DialogFontName=Tahoma
TitleFontName=Tahoma
WelcomeFontName=Tahoma
CopyrightFontName=Tahoma

[Languages]
Name: en; MessagesFile: compiler:Default.isl, .\English.isl
Name: ar; MessagesFile: compiler:Languages\Arabic.isl, .\Arabic.isl

I used the setup in Firebird setup and work fine.

http://parmaja.com/projects/firebirdsetup/
after install look to
c:\Program Files\Firebird SQL\Firebird 2\install
the source of setup included

Offline

 

#24 2007-09-09 01:47:11

Ahmad Abd El Kader
New member
Registered: 2007-09-08
Posts: 2

Re: Bidi Inno Setup, Right to left

thanks Zaher for your fast reply, i really appreciate it,

i tried the method you adviced, well, the language selection dialoge is shown now and i select arabic the wizard shows distorted characters and i still can't read the arabic strings with a text editor.

i read the previous posts about windows ANSI and this stuff, and they decided not to use arabic lest the user should experience the same thing, so what do you recommend as an experienced innoSetup user?

Offline

 

#25 2007-09-09 06:57:42

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Bidi Inno Setup, Right to left

Be sure in "Regional and Language" -> "Advanced" set to Arabic for default codepage for Non-Unicode programs.

If it worked, that because IS is Ansi and need this set.
If not worked, did you used Tahoma font?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

[ Generated in 0.055 seconds, 7 queries executed ]