[1514ca]: CPGenerators / Autopano.nsh  Maximize  Restore  History

Download this file

36 lines (32 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
; Autopano CP Generator
!define AUTOPANO_VERSION "103"
!define AUTOPANO_SIZE 700
!define AUTOPANO_DL_URL "http://autopano.kolor.com/autopano_v103.zip"
!define AUTOPANO_LICENSE_FILE "Licenses/Autopano.txt"
; Autopano download and install
Section /o "Autopano ${AUTOPANO_VERSION}" SecAutopano
AddSize ${AUTOPANO_SIZE} ; Autopano size
DetailPrint "$(TEXT_CPDownloading) Autopano ${AUTOPANO_VERSION}"
; SetDetailsPrint both
Dialer::AttemptConnect
NSISdl::download /TIMEOUT=30000 ${AUTOPANO_DL_URL} "$TEMP\autopano.zip"
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint $(TEXT_ERROR_DownloadFailed)
MessageBox MB_OK "$(TEXT_ERROR_DownloadFailed): Autopano ${AUTOPANO_VERSION}"
Goto end
success:
DetailPrint "Autopano ${AUTOPANO_VERSION} Downloaded!"
DetailPrint "$(TEXT_CPExtracting) Autopano ${AUTOPANO_VERSION}"
; File /nonfatal "autopano.zip"
nsisunz::UnzipToLog /noextractpath /file "autopano_v${AUTOPANO_VERSION}zip/autopano.exe" "$TEMP\autopano.zip" "$INSTDIR\bin"
Delete "$TEMP\autopano.zip"
StrCpy $R0 0 ; R0 = Type
StrCpy $R1 1 ; R1 = Option
StrCpy $R2 "$INSTDIR\bin\autopano.exe" ; R2 = Program
StrCpy $R3 "/allinone /path:%d /keys:%p /project:oto /name:%o /size:1024 /f %i" ; R3 = Arguments
StrCpy $R4 "Autopano ${AUTOPANO_VERSION}"; R4 = Description
Call ControlPointRegistryAdd
end:
SectionEnd

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks