Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /CPGenerators/Autopano-sift-c.nsh [1514ca] .. [662a9a] Maximize Restore

  Switch to side-by-side view

--- a/CPGenerators/Autopano-sift-c.nsh
+++ b/CPGenerators/Autopano-sift-c.nsh
@@ -1,29 +1,29 @@
 ; Autopano-sift-c
-!define AUTOPANOSIFTC_VERSION "2.5.2"
-!define AUTOPANOSIFTC_SIZE 1500
-; !define AUTOPANOSIFTC_DL_URL "ftp://tksftp:TKSpwd1@tksharpless.net/autopano-sift-c.exe"
-!define AUTOPANOSIFTC_DL_URL "http://dl.dropbox.com/u/2070182/hugin/autopano-sift-c_2.5.2.7z"
+!define AUTOPANO_SIFTC_VERSION "2.5.2 (TKSharpless)"
+!define AUTOPANO_SIFTC_SIZE 1500
+; !define AUTOPANO_SIFTC_DL_URL "ftp://tksftp:TKSpwd1@tksharpless.net/autopano-sift-c.exe"
+!define AUTOPANO_SIFTC_DL_URL "http://dl.dropbox.com/u/2070182/hugin/autopano-sift-c_2.5.2.7z"
 
-Section "Autopano-SIFT-C ${AUTOPANOSIFTC_VERSION}" SecAutopanoSIFTC
+Section /o "Autopano-SIFT-C ${AUTOPANO_SIFTC_VERSION}" SecAutopano_SIFTC
   ; SectionIn RO
-  AddSize ${AUTOPANOSIFTC_SIZE}
-  SetOutPath "$INSTDIR\bin"
+  AddSize ${AUTOPANO_SIFTC_SIZE}
+  SetOutPath "$INSTDIR\CPG\Autopano_SIFTC"
   
-  DetailPrint "$(TEXT_CPDownloading) Autopano-sift-C ${AUTOPANOSIFTC_VERSION}"
+  DetailPrint "$(TEXT_CPDownloading) Autopano-sift-C ${AUTOPANO_SIFTC_VERSION}"
   
   Dialer::AttemptConnect
-  NSISdl::download /TIMEOUT=30000 ${AUTOPANOSIFTC_DL_URL} "$TEMP\autopano-sift-c.7z"
+  NSISdl::download /TIMEOUT=30000 ${AUTOPANO_SIFTC_DL_URL} "$TEMP\autopano-sift-c.7z"
   
   Pop $0
   StrCmp $0 success success
     SetDetailsView show
     DetailPrint $(TEXT_ERROR_DownloadFailed)
-    MessageBox MB_OK "$(TEXT_ERROR_DownloadFailed): Autopano-SIFT-C ${AUTOPANOSIFTC_VERSION}" 
+    MessageBox MB_OK "$(TEXT_ERROR_DownloadFailed): Autopano-SIFT-C ${AUTOPANO_SIFTC_VERSION}" 
     Goto end
 
   success:
-      DetailPrint "Autopanp-SIFT-C ${AUTOPANOSIFTC_VERSION} Downloaded!"
-      DetailPrint "$(TEXT_CPExtracting) Autopano-SIFT-C ${AUTOPANOSIFTC_VERSION}"
+      DetailPrint "Autopanp-SIFT-C ${AUTOPANO_SIFTC_VERSION} Downloaded!"
+      DetailPrint "$(TEXT_CPExtracting) Autopano-SIFT-C ${AUTOPANO_SIFTC_VERSION}"
       ; File /nonfatal "autopano.zip"
       Nsis7z::Extract "$TEMP\autopano-sift-c.7z"
       
@@ -31,9 +31,9 @@
       
       StrCpy $R0 1 ; R0 = Type
       StrCpy $R1 1 ; R1 = Option
-      StrCpy $R2 "$INSTDIR\bin\autopano-sift-c.exe" ; R2 = Program
+      StrCpy $R2 "$INSTDIR\CPG\Autopano_SIFTC\autopano-sift-c.exe" ; R2 = Program
       StrCpy $R3 "--maxmatches %p --projection %f,%v %o %i" ; R3 = Arguments
-      StrCpy $R4 "Autopano-SIFT-C ${AUTOPANOSIFTC_VERSION}";  R4 = Description
+      StrCpy $R4 "Autopano-SIFT-C ${AUTOPANO_SIFTC_VERSION}";  R4 = Description
       Call ControlPointRegistryAdd
 
   end: