Platform/Environment
쉘 - NSIS
jjryu
2009. 12. 30. 13:35
# create a start menu item
SetShellVarContext all
createShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\uninstall.exe"
create a shortcut named "new shortcut" in the start menu programs directory
SetShellVarContext all
delete "$SMPROGRAMS\new shortcut.lnk"
!include "FileFunc.nsh"
${RefreshShellIcons}
# to add entries to the "Add/Remove Programs" section in the Control Panel
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ImageMaker" \
"DisplayName" "Image Maker -- super software from Great Northern"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ImageMaker" \
"UninstallString" "$\"$INSTDIR\uninstaller.exe$\""
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ImageMaker"
참조 사이트:
http://jjjryu.tistory.com/entry/%EC%BB%A8%ED%8A%B8%EB%A1%A4-NSIS
http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.21
http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.21