From 68aae6f032684069b7003e258f0d9e3a0f08eb85 Mon Sep 17 00:00:00 2001 From: Frank van Beek Date: Mon, 10 Feb 2003 17:43:41 +0000 Subject: - add GPL-license to installer - add options in installer to create desktop icon and register .blend files --- release/windows/installer/00.blender.nsi | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'release/windows') diff --git a/release/windows/installer/00.blender.nsi b/release/windows/installer/00.blender.nsi index f1ecc187241..20f4c82ed6a 100644 --- a/release/windows/installer/00.blender.nsi +++ b/release/windows/installer/00.blender.nsi @@ -20,8 +20,8 @@ LicenseText "Please read and agree to the license below:" LicenseData "DISTDIR\Copyright.txt" Function .onInstSuccess - MessageBox MB_YESNO "Blender was successfully setup on your computer. Do you wish to start Blender now and register itself with .blend files?" IDNO NoThanks - ExecShell "open" '"$INSTDIR\blender.exe"' "-R" + MessageBox MB_YESNO "Blender was successfully setup on your computer. $\rDo you wish to start Blender now ?" IDNO NoThanks + ExecShell "open" '"$INSTDIR\blender.exe"' NoThanks: FunctionEnd @@ -38,6 +38,7 @@ Section "Blender-VERSION (required)" File DISTDIR\python22.dll File DISTDIR\Copyright.txt File DISTDIR\Readme.txt + File DISTDIR\GPL-license.txt File DISTDIR\Help.url ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\BlenderFoundation "Install_Dir" "$INSTDIR" @@ -49,16 +50,25 @@ SectionEnd SectionDivider -Section "Start Menu Shortcuts" +Section "Add Start Menu shortcuts" CreateDirectory "$SMPROGRAMS\Blender Foundation\Blender-VERSION\" CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\Blender.lnk" "$INSTDIR\Blender.exe" "" "$INSTDIR\blender.exe" 0 CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\Readme.lnk" "$INSTDIR\Readme.txt" "" "" 0 CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\Copyright.lnk" "$INSTDIR\Copyright.txt" "" "$INSTDIR\copyright.txt" 0 + CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\GPL-license.lnk" "$INSTDIR\GPL-license.txt" "" "$INSTDIR\GPL-license.txt" 0 CreateShortCut "$SMPROGRAMS\Blender Foundation\Blender-VERSION\Help.lnk" "$INSTDIR\Help.url" - MessageBox MB_YESNO "Do you wish to create a shortcut on your desktop?" IDNO NoDeskShortcut - CreateShortCut "$DESKTOP\Blender-VERSION.lnk" "$INSTDIR\blender.exe" "" "$INSTDIR\blender.exe" 0 - NoDeskShortcut: + ; MessageBox MB_YESNO "Do you wish to create a shortcut on your desktop?" IDNO NoDeskShortcut + ; CreateShortCut "$DESKTOP\Blender-VERSION.lnk" "$INSTDIR\blender.exe" "" "$INSTDIR\blender.exe" 0 + ; NoDeskShortcut: +SectionEnd + +Section "Add Desktop Blender-VERSION shortcut" + CreateShortCut "$DESKTOP\Blender-VERSION.lnk" "$INSTDIR\blender.exe" "" "$INSTDIR\blender.exe" 0 +SectionEnd + +Section "Open .blend files with Blender-VERSION" + ExecShell "open" '"$INSTDIR\blender.exe"' "-R -b" SectionEnd UninstallText "This will uninstall Blender VERSION. Hit next to continue." @@ -72,6 +82,7 @@ Section "Uninstall" Delete $INSTDIR\python22.dll Delete $INSTDIR\Copyright.txt Delete $INSTDIR\Readme.txt + Delete $INSTDIR\GPL-license.txt Delete $INSTDIR\Help.url Delete $INSTDIR\uninstall.exe ; remove shortcuts, if any. -- cgit v1.2.3