X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2FWin32%2Fpdfview%2Fpdfview.nsi;h=aab892f44ca668dbcf7f45ca14cfc24cb4f011f3;hb=367bf556574142388309f40142cddcf0c5676f06;hp=7798dbaa9647a4654230c6d1a10e03f05f88273a;hpb=3b1a026a934e5e20aba4b6e6b9ae5723b153b004;p=lyx.git diff --git a/development/Win32/pdfview/pdfview.nsi b/development/Win32/pdfview/pdfview.nsi index 7798dbaa96..aab892f44c 100644 --- a/development/Win32/pdfview/pdfview.nsi +++ b/development/Win32/pdfview/pdfview.nsi @@ -35,9 +35,9 @@ RequestExecutionLevel user !define FALSE 0 !define TRUE 1 -# http://msdn.microsoft.com/en-us/library/windows/desktop/aa364417%28v=vs.85%29.aspx +# see http://msdn.microsoft.com/en-us/library/windows/desktop/aa364417%28v=vs.85%29.aspx !define FILE_NOTIFY_CHANGE_LAST_WRITE 0x00000010 -# http://msdn.microsoft.com/en-us/library/windows/desktop/ms687032%28v=vs.85%29.aspx +# see http://msdn.microsoft.com/en-us/library/windows/desktop/ms687032%28v=vs.85%29.aspx !define WAIT_TIMEOUT 0x00000102 #-------------------------------- @@ -100,15 +100,15 @@ Var TimeDiff Function GetFileTimeS - Exch $0 ;; File / hi - Push $1 ;; lo + Exch $0 # File / hi + Push $1 # lo ClearErrors GetFileTime "$0" $0 $1 IfErrors err System::Call '*(i r1, i r0) i .r0' System::Call '*$0(l .r0)' - System::Int64Op $0 / 10000000 ;; Conversion From '100 ns' to '1 sec' unit + System::Int64Op $0 / 10000000 # Conversion From '100 ns' to '1 sec' unit Goto end err: @@ -135,9 +135,9 @@ FunctionEnd !macroend Function FileTimeDiff - Exch $0 ;; FileA + Exch $0 # FileA Exch - Exch $1 ;; FileB + Exch $1 # FileB ${GetFileTimeS} $0 "$0" IfErrors err @@ -198,6 +198,16 @@ Section "View PDF file" ${If} $Viewer == "AcroRd32.exe" ${OrIf} $Viewer == "Acrobat.exe" + + # get the version of Acrobat - currenly not necessary + #GetDLLVersion $ViewerFileName $R0 $R1 + #IntOp $R2 $R0 >> 16 + #IntOp $R2 $R2 & 0x0000FFFF ; $R2 now contains major version + #IntOp $R3 $R0 & 0x0000FFFF ; $R3 now contains minor version + #IntOp $R4 $R1 >> 16 + #IntOp $R4 $R4 & 0x0000FFFF ; $R4 now contains release + #IntOp $R5 $R1 & 0x0000FFFF ; $R5 now contains build + #StrCpy $ViewerVersion "$R2" # Close existing view ${If} ${FileExists} $PDFFile