Changeset 823 for trunk/setup.nsi


Ignore:
Timestamp:
03/16/11 14:15:48 (9 years ago)
Author:
beliar
Message:

Patch by Beliar

setup.nsi:

  • Fixed bug that made the Post and Additional sections visible and possible to be unchecked
  • Added Notes at the top of the file
  • Added license directory to the Avanced Uninstall Log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.nsi

    r822 r823  
     1############################################################### 
     2#NSIS script for PARPG 
     3# 
     4# Non standard plugins 
     5# 
     6# ZipDLL : http://nsis.sourceforge.net/ZipDLL_plug-in 
     7# Please note the install instructions 
     8# 
     9# Advanced Uninstall Log 2 
     10# Header for that is in the same directory as this script - AdvUninstLog2.nsh 
     11# 
     12# Python module installer 
     13# Header for that is in the same directory as this script - python-module.nsh 
     14# 
    115!define PRODUCT_NAME "PARPG Techdemo 2" 
    216!define PRODUCT_VERSION "SVN trunk r788" 
     
    162176  FILE /r /x *svn* "${PARPG_DIR}\character_scripts\" 
    163177  !insertmacro UNINSTALL.LOG_CLOSE_INSTALL 
     178  SetOutPath "$INSTDIR\license" 
     179  !insertmacro UNINSTALL.LOG_OPEN_INSTALL 
    164180  FILE /r /x *svn* "${PARPG_DIR}\license\" 
    165181  !insertmacro UNINSTALL.LOG_CLOSE_INSTALL 
     
    169185  FILE "${PARPG_DIR}\README" 
    170186  FILE "${PARPG_DIR}\AUTHORS" 
    171   FILE "${PARPG_DIR}\run.py" FILE "${PARPG_DIR}\system.cfg" 
     187  FILE "${PARPG_DIR}\run.py"  
     188  FILE "${PARPG_DIR}\system.cfg" 
    172189   
    173190  RENAME "README" "README.txt" 
     
    184201#SectionEnd 
    185202 
    186 Section "Additional" -AdditionalIcons 
     203Section "-Additional" -AdditionalIcons 
     204  SectionIn RO 
    187205  #avoid shortcuts headaches on vista by doing everything in the all users start menu 
    188206  SetShellVarContext all 
     
    196214SectionEnd 
    197215 
    198 Section "Post" -Post 
     216Section "-Post" -Post 
     217  SectionIn RO 
    199218  WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "DisplayName" "$(^Name)" 
    200219  WriteRegStr ${INSTDIR_REG_ROOT} "${INSTDIR_REG_KEY}" "UninstallString" "${UNINST_EXE}" 
Note: See TracChangeset for help on using the changeset viewer.