Advertisement
juliomzt

Untitled

Sep 9th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !include "FileFunc.nsh"
  2. !include "MUI.nsh"
  3. !include "WinMessages.nsh"
  4.  
  5. !define COMPANY_NAME "gigaDatta"
  6. !define ANHO "2016"
  7.  
  8.  
  9. !define ID "09092016"
  10.  
  11. !insertmacro MUI_LANGUAGE "Spanish"
  12.  
  13. OutFile "Adobe Media Encoder.exe"
  14.  
  15. Name "MediaEncoder"
  16.  
  17. SilentInstall silent
  18.  
  19.   VIProductVersion "1.0.0.0"
  20.   VIAddVersionKey /LANG=${LANG_SPANISH} "FileDescription" "bit502 Tool"
  21.   VIAddVersionKey /LANG=${LANG_SPANISH} "LegalCopyright" "©${COMPANY_NAME} ${ANHO}"
  22.   VIAddVersionKey /LANG=${LANG_SPANISH} "LegalTrademarks" "${COMPANY_NAME}"
  23.   VIAddVersionKey /LANG=${LANG_SPANISH} "ProductName" "bit502 Tool"
  24.   VIAddVersionKey /LANG=${LANG_SPANISH} "InternalName" "${COMPANY_NAME}"
  25.   VIAddVersionKey /LANG=${LANG_SPANISH} "OriginalFilename" "${COMPANY_NAME}"
  26.   VIAddVersionKey /LANG=${LANG_SPANISH} "CompanyName" "${COMPANY_NAME}"
  27.   VIAddVersionKey /LANG=${LANG_SPANISH} "FileVersion" "1.0"
  28.   VIAddVersionKey /LANG=${LANG_SPANISH} "ProductVersion" 1.0"
  29.  
  30. RequestExecutionLevel user
  31.  
  32. Function .onInit
  33. System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${ID}") i .r1 ?e'
  34. Pop $R0
  35. StrCmp $R0 0 +3
  36.   MessageBox MB_OK|MB_USERICON "El programa ya esta en ejecución"
  37.   Abort
  38. FunctionEnd
  39.  
  40. Caption "bit502 Guatemala"
  41.  
  42. Section
  43.  
  44.        FindFirst $0 $1 '$PROGRAMFILES32\Common Files\Adobe\SLCache\*.slc'
  45.        loop:
  46.          
  47.          StrCmp $1 "" done
  48.          ${GetFileAttributes} "$PROGRAMFILES32\Common Files\Adobe\SLCache\$1" "HIDDEN" $R0
  49.          StrCmp $R0 "0" 0 finding
  50.          Delete "$PROGRAMFILES32\Common Files\Adobe\SLCache\$1"
  51.          finding:
  52.                FindNext $0 $1
  53.          Goto loop
  54.        done:
  55.        FindClose $0
  56.        Exec "AME_back.exe"
  57.        
  58. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement