MSFN Forum: Languages, Themes, Manuals & Mods - MSFN Forum

Jump to content


  • 7 Pages +
  • « First
  • 4
  • 5
  • 6
  • 7
  • You cannot start a new topic
  • You cannot reply to this topic

Languages, Themes, Manuals & Mods The place for translations... Rate Topic: -----

#101 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 06 February 2013 - 12:28 PM

About Edition ID for Windows XP.

Result: NOT_FOUND with my Windows XP localized french version.

But, changing inside wmi.js (from line 115) to:

if (szOSVerCache=="XP")
   {
    szEditionIDCache=objItem.Caption;
   }



Tested and works fine! I think it's OK for all localized Windows XP version!

Thanks to check if it's OK.

Image Windows XP Edition

Regards

*Edit: post updated

This post has been edited by myselfidem: 12 February 2013 - 12:26 PM



#102 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 07 February 2013 - 03:34 AM

Note: about function getSysPCType() inside wmi.js:

There is no result on Windows XP ("Unspecified"):

Win32_ComputerSystem class (Windows)

Quote

PCSystemType

Data type: uint16
Access type: Read-only

Type of the computer in use, such as laptop, desktop, or Tablet.

Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95: This property is not available.


Maybe we can add a comment inside wmi.js (on line 1209):

Quote

// This property is not available for: Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0, and Windows Me/98/95.


Thanks and regards.

This post has been edited by myselfidem: 12 February 2013 - 02:01 AM


#103 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 February 2013 - 11:08 AM

Inside wmi.js we can add on line 940:

if (objItem.MediaType.toUpperCase().indexOf("DVD WRITER") != -1 || objItem.PNPDeviceID.toUpperCase().indexOf("DVD") != -1)


Adding the second part we can see all values also with Windows XP. CD\DVD Burner was not detected before on XP, but only on Windows 7.

Tested on my computer with dualboot (Windows XP and Windows 7) and works fine!

Thanks and regards

This post has been edited by myselfidem: 10 February 2013 - 01:47 PM


#104 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 February 2013 - 02:25 AM

I suggest to add a new function for WPI.

1 - Detect KeyboardLayout inside wmi.js (from line 348) :

function getKeyboardLayout()
{
 position="wmi.js";
 whatfunc="getKeyboardLayout()";
 
 try
  {
   objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");
   colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly);
   
   enumItems=new Enumerator(colItems);
            objItem=enumItems.item();
   KeyboardLayout=objItem.Locale;
     }
     catch(ex) 
           {
           }

     return KeyboardLayout;
}




Add inside global.js

// wmi.js
 var KeyboardLayout;



Add inside global_lang.js
var lblKeyboardLayout=[];



Add inside information.js (on line 119):

MyComputerGrid.addRow(gId++,getText(lblKeyboardLayout)+','+getKeyboardLayout()+'');



Add inside lang_en.js

lblKeyboardLayout[lang]         = ['Keyboard Layout'];



2 - To display properly Language, location and keybordlayout, I suggest to change:

Inside core.js

Change // %OSLANG% to:

// %OSLANG% 
 var LCID; 
 
 CreateLocalArray(); 
 try 
 { 
         objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");  
         colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); 
          
         enumItems=new Enumerator(colItems); 
         objItem=enumItems.item(); 
         LCID=objItem.Locale;
       
    for (var x=0; x<arrOSLang.length; x++) 
     { 
     if (arrOSLang[x].LCID==LCID) 
     { 
         oslang=arrOSLang[x].TLA; 
         oslocale=arrOSLang[x].Locale; 
         break; 
     } 
   }
 }
 catch(ex) 
 { 
  oslang="ENU"; 
  oslocale="English - United States"; 
 } 
 
 // Environment variable for batch file 
 setEnvVar("HDD",hdd,false); 
 setEnvVar("CDDRV",cddrv,false); 
 setEnvVar("WPIPATH",wpipath,false); 
 setEnvVar("ROOT",root,false); 
 setEnvVar("OSLANG",oslang,false); 
 setEnvVar("OSLOCALE",oslocale,false); 
}



And remove inside core.js:

function DecToHex(d)
{
 position="core.js";
 whatfunc="DecToHex()";

 var hD="0123456789abcdef";
 var h=hD.substr(d&15,1);

 while(d>15)
 {
  d>>=4;
  h=hD.substr(d&15,1)+h;
 }

 return h;
}



Image Computer Information

Tested and works fine for me!

Example:

config.js
pn=1;
prog[pn]=['Ashampoo'];
uid[pn]=['ASHAMPOO'];
ordr[pn]=[1];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
pfro[pn]=['no'];
cmds[pn]=['{OS=Win8%comma%Win7%comma%Vista%comma%XP} "%wpipath%\\Install\\abs6_free.exe"'];
cond[pn]=['getOSlang()=="FRS"'];
pn++;



WPI_Log.txt
Spoiler


Thanks to check if it's OK!

Regards





This post has been edited by myselfidem: 12 February 2013 - 06:48 AM


#105 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 February 2013 - 04:57 AM

To enable DragAndDrop inside Configuration Tab, we can add inside configwizard.js:

Line 185; about: function CreateNavigation()

NavGrid.enableDragAndDrop(true); 


Line 228; about: function CreateConfigurations()

ConfigurationsGrid.enableDragAndDrop(true); 


Thanks to check if it's OK!

Tested and works fine for me.

Regards

Image Enable Drag And Drop

Note: To keep the new order we must change the number(s) manually!

This post has been edited by myselfidem: 02 June 2013 - 03:41 PM


#106 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 February 2013 - 06:20 AM

How to keep the installation order number?:

http://www.msfn.org/...-install-order/

1 - Inside program.js , changing (on line 213):
{return x - y;} 


2 - Inside program.js (on line 322) adding:
progspercat.sort(byOrder);  // Sort by ascending numerical order

if (SortWithinCats)        
progspercat.sort(SortByProg); // Sort by alphabetical order



Thanks to make tests and check if it's OK!

Tested and works fine for me!
Regards

This post has been edited by myselfidem: 01 March 2013 - 05:32 AM


#107 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 April 2013 - 11:05 AM

Many thanks Kels for the new release WPI_v.8.6.6 !

Here is the French language file updated: lang_fr.rar

Thanks and regards

*Edit: File updated next post!

This post has been edited by myselfidem: 09 April 2013 - 01:56 AM


#108 User is offline   jinkazama 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 16-November 03
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 08 April 2013 - 04:55 PM

Is needed italian translation update form 8.6.5 to 8.6.6?

#109 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 April 2013 - 11:38 PM

View Postjinkazama, on 08 April 2013 - 04:55 PM, said:

Is needed italian translation update form 8.6.5 to 8.6.6?


Yes, jinkazama

Because there is new functions added, and two new lines translated needed.

End of WPI_v8.6.6 lang_en.js:

// v8.6+
lblNumberOfCores[lang]          = ['Number Of Cores'];
lblNumberOfLogicalProcessors[lang] = ['Number Of Logical Processors'];
lblProductKey[lang]             = ['Product Key'];
lblKeyboardLayout[lang]         = ['Keyboard Layout'];
//------------------------------------------------------------------------------



Cheers and regards

*Edit: Oops...Sorry missing some new words inside lang_fr.js (line 972)

French language file updated:

Regards

*Edit: lang_fr.js given

This post has been edited by myselfidem: 14 June 2013 - 06:05 AM


#110 User is offline   jinkazama 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 16-November 03
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 09 April 2013 - 02:37 AM

Here new translation.
I'm translating other softwares and we use Transifex, it's very useful!
Here a project page Transifex

Attached File(s)



#111 User is offline   chymax3m 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 17-January 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 April 2013 - 06:00 PM

Hello, i've updated the Ukrainian lang file with two new lines.

This post has been edited by chymax3m: 09 April 2013 - 06:04 PM


#112 User is offline   chymax3m 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 17-January 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 April 2013 - 06:01 PM

Seems like some troubles with site, the attachment it the same as in previous post...

Attached File(s)


This post has been edited by chymax3m: 09 April 2013 - 06:06 PM


#113 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 10 April 2013 - 05:27 AM

@Kels

Could you add inside WPI_v8.6.6 the French Manual updated with: [Comparison operator ===] added on Chapter 7, please!

French Manual and lang_fr.js updated for WPI_v8.6.6:

http://www.mediafire.com/?6696bficr91ar


Thanks and regards.

#114 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 April 2013 - 06:33 AM

Manual and language edits are added to this date.

Pass is the same.

#115 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 15 April 2013 - 06:41 AM

Thanks and regards! :yes:

#116 User is offline   CWTeaM 

  • Group: Members
  • Posts: 1
  • Joined: 16-May 13
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 16 May 2013 - 06:46 AM

Hello!
WPI typically used for installation of programs not only legal, but also programs of paid-compromised.
In connection with this I propose to do the switch defaults to WPI legal software and illegal
So it will be more convenient for the users, well and accordingly the color difference programs legal from illegal.
For example I came to anybody home install programs, change to the illegal and installed.
And if I go in or what kind of organization or the office, then set the switch on legally.
Perhaps You have there in the USA use only legal software, but we have in Russia use the programs that are comfortable and pay for them or who do not want to.
According to statistics, in Russia, 90% of the users use illegal software including OS.

This post has been edited by CWTeaM: 16 May 2013 - 06:51 AM


#117 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,342
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 May 2013 - 03:12 PM

Yes I live in the USA. I also have a strong stance against warez.

Wpi is also not free for business uses either.

I am Sorry but you will not be welcomed here with the stance you have.

#118 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 25 May 2013 - 10:31 AM

I suggest to add a new command inside installer.js (line 1209) using: msiexec.exe /i %WPIPath%\Program.msi /qn

case 'MSI': 
           var src, splits; 
                                
           src=cmd;
           if (cmd.indexOf('" "') != -1) 
           { 
             splits=cmd.split('" "'); 
             src=splits[0];   
            } 
            else 
            { 
            if (src.substr(0,1)=='"') 
            { 
               splits=cmd.split('" '); 
               src=splits[0];   
               } 
               else 
               { 
               splits=cmd.split(' '); 
               src=splits[0]; 
                      } 
                   } 
                                 
                   src=src.replace(/\"/g,""); 
                   cmd='msiexec.exe /i "'+src+'" /qn';   
                   fsoCmd=true; 
                   break;                                
                } 



Adding inside configwizard.js

On line 372:
CommandsMenuBar.addNewChild("cmd_system", 5, "dos_msi", "Msi", false, "", "");


On line 643:
case 'dos_msi':
    HandleCommandsSelectionMenu("{MSI} ");
    break;



Tested and works fine for me. Example with SkypeSetup.msi:

config.js
prog[pn]=['Skype'];
uid[pn]=['SKYPE'];
ordr[pn]=[5];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
pfro[pn]=['no'];
cmds[pn]=['{MSI} "%wpipath%\\Install\\SkypeSetup.msi"'];
desc[pn]=['Skype'];
pn++;



Result inside WPI_Log.txt:

Quote

dimanche 26 mai 2013 07:36:44
Programme: Skype
ID unique: SKYPE
Ordre: 000005
Catégorie: Applications
dimanche 26 mai 2013 07:36:54 - cmd1 Succès (Code de retour 0): msiexec.exe /i "C:\WPI_v8.6.6\Install\SkypeSetup.msi" /qn
dimanche 26 mai 2013 07:36:55 - Installation terminée.


Thanks and regards

*Edit: post updated

Thanks to check if it's OK

*Edit2: However I see this option already exists using USSFStrings:

"Switches" : 'msiexec.exe /i %s /qb',

This post has been edited by myselfidem: 27 May 2013 - 03:22 PM


#119 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 27 May 2013 - 01:44 AM

Inside WPI.hta

Maybe we can change the lines 432 and 446:

strFile=ReplacePath('"%sysdir%\\mshta.exe" "'+wpipath+'\\Common\\Installer.hta"');


Changing to:

strFile=ReplacePath('"'+sysdir+'\\mshta.exe" "'+wpipath+'\\Common\\Installer.hta"');


Thanks to check if it's OK!

Regards

#120 User is offline   chymax3m 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 17-January 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 May 2013 - 11:18 PM

Quote

I suggest to add a new command inside installer.js (line 1209) using: msiexec.exe /i %WPIPath%\Program.msi /qn
and what about Properties of .msi? I met some programs, which you could set the default language, destination directory and so on using Properties of MSI package, how would it be done with a new part of code?

Share this topic:


  • 7 Pages +
  • « First
  • 4
  • 5
  • 6
  • 7
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy