home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Internet / Instantbird / InstantbirdPortable_1.5_French.paf.exe / App / AppInfo / Launcher / Custom.nsh next >
Text File  |  2011-10-26  |  757b  |  18 lines

  1. ${SegmentFile}
  2.  
  3. ${SegmentPrePrimary}
  4.     ExpandEnvStrings $0 "%PAL:DataDir%"
  5.     ExpandEnvStrings $1 "%PAL:AppDir%"
  6.     ExpandEnvStrings $2 "%PAL:LastDrive%%PAL:LastPackagePartialDir%"
  7.     ExpandEnvStrings $3 "%PAL:Drive%%PAL:PackagePartialDir%"
  8.     ${If} ${FileExists} "$0\profile\extensions.sqlite"
  9.         nsExec::Exec `"$1\Bin\sqlite3.exe" "$0\profile\extensions.sqlite" "UPDATE addon SET descriptor = '$3' || SUBSTR(descriptor,(LENGTH('$2')+1)) WHERE descriptor LIKE '$2%';"`
  10.     ${EndIf}
  11.     ${If} ${FileExists} "$0\profile\prefs.js"
  12.         ${WordReplace} $2 "\" "////" "+" $2
  13.         ${WordReplace} $2 "////" "\\\\" "+" $2
  14.         ${WordReplace} $3 "\" "////" "+" $3
  15.         ${WordReplace} $3 "////" "\\\\" "+" $3
  16.         ${ReplaceInFile} "$0\profile\prefs.js" $2 $3
  17.     ${EndIf}
  18. !macroend