Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: GordCaswell on Sep 18th, 2011  |  syntax: NullSoft Installer  |  size: 0.57 KB  |  views: 151  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ${SegmentFile}
  2.  
  3. ${SegmentPreExec}
  4. #
  5. # Code courtesy of Bart.S
  6. #
  7.         ${registry::Read} "HKEY_CURRENT_USER\Software\Ulduzsoft\kchmviewer" "recentFileList" $R0 $R1
  8.                 MessageBox MB_OK 'Value=$R0'
  9.                 MessageBox MB_OK 'Type=$R1'
  10.         ${If} $R0 != ""
  11.                 ${WordReplace} $R0 "%PAL:LastDrive%" "%PAL:Drive%" "E+" $R2
  12.                 ${If} ${Errors}
  13.                         MessageBox MB_OK 'Errorlevel=$R2'
  14.                 ${Else}
  15.                         MessageBox MB_OK 'No errors'
  16.                 ${EndIf}
  17.                
  18.                 ${registry::Write}  "HKEY_CURRENT_USER\Software\Ulduzsoft\kchmviewer" "recentFileList" "$R0" "$R1" $R3
  19.                 MessageBox MB_OK 'Value=$R0'
  20.         ${EndIf}
  21. !macroend
clone this paste RAW Paste Data