mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-11 01:40:10 +00:00
d9c4529a26
Thanks Benoit for pointing this out, and bugfix: http://code.google.com/p/bullet/issues/detail?id=218 + Added point to point, hinge, slider and generic 6dof constraints to Maya Dynamica plugin Thanks to Herbert Law for the constribution: http://code.google.com/p/bullet/issues/detail?id=221
78 lines
2.4 KiB
Plaintext
78 lines
2.4 KiB
Plaintext
; 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.75 physics plugin for Maya 2008"
|
|
|
|
; The file to write
|
|
OutFile "DynamicaForMaya2008_32bit.exe"
|
|
|
|
|
|
; The default installation directory
|
|
InstallDir $PROGRAMFILES\DynamicaBullet2.75\
|
|
|
|
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 |