Jump to content

myselfidem

Member
  • Posts

    2,515
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Switzerland

Everything posted by myselfidem

  1. Thanks for the new release WPI_v8.6.0 However could you apply the changes needed inside core.js: line 135: Enum=winMgts.OSLanguage; with // %OSLANG% var Enum, DtoH; CreateLocalArray(); try { objWMIService=GetObject("winmgmts:\\\\" + "." + "[url="file://\\root\\CIMV2"]\\root\\CIMV2[/url]"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) objItem=enumItems.item(); OSLanguage=objItem.OSLanguage; // OSLanguage=1033, 1036, .... try { var Enum=objItem.OSLanguage; } catch(ex2) { Enum=1033; } line 331 var hD="0123456789ABCDEF"; with var hD="0123456789abcdef"; Regards *Edit: post updated !
  2. The installation fails! You need to use default keys matching each correct version. And you can use a valid key to activate only the Windows 7 Edition corresponding! Cheers
  3. I agree with you maxXPsoft, and yes it's needed to hack a dll. Regards
  4. Thanks. I got it. I will take a look when I have some time! Cheers
  5. Really nice! I downloaded your script...but I need time to test it. Enjoy
  6. Many thanks! I changed only few words for french language. Here is the new lang_fr.js Keep your good work ! Regards *Edit: lang file given
  7. Oops, I see now on SystemEnclosureType inside wmi.js ! WMI Tasks: Computer Hardware How Can I Determine if a Computer is a Laptop or a Desktop Machine? Regards *Edit: @honestvip You can try this vbs file. Copy and past this one with notepad and save as SystemEnclosureType.vbs strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colChassis = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure") For Each objChassis in colChassis For Each strChassisType in objChassis.ChassisTypes Select Case strChassisType Case 1 Wscript.Echo "Other" Case 2 Wscript.Echo "Unknown" Case 3 Wscript.Echo "Desktop" Case 4 Wscript.Echo "Low Profile Desktop" Case 5 Wscript.Echo "Pizza Box" Case 6 Wscript.Echo "Mini Tower" Case 7 Wscript.Echo "Tower" Case 8 Wscript.Echo "Portable" Case 9 Wscript.Echo "Laptop" Case 10 Wscript.Echo "Notebook" Case 11 Wscript.Echo "Handheld" Case 12 Wscript.Echo "Docking Station" Case 13 Wscript.Echo "All-in-One" Case 14 Wscript.Echo "Sub-Notebook" Case 15 Wscript.Echo "Space Saving" Case 16 Wscript.Echo "Lunch Box" Case 17 Wscript.Echo "Main System Chassis" Case 18 Wscript.Echo "Expansion Chassis" Case 19 Wscript.Echo "Sub-Chassis" Case 20 Wscript.Echo "Bus Expansion Chassis" Case 21 Wscript.Echo "Peripheral Chassis" Case 22 Wscript.Echo "Storage Chassis" Case 23 Wscript.Echo "Rack Mount Chassis" Case 24 Wscript.Echo "Sealed-Case PC" Case Else Wscript.Echo "Unknown" End Select Next Next Testing on your Laptop you must find also the result!
  8. Thanks Yes it's the goal! Cheers
  9. Yes. Thanks And we can see also that the volume slider works fine!
  10. Solved = About OSlang and OSlocale FRA (French) I made some changes inside core.js, like this: Replace at line 329: var hD="0123456789ABCDEF"; With: var hD="0123456789abcdef"; Even if my keyboard is CH (Switzerland 100c) the Windows 7 language is fr-FR and all values are shown inside information window! I have also tried to change inside core.js this line and works fine: // %OSLANG% var Enum, DtoH; CreateLocalArray(); try { objWMIService=GetObject("winmgmts:\\\\" + "." + "[url="file://\\root\\CIMV2"]\\root\\CIMV2[/url]"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) objItem=enumItems.item(); OSLanguage=objItem.OSLanguage; // OSLanguage=1033, 1036, .... try { var Enum=objItem.OSLanguage; } catch(ex2) { Enum=1033; } DtoH=DecToHex(Enum); while (DtoH.length<4) DtoH="0" + DtoH+""; for (var x=0; x<arrOSLang.length; x++) { if (arrOSLang[x].LCID==DtoH) { 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); } WPI_Log.txt Regards
  11. Thanks! I know it's out of this thread...but could you try to use these values for testing OSver and OSeditionID, to see if it works for your Windows 7 version (maybe yours is spanish?): http://www.msfn.org/board/topic/156785-wpi-v859-release-thread/page__view__findpost__p__1009595 Thanks in advance.
  12. Have you installed after installing WAIK for Windows 7, the Supplement? The Windows® Automated Installation Kit (AIK) Supplement for Windows® 7 SP1 Maybe that can give some help also: http://www.msfn.org/board/topic/148690-strange-behaviour-setup-multiple-languages/page__view__findpost__p__950057
  13. Have you also made the changes needed inside lang.ini ? Understanding Multilingual Deployments Cheers
  14. Solved = about OSver and OSeditionID works fine for me with french localized Windows 7 version changing inside wmi.js function getOSver() { position="wmi.js"; whatfunc="getOSver()"; if (szOSVerCache==NOT_FOUND) // this function is called often - get it once and cache the result { try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); var Caption=objItem.Caption; if (Caption.indexOf("8") != -1) szOSVerCache="Win8"; if (Caption.indexOf("7") != -1) szOSVerCache="Win7"; if (Caption.indexOf("2008") != -1) szOSVerCache="08"; if (Caption.indexOf("Vista") != -1) szOSVerCache="Vista"; if (Caption.indexOf("2003") != -1) szOSVerCache="03"; if (Caption.indexOf("XP") != -1) szOSVerCache="XP"; if (Caption.indexOf("2000") != -1) szOSVerCache="2K"; } catch(ex) { } } return szOSVerCache; } Adding also inside wmi.js function getOSeditionID() { position="wmi.js"; whatfunc="getOSeditionID()"; var Caption, OSSKU; if (szEditionIDCache==NOT_FOUND) // this function is called often - get it once and cache the result { try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); Caption=objItem.Caption; OSSKU=objItem.OperatingSystemSKU; if (szOSVerCache=="Win8") szEditionIDCache=getOSsku(OSSKU); WPI_Log.txt Fichier journal de l'installation WPI Début de l'installation: vendredi 31 août 2012 10:40:05 Information WPI: Version=8.6.0 Exécutable utilisé=true Version d'Internet Explorer=9.0 Connexion Internet=true Système d'exploitation Système d'exploitation=Win7 ID Edition=Ultimate Edition Version du Système d'exploitation=6.1 Version actuelle=7601 Service Pack=1 Regards
  15. Many thanks. I see that WPI_v8.6.0 is a stable release, even if with some localized version we can't have OSver, OSeditionID, OSlang, and OSlocale working, using Windows 7. It seems the three letters code not working with French and other language. I don't know if that can help: Building a Localized Platform in Microsoft Windows CE Platform Builder 3.0 Regards *Edit: However with Windows XP, OSver is found !
  16. Could you please update the downloading web site with the new WPI_v8.6.0 ? http://www.wpiw.net/ Thanks and Regards
  17. It seems there is a little description error inside the layout, but if you read on the same link given about: ConsentPromptBehaviorUser We can read: Here is the difference! Cheers
  18. All about the values with UAC: UAC Group Policy Settings and Registry Key Settings Cheers
  19. For amd64, all files needed are inside: .\Windows AIK | Tools | PETools | amd64 | WinPE_FPs
  20. Look inside: Programs | Windows AIK | Tools | PETools | ia64 | Winpe_FPs However, it seems missing for ia64! Of course!
  21. There are inside The Windows® Automated Installation Kit (AIK) Supplement for Windows® 7 SP1 Create a Distribution Share for a Multilingual Image Cheers
  22. Many thanks! It's possible to add inside information.js: MyComputerGrid.addRow(gId++,getText(lblOSBuild)+','+getOSBuildID()+''); ConditionsGrid.addRow(gId++,'getOSBuildID()=="'+getOSBuildID()+'"'); And with this suggested order: getOSver => Win7 getOSeditionID => Ultimate Edition getOSvernum => 6.1 getOSBuildID => 7600 getSPver => 1 Regards
  23. About the registry keys to disable UAC. The best choice is to use the first one you gave inside this thread, because the values are correct. Windows Registry Editor Version 5.00 ;----------------- ; - Disable UAC - ;----------------- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "ConsentPromptBehaviorAdmin"=dword:00000000 "ConsentPromptBehaviorUser"=dword:00000003 "EnableInstallerDetection"=dword:00000001 "EnableLUA"=dword:00000000 "EnableSecureUIAPaths"=dword:00000001 "EnableUIADesktopToggle"=dword:00000000 "EnableVirtualization"=dword:00000001 "PromptOnSecureDesktop"=dword:00000000 "ValidateAdminCodeSignatures"=dword:00000000 "dontdisplaylastusername"=dword:00000000 "legalnoticecaption"="" "legalnoticetext"="" "scforceoption"=dword:00000000 "shutdownwithoutlogon"=dword:00000001 "undockwithoutlogon"=dword:00000001 "FilterAdministratorToken"=dword:00000000 "HideFastUserSwitching"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center] "UacDisableNotify"=dword:00000001 Cheers
  24. Many thanks for the new release WPI_v8.6.0 Here is the new lang_fr.js with additional lines needed. Regards *Edit:given
  25. Inside Configuration Section, select your app and: Dependant of | Architecture Tab and Hardware [scrowl down inside the combo box, and Select: getSystemEnclosuretype()]! If you want you can change the condition manually and write: getSystemEnclosuretype()=="Laptop" Because informations are based on your current Hardware and Operating System! Cheers
×
×
  • Create New...