Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 223 → Rev 224

/bioloid/cli/installer.nsi
1,10 → 1,14
!include EnvVarUpdate.nsh
 
# define installer name
outFile "installer.exe"
 
ShowInstDetails show
 
ShowUnInstDetails show
InstallDir $PROGRAMFILES\Bioloid
 
Name "Bioloid Command Line Utility"
 
Page directory
Page instfiles
UninstPage uninstConfirm
11,8 → 15,8
UninstPage instfiles
# default section start
section
Section "Bioloid Command Line Utility"
 
# define output path
setOutPath $INSTDIR
21,6 → 25,8
# define uninstaller name
writeUninstaller $INSTDIR\uninstaller.exe
 
${EnvVarUpdate} $0 "PATH" "A" "HKCU" "$INSTDIR"
# default section end
sectionEnd
34,5 → 40,7
# now delete installed file
!include file-delete.nsh
 
${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR"
sectionEnd
/bioloid/cli/Makefile
61,11 → 61,11
 
MK_DEVICE_TYPE_FILES := $(wildcard reg-*.bld)
MK_HTM_FILES := $(wildcard *.htm)
MK_NSI_FILES := $(wildcard *.nsi)
MK_NSI_FILES := $(wildcard *.nsi) $(wildcard *.nsh)
 
MK_COPY_FILES := $(MK_NSI_FILES) $(MK_HTM_FILES) $(MK_DEVICE_TYPE_FILES)
MK_COPY_FILES := $(addprefix $(MK_BIN_DIR)/,$(MK_NSI_FILES) $(MK_HTM_FILES) $(MK_DEVICE_TYPE_FILES))
 
$(addprefix $(MK_BIN_DIR)/,$(MK_COPY_FILES)) : $(MK_BIN_DIR)/% : %
$(MK_COPY_FILES) : $(MK_BIN_DIR)/% : %
@echo "Copying $< to $@ ..."
cp $< $@
80,7 → 80,7
MK_INSTALL_FILES += $(MK_HTM_FILES)
MK_INSTALL_FILES += $(MK_DEVICE_TYPE_FILES)
 
installer : $(addprefix $(MK_BIN_DIR)/,$(MK_COPY_FILES))
installer : $(MK_COPY_FILES)
@$(ECHO) -e "file $(subst $(space),\nfile ,$(MK_INSTALL_FILES))" > $(MK_BIN_DIR)/file-list.nsh
@$(ECHO) -e "delete \$$INSTDIR\\\\$(subst $(space),\ndelete \$$INSTDIR\\\\,$(MK_INSTALL_FILES))" > $(MK_BIN_DIR)/file-delete.nsh
(cd $(MK_BIN_DIR); makensis installer.nsi)