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"


참조 사이트: