Showing posts with label nsis get selected language. Show all posts
Showing posts with label nsis get selected language. Show all posts

Saturday, December 3, 2016

CENTOS 7 HP PROLIANT SMART ARRAY DRIVER

  1.     Enter BIOS (F9) and change SATA mode to b120i smart array raid controller.
  2.     Create an array from physical drives.
  3.     Check created logical volume as bootable.
  4.     Create the hpvsa driver flash-drive. Do this with DD in Linux or in Windows with Win32DiskImager. Make sure to download the latest version of the hpvsa driver.
  5. hpvsa-1.2.14-113.rhel7u2.x86_64 
  6.     Connect the flash-drive with the hpvsa driver to the server.
  7.     Boot from CentOS-DVD or make bootable usb centos 7
  8.     Wait for "Install OS..." screen and press Esc.
  9.     Type "linux modprobe.blacklist=ahci inst.dd" and hit Enter.
  10.     You will see a firmware error. Ignore it.
  11.     Select "r" to refresh the list. The hpvsa driver flash-drive should be in the list.
  12.     Install the driver.
  13.     Remove hpvsa driver flash-drive before continuing.
  14.     Allow OS installer to load. 
  15.     After selecting a langauge the array should be available for use.
If this suggestion solve your day please leave a short like or follow me. :) 

Monday, August 19, 2013

NSIS customize files based on languages

 NSIS How to get user selected language without using registry function

This is an example based on my custom needed to rename config file for my application based on language selection by user during setup 

First onInit function you must pop $LANGUAGE variable on global stack as you can retrive it later.

Function .onInit
....

....
!insertmacro MUI_LANGDLL_DISPLAY
 Pop $LANGUAGE

FunctionEnd


Then on interested section you wite your custom language files (D_MyApp..... E_MyApp.... F_MyApp...)

Section "MainSection" SEC01
  SetOutPath "$INSTDIR"
  SetOverwrite try
  SetDetailsPrint none
  SetShellVarContext all
  File "D:\projects\xxxxx\MyApp_v32_09082013\D_MyApp.exe.config"
  File "D:\projects\xxxxx\MyApp_v32_09082013\E_MyApp.exe.config"
  File "D:\projects\xxxxx\MyApp_v32_09082013\F_MyApp.exe.config"


 Here you compare $LANGUAGE with
LCID value  (see http://www.science.co.il/Language/Locale-codes.asp  for reference)

If selected language match then rename file else continue if statement

  StrCmp $LANGUAGE '1031' customGerman noDE
  customGerman:
  Rename "$INSTDIR\D_MyApp.exe.config" "$INSTDIR\MyApp.exe.config"
  goto languageSettingsDone
 
  noDE:
  StrCmp $LANGUAGE '1033' customEnglish noEN
  customEnglish:
  Rename "$INSTDIR\E_MyApp.exe.config" "$INSTDIR\MyApp.exe.config"
  goto languageSettingsDone

  noEN:
  StrCmp $LANGUAGE '1036' customFrench noFR
  customFrench:
  Rename "$INSTDIR\F_MyApp.exe.config" "$INSTDIR\MyApp.exe.config"
  goto languageSettingsDone
 
  noFR:
  goto languageSettingsDone
 
  languageSettingsDone:
....

....
....

;Contiune with other files


If this short giude has been usefull for you please leave comment