[PXCDD-commit] SF.net SVN: pxcdd: [360] trunk/client/win/pxcdd.nsi
Status: Alpha
Brought to you by:
tangentsoft
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. |