Changeset 3054
- Timestamp:
- 05/10/09 20:58:25 (4 years ago)
- Location:
- trunk/win32/nsis
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
installer.nsi (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/win32/nsis/ChangeLog
r3053 r3054 1 2009-02-18 matysek <matysek03@users.sf.net> 2 3 * added quick launch icon 4 * added possibility to install shortcuts for all/current user 5 1 6 2009-02-18 matysek <matysek03@users.sf.net> 2 7 -
trunk/win32/nsis/installer.nsi
r3053 r3054 187 187 !insertmacro MUI_PAGE_LICENSE \ 188 188 $(LICENSE_FILE) ; defined in language file 189 ;!insertmacro MUI_PAGE_COMPONENTS189 !insertmacro MUI_PAGE_COMPONENTS 190 190 !insertmacro MUI_PAGE_DIRECTORY 191 191 !insertmacro MUI_PAGE_INSTFILES 192 192 193 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuDir193 ;!insertmacro MUI_PAGE_STARTMENU Application $StartMenuDir 194 194 195 195 ; page with release notes … … 243 243 ; Section is like one component 244 244 Section $(CORE_SEC_TITLE) SecCore 245 246 ; shortcuts will be installed for all users - Desktop/Startmenu247 ; and Sword data files will be also installed for all users248 SetShellVarContext all249 250 245 251 246 ; Install fonts … … 293 288 !insertmacro UNINSTALL.LOG_CLOSE_INSTALL 294 289 295 ; Install Sword files 290 ; Sword data files need to be installed for all users 291 SetShellVarContext all 292 ; Install Sword files - not needed to uninstall 296 293 SetOutPath '$APPDATA\${INSTPATH_SWORD}' 297 294 File /r "${SWORD_F}" 298 299 ; startmenu/shortcuts 300 301 !define STM_DIR "$SMPROGRAMS\$StartMenuDir" 302 303 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application 304 ;Create shortcuts 305 CreateDirectory '${STM_DIR}' 306 CreateShortCut '${STM_DIR}\${APP_NAME}.lnk' '$INSTDIR\bin\${APP_BINARY_NAME}' 307 CreateShortCut '${STM_DIR}\Uninstall.lnk' '${UNINST_EXE}' 308 ; utils.bat and EN help file 309 CreateShortCut '${STM_DIR}\Utils.lnk' '$INSTDIR\bin\utils.bat' 310 CreateShortCut '${STM_DIR}\Help.lnk' '$INSTDIR\share\help\C\xiphos.chm' 311 !insertmacro MUI_STARTMENU_WRITE_END 312 313 ; Desktop shortcuts 314 CreateShortCut '$DESKTOP\${APP_NAME}.lnk' '$INSTDIR\bin\${APP_BINARY_NAME}' 295 ; set to default value 296 SetShellVarContext current 315 297 316 298 ; Add uninstall information to Add/Remove Programs … … 340 322 341 323 ;-------------------------------- 324 ; Other Sections Section 325 326 Section "Install for All Users" 327 ; shortcuts will be installed for all users - Desktop/Startmenu/Quick launch 328 SetShellVarContext all 329 SectionEnd 330 331 Section "Start Menu Shortcuts" 332 ; startmenu/shortcuts 333 !define STM_DIR "$SMPROGRAMS\${APP_NAME}" 334 335 ; Create shortcuts 336 CreateDirectory '${STM_DIR}' 337 CreateShortCut '${STM_DIR}\Uninstall.lnk' '${UNINST_EXE}' 338 CreateShortCut '${STM_DIR}\Xiphos Help.lnk' '$INSTDIR\share\help\C\xiphos.chm' 339 CreateShortCut '${STM_DIR}\Utils.lnk' '$INSTDIR\bin\utils.bat' 340 CreateShortCut '${STM_DIR}\${APP_NAME}.lnk' '$INSTDIR\bin\${APP_BINARY_NAME}' 341 SectionEnd 342 343 Section "Desktop Shortcut" 344 CreateShortCut '$DESKTOP\${APP_NAME}.lnk' '$INSTDIR\bin\${APP_BINARY_NAME}' 345 SectionEnd 346 347 Section "Quick Launch Icon" 348 CreateShortCut '$QUICKLAUNCH\${APP_NAME}.lnk' '$INSTDIR\bin\${APP_BINARY_NAME}' 349 SectionEnd 350 351 ;-------------------------------- 342 352 ; Installer Functions 343 353 … … 368 378 369 379 Section Uninstall 370 371 ; uninstall shortcuts for all users - Desktop/Startmenu372 SetShellVarContext all373 380 374 381 ; Hack to speed up uninstaller … … 391 398 RMDir "$PROGRAMFILES\CrossWire" 392 399 393 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuDir 394 !define ST_MENU "$SMPROGRAMS\$StartMenuDir" 395 400 401 ;----------------------------------- 402 ; Uninstall shortcuts for all susers 403 404 ; uninstall shortcuts for all users - Desktop/Startmenu 405 SetShellVarContext all 406 407 !define ST_MENU "$SMPROGRAMS\${APP_NAME}" 408 409 ; remove Startmenu 396 410 Delete "${ST_MENU}\${APP_NAME}.lnk" 397 411 Delete "${ST_MENU}\Uninstall.lnk" 398 412 Delete "${ST_MENU}\Utils.lnk" 399 Delete "${ST_MENU}\ Help.lnk"413 Delete "${ST_MENU}\${APP_NAME} Help.lnk" 400 414 RMDir "${ST_MENU}" 415 416 ; remove desktop icon 401 417 Delete "$DESKTOP\${APP_NAME}.lnk" 418 419 ; remove Quick Launch icon 420 Delete "$QUICKLAUNCH\${APP_NAME}.lnk" 421 422 ;------------------------------------- 423 ; Uninstall shortcuts for current user 424 425 ; uninstall shortcuts for current user - Desktop/Startmenu 426 SetShellVarContext current 427 428 !define ST2_MENU "$SMPROGRAMS\${APP_NAME}" 429 430 ; remove Startmenu 431 Delete "${ST2_MENU}\${APP_NAME}.lnk" 432 Delete "${ST2_MENU}\Uninstall.lnk" 433 Delete "${ST2_MENU}\Utils.lnk" 434 Delete "${ST2_MENU}\${APP_NAME} Help.lnk" 435 RMDir "${ST2_MENU}" 436 437 ; remove desktop icon 438 Delete "$DESKTOP\${APP_NAME}.lnk" 439 440 ; remove Quick Launch icon 441 Delete "$QUICKLAUNCH\${APP_NAME}.lnk" 442 402 443 403 444 ; clean Windows Registry