Thread: [PXCDD-commit] SF.net SVN: pxcdd: [116] trunk/client/win/pxcdd.nsi
Status: Alpha
Brought to you by:
tangentsoft
From: <ric...@us...> - 2006-05-08 17:08:57
|
Revision: 116 Author: ricknroll Date: 2006-05-07 22:23:02 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=116&view=rev Log Message: ----------- Initial NSIS installer script Added Paths: ----------- trunk/client/win/pxcdd.nsi Added: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi (rev 0) +++ trunk/client/win/pxcdd.nsi 2006-05-08 05:23:02 UTC (rev 116) @@ -0,0 +1,83 @@ +;///// PXCDD Installer //////////////////////////////////////////////////// +; NSIS script to create installer for pxcddup + c4d plugin +; detects c4d path by searching program files directory for CINEMA 4D.exe +; +; created by Rick Barrett +;////////////////////////////////////////////////////////////////////////////// + +Name "PXCDD Installer" +OutFile "pxcdd_setup.exe" +Caption "$(^Name)" +XPStyle on + +!include "Sections.nsh" + +!include "FileFunc.nsh" +!insertmacro Locate + +; Convert .py to executable before compiling installer +!execute "make_exe.bat" + +; The default installation directory +InstallDir $PROGRAMFILES\pxcdd + +;///// Define Pages ///////////////////////////////////////////////////// + +PageEx license + LicenseText "License" + LicenseData ../pxcddup/LICENSE +PageExEnd + +Page components + +Page directory "GetInstallDir" + +Page instfiles + +;///// Sections ///////////////////////////////////////////////////////////// + +Section "PXCDDUP Command Line" + + File /r dist\*.* + File pscp.exe + File ..\pxcddup\LICENSE + +SectionEnd + + +Section /o "CINEMA 4D Plugin" sectC4D + + File /r ..\c4d\*.* + +SectionEnd + + +;///// Functions //////////////////////////////////////////////////////////// + +Function C4DPathCheck + + ; Copy found path into register 0 + StrCpy $R0 $R9 + + ; Confirm found path and stop locate function if ok + MessageBox MB_YESNO '$R0$\n$\nFind next?' IDYES +2 + StrCpy $0 StopLocate + + Push $0 + +FunctionEnd + +Function GetInstallDir + + !insertmacro SectionFlagIsSet ${sectC4D} ${SF_SELECTED} "GetC4DPath" "" + + GetC4DPath: + + ${Locate} "$PROGRAMFILES\MAXON" "/L=F /M=CINEMA?4D.exe" "C4DPathCheck" + + IfErrors 0 +2 + MessageBox MB_OK "Error" IDOK +2 + SetOutPath $R0 + +FunctionEnd + \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-05-08 17:08:49
|
Revision: 118 Author: ricknroll Date: 2006-05-07 22:43:56 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=118&view=rev Log Message: ----------- puts pxcddup within a subdirectory - otherwise the plugin folder gets messy Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-05-08 05:40:03 UTC (rev 117) +++ trunk/client/win/pxcdd.nsi 2006-05-08 05:43:56 UTC (rev 118) @@ -38,7 +38,7 @@ Section "PXCDDUP Command Line" - SetOutPath $INSTDIR + SetOutPath $INSTDIR\pxcddup File /r dist\*.* File pscp.exe File ..\pxcddup\LICENSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-05-08 17:32:51
|
Revision: 117 Author: ricknroll Date: 2006-05-07 22:40:03 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=117&view=rev Log Message: ----------- Now replaces install directory with C4D path Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-05-08 05:23:02 UTC (rev 116) +++ trunk/client/win/pxcdd.nsi 2006-05-08 05:40:03 UTC (rev 117) @@ -38,6 +38,7 @@ Section "PXCDDUP Command Line" + SetOutPath $INSTDIR File /r dist\*.* File pscp.exe File ..\pxcddup\LICENSE @@ -47,6 +48,7 @@ Section /o "CINEMA 4D Plugin" sectC4D + SetOutPath $INSTDIR File /r ..\c4d\*.* SectionEnd @@ -57,7 +59,7 @@ Function C4DPathCheck ; Copy found path into register 0 - StrCpy $R0 $R9 + StrCpy $R0 $R8 ; Confirm found path and stop locate function if ok MessageBox MB_YESNO '$R0$\n$\nFind next?' IDYES +2 @@ -77,7 +79,7 @@ IfErrors 0 +2 MessageBox MB_OK "Error" IDOK +2 - SetOutPath $R0 + StrCpy $INSTDIR $R0\plugins\pxcdd\ FunctionEnd \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-05-08 18:01:15
|
Revision: 119 Author: ricknroll Date: 2006-05-07 22:50:25 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=119&view=rev Log Message: ----------- Only search for C4D when C4D plugin option is selected Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-05-08 05:43:56 UTC (rev 118) +++ trunk/client/win/pxcdd.nsi 2006-05-08 05:50:25 UTC (rev 119) @@ -71,7 +71,7 @@ Function GetInstallDir - !insertmacro SectionFlagIsSet ${sectC4D} ${SF_SELECTED} "GetC4DPath" "" + !insertmacro SectionFlagIsSet ${sectC4D} ${SF_SELECTED} "GetC4DPath" "Exit" GetC4DPath: @@ -80,6 +80,8 @@ IfErrors 0 +2 MessageBox MB_OK "Error" IDOK +2 StrCpy $INSTDIR $R0\plugins\pxcdd\ + + Exit: FunctionEnd \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-05-19 03:26:30
|
Revision: 177 Author: ricknroll Date: 2006-05-18 20:26:26 -0700 (Thu, 18 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=177&view=rev Log Message: ----------- Removed pscp from installer - now using Twisted Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-05-18 04:36:53 UTC (rev 176) +++ trunk/client/win/pxcdd.nsi 2006-05-19 03:26:26 UTC (rev 177) @@ -10,14 +10,14 @@ Caption "$(^Name)" XPStyle on +; Convert .py to executable before compiling installer +!execute "make_exe.bat" + !include "Sections.nsh" !include "FileFunc.nsh" !insertmacro Locate -; Convert .py to executable before compiling installer -!execute "make_exe.bat" - ; The default installation directory InstallDir $PROGRAMFILES\pxcdd @@ -40,7 +40,6 @@ SetOutPath $INSTDIR\pxcddup File /r dist\*.* - File pscp.exe File ..\pxcddup\LICENSE SectionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-05-19 04:35:24
|
Revision: 178 Author: ricknroll Date: 2006-05-18 21:35:16 -0700 (Thu, 18 May 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=178&view=rev Log Message: ----------- Associate DDO with pxcddup Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-05-19 03:26:26 UTC (rev 177) +++ trunk/client/win/pxcdd.nsi 2006-05-19 04:35:16 UTC (rev 178) @@ -42,6 +42,26 @@ File /r dist\*.* File ..\pxcddup\LICENSE + ; back up old value of .opt + !define Index "Line${__LINE__}" + ReadRegStr $1 HKCR ".ddo" "" + StrCmp $1 "" "${Index}-NoBackup" + StrCmp $1 "PXCDDOptions" "${Index}-NoBackup" + WriteRegStr HKCR ".ddo" "backup_val" $1 + "${Index}-NoBackup:" + WriteRegStr HKCR ".ddo" "" "PXCDDOptions" + ReadRegStr $0 HKCR "PXCDDOptions" "" + StrCmp $0 "" 0 "${Index}-Skip" + WriteRegStr HKCR "PXCDDOptions" "" "PixelCorps Digital Dailies Options" + WriteRegStr HKCR "PXCDDOptions\shell" "" "Open" + WriteRegStr HKCR "PXCDDOptions\DefaultIcon" "" "$INSTDIR\pxcddup.exe,0" + "${Index}-Skip:" + WriteRegStr HKCR "PXCDDOptions\shell\Open\command" "" \ + '$INSTDIR\pxcddup.exe "%1"' + + System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)' + !undef Index + SectionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-06-06 03:11:30
|
Revision: 230 Author: ricknroll Date: 2006-06-05 20:11:26 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=230&view=rev Log Message: ----------- updated installer script to omit svn and c4d files Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-06-05 16:36:00 UTC (rev 229) +++ trunk/client/win/pxcdd.nsi 2006-06-06 03:11:26 UTC (rev 230) @@ -68,7 +68,7 @@ Section /o "CINEMA 4D Plugin" sectC4D SetOutPath $INSTDIR - File /r ..\c4d\*.* + File /r /x .svn /x *.c4d ..\c4d\*.* SectionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-06-07 05:08:11
|
Revision: 234 Author: ricknroll Date: 2006-06-06 22:08:05 -0700 (Tue, 06 Jun 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=234&view=rev Log Message: ----------- linked new LICENSE text, additional text changes for clarity Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-06-07 05:06:54 UTC (rev 233) +++ trunk/client/win/pxcdd.nsi 2006-06-07 05:08:05 UTC (rev 234) @@ -25,7 +25,7 @@ PageEx license LicenseText "License" - LicenseData ../pxcddup/LICENSE + LicenseData LICENSE PageExEnd Page components @@ -81,7 +81,8 @@ StrCpy $R0 $R8 ; Confirm found path and stop locate function if ok - MessageBox MB_YESNO '$R0$\n$\nFind next?' IDYES +2 + MessageBox MB_YESNO 'CINEMA 4D was found at the following location:$\n$R0$\n$\n \ + Do you wish to keep searching for additional installations?' IDYES +2 StrCpy $0 StopLocate Push $0 @@ -97,7 +98,7 @@ ${Locate} "$PROGRAMFILES\MAXON" "/L=F /M=CINEMA?4D.exe" "C4DPathCheck" IfErrors 0 +2 - MessageBox MB_OK "Error" IDOK +2 + MessageBox MB_OK "CINEMA 4D could not be found. Please specify the install path manually." IDOK +2 StrCpy $INSTDIR $R0\plugins\pxcdd\ Exit: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-06-13 04:07:52
|
Revision: 281 Author: ricknroll Date: 2006-06-12 21:07:50 -0700 (Mon, 12 Jun 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=281&view=rev Log Message: ----------- installing version.txt Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-06-13 03:57:10 UTC (rev 280) +++ trunk/client/win/pxcdd.nsi 2006-06-13 04:07:50 UTC (rev 281) @@ -69,6 +69,7 @@ SetOutPath $INSTDIR File /r /x .svn /x *.c4d ..\c4d\*.* + File ..\version.txt SectionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-07-04 20:23:07
|
Revision: 358 Author: ricknroll Date: 2006-07-04 13:23:02 -0700 (Tue, 04 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=358&view=rev Log Message: ----------- fix to bind branding image into installer exe Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-07-04 20:02:54 UTC (rev 357) +++ trunk/client/win/pxcdd.nsi 2006-07-04 20:23:02 UTC (rev 358) @@ -18,6 +18,19 @@ !include "FileFunc.nsh" !insertmacro Locate +;-------------------------------- + +!macro BIMAGE IMAGE + Push $0 + GetTempFileName $0 + File /oname=$0 "${IMAGE}" + SetBrandingImage $0 + Delete $0 + Pop $0 +!macroend + +;-------------------------------- + ; The default installation directory InstallDir $PROGRAMFILES\pxcdd @@ -80,7 +93,7 @@ ;///// Functions //////////////////////////////////////////////////////////// Function .onGUIinit - SetBrandingImage pxcdd-branding.bmp + !insertmacro BIMAGE "pxcdd-branding.bmp" FunctionEnd Function C4DPathCheck This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-07-04 21:29:25
|
Revision: 360 Author: ricknroll Date: 2006-07-04 14:29:22 -0700 (Tue, 04 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=360&view=rev Log Message: ----------- win installer now look for C4D exe in the install path and the install path parent - if found, it redirects to the C4D plugin path Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-07-04 20:23:29 UTC (rev 359) +++ trunk/client/win/pxcdd.nsi 2006-07-04 21:29:22 UTC (rev 360) @@ -17,6 +17,7 @@ !include "FileFunc.nsh" !insertmacro Locate +!insertmacro GetParent ;-------------------------------- @@ -32,7 +33,7 @@ ;-------------------------------- ; The default installation directory -InstallDir $PROGRAMFILES\pxcdd +InstallDir $PROGRAMFILES\pxcdd\ SetFont "Arial" 10 AddBrandingImage top 50 @@ -48,7 +49,7 @@ Page directory "GetInstallDir" -Page instfiles +Page instfiles "CheckInstallDir" ;///// Sections ///////////////////////////////////////////////////////////// @@ -125,4 +126,20 @@ Exit: FunctionEnd - \ No newline at end of file + +Function AddPluginPath + + StrCpy $R0 "$R8\plugins\pxcdd" + MessageBox MB_OK "PXCDD should be installed within the CINEMA 4D plugins folder.$\n$\nRedirecting installation to:$\n$R0" + StrCpy $INSTDIR $R0 + +FunctionEnd + +Function CheckInstallDir + + ${GetParent} $INSTDIR $R0 + ${Locate} "$INSTDIR" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" + ${Locate} "$R0" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" + ; MessageBox MB_OKCANCEL "Ready to install:$\n$INSTDIR" + +FunctionEnd \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-07-12 04:01:15
|
Revision: 390 Author: ricknroll Date: 2006-07-11 21:01:10 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=390&view=rev Log Message: ----------- fixed path bug in ddo file association Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-07-10 07:33:11 UTC (rev 389) +++ trunk/client/win/pxcdd.nsi 2006-07-12 04:01:10 UTC (rev 390) @@ -71,10 +71,10 @@ StrCmp $0 "" 0 "${Index}-Skip" WriteRegStr HKCR "PXCDDOptions" "" "PixelCorps Digital Dailies Options" WriteRegStr HKCR "PXCDDOptions\shell" "" "Open" - WriteRegStr HKCR "PXCDDOptions\DefaultIcon" "" "$INSTDIR\pxcddup.exe,0" + WriteRegStr HKCR "PXCDDOptions\DefaultIcon" "" "$INSTDIR\pxcddup\pxcddup.exe,0" "${Index}-Skip:" WriteRegStr HKCR "PXCDDOptions\shell\Open\command" "" \ - '$INSTDIR\pxcddup.exe "%1"' + '$INSTDIR\pxcddup\pxcddup.exe "%1"' System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)' !undef Index This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ric...@us...> - 2006-07-12 04:19:49
|
Revision: 391 Author: ricknroll Date: 2006-07-11 21:19:46 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/pxcdd/?rev=391&view=rev Log Message: ----------- only verify C4D path if the C4D plugin option is checked Modified Paths: -------------- trunk/client/win/pxcdd.nsi Modified: trunk/client/win/pxcdd.nsi =================================================================== --- trunk/client/win/pxcdd.nsi 2006-07-12 04:01:10 UTC (rev 390) +++ trunk/client/win/pxcdd.nsi 2006-07-12 04:19:46 UTC (rev 391) @@ -19,6 +19,8 @@ !insertmacro Locate !insertmacro GetParent +!include "Sections.nsh" + ;-------------------------------- !macro BIMAGE IMAGE @@ -137,9 +139,13 @@ Function CheckInstallDir - ${GetParent} $INSTDIR $R0 - ${Locate} "$INSTDIR" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" - ${Locate} "$R0" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" - ; MessageBox MB_OKCANCEL "Ready to install:$\n$INSTDIR" + !insertmacro SectionFlagIsSet ${sectC4D} ${SF_SELECTED} checkC4Dpath skip + checkC4Dpath: + ${GetParent} $INSTDIR $R0 + ${Locate} "$INSTDIR" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" + ${Locate} "$R0" "/L=F /M=CINEMA?4D.exe" "AddPluginPath" + ; MessageBox MB_OKCANCEL "Ready to install:$\n$INSTDIR" + skip: + FunctionEnd \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |