Add Dynamica Bullet installer script for NSIS Nullscript scriptable install system 2.39 for Windows.
Assumes Microsoft Visual Studio 2005 installed in the default location, and BulletMayaPlugin.mll compiled.
This commit is contained in:
1
Extras/MayaPlugin/BulletDynamica.6_module
Normal file
1
Extras/MayaPlugin/BulletDynamica.6_module
Normal file
@@ -0,0 +1 @@
|
||||
+ BulletDynamica2.72 1.0
|
||||
78
Extras/MayaPlugin/bullet.nsi
Normal file
78
Extras/MayaPlugin/bullet.nsi
Normal file
@@ -0,0 +1,78 @@
|
||||
; example1.nsi
|
||||
;
|
||||
; This script is perhaps one of the simplest NSIs you can make. All of the
|
||||
; optional settings are left to their default settings. The installer simply
|
||||
; prompts the user asking them where to install, and drops a copy of "MyProg.exe"
|
||||
; there.
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; The name of the installer
|
||||
Name "Dynamica Bullet 2.72 physics plugin for Maya 2008"
|
||||
|
||||
; The file to write
|
||||
OutFile "DynamicaForMaya2008_32bit.exe"
|
||||
|
||||
|
||||
; The default installation directory
|
||||
InstallDir $PROGRAMFILES\DynamicaBullet2.72\
|
||||
|
||||
UninstPage uninstConfirm
|
||||
UninstPage instfiles
|
||||
|
||||
; The text to prompt the user to enter a directory
|
||||
DirText "This will install Dynamica Bullet For Maya. Choose destination directory"
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; The stuff to install
|
||||
Section "" ;No components page, name is not important
|
||||
;Create Dynamica directories
|
||||
;CreateDirectory "$INSTDIR\dll"
|
||||
CreateDirectory "$INSTDIR\doc"
|
||||
CreateDirectory "$INSTDIR\scenes\"
|
||||
CreateDirectory "$INSTDIR\icons"
|
||||
CreateDirectory "$INSTDIR\plug-ins"
|
||||
CreateDirectory "$INSTDIR\scripts"
|
||||
|
||||
;SetOutPath "$INSTDIR\dll"
|
||||
;File "dll\*.dll"
|
||||
SetOutPath "$INSTDIR\doc"
|
||||
File "doc\*.*"
|
||||
SetOutPath "$INSTDIR\scenes"
|
||||
File "scenes\*.*"
|
||||
SetOutPath "$INSTDIR\icons"
|
||||
File "icons\*.*"
|
||||
SetOutPath "$INSTDIR\plug-ins"
|
||||
File "BulletMayaPlugin.mll"
|
||||
File "C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcp80.dll"
|
||||
File "C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
|
||||
|
||||
SetOutPath "$INSTDIR\scripts"
|
||||
File "scripts\*.*"
|
||||
SetOutPath "$DOCUMENTS\maya\modules\"
|
||||
File "BulletDynamica.6_module"
|
||||
|
||||
FileOpen $0 $DOCUMENTS\maya\modules\BulletDynamica.6_module a
|
||||
FileSeek $0 0 END
|
||||
FileWrite $0 "$INSTDIR$\n"
|
||||
FileClose $0
|
||||
|
||||
CreateDirectory "$SMPROGRAMS\Dynamica Bullet"
|
||||
CreateShortCut "$SMPROGRAMS\Dynamica Bullet\Documentation.lnk" "$INSTDIR\doc\index.html"
|
||||
CreateShortCut "$SMPROGRAMS\Dynamica Bullet\Examples.lnk" "$INSTDIR\scenes\"
|
||||
CreateShortCut "$SMPROGRAMS\Dynamica Bullet\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
ExecShell "open" "$INSTDIR\doc\index.html"
|
||||
|
||||
WriteUninstaller $INSTDIR\Uninstall.exe
|
||||
SectionEnd ; end the section
|
||||
|
||||
Section "Uninstall"
|
||||
ClearErrors
|
||||
MessageBox MB_YESNO "Uninstall Bullet for MAYA?" IDNO end
|
||||
|
||||
Delete "$DOCUMENTS\maya\modules\DynamicaBullet.6_module"
|
||||
RMDir /r "$SMPROGRAMS\Dynamica Bullet\"
|
||||
RMDir /r "$INSTDIR"
|
||||
end:
|
||||
SectionEnd
|
||||
Reference in New Issue
Block a user