Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "D:\KCSC\project\CARIsWeekly\trunk\CARIsWeekly\bin\Release\CARIsWeekly.exe"
CreateDirectory "$SMPROGRAMS\CarisWeekly"
CreateShortCut "$SMPROGRAMS\CarisWeekly\CarisWeekly.lnk" "$INSTDIR\CARIsWeekly.exe"
CreateShortCut "$DESKTOP\CarisWeekly.lnk" "$INSTDIR\CARIsWeekly.exe"
File "D:\KCSC\project\CARIsWeekly\trunk\CARIsWeekly\bin\Release\config.dat"
File "D:\KCSC\project\CARIsWeekly\trunk\CARIsWeekly\bin\Release\CARIsWeekly.exe.config"
; 시작 프로그램에 등록
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "CARIsWeekly" "$INSTDIR\CARIsWeekly.exe"
SectionEnd
Uninstall할때도 레지스트리에서 깨끗하게 지우자.
Section Uninstall
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
Delete "$INSTDIR\CARIsWeekly.exe.config"
Delete "$INSTDIR\config.dat"
Delete "$INSTDIR\CARIsWeekly.exe"
Delete "$SMPROGRAMS\CarisWeekly\Uninstall.lnk"
Delete "$SMPROGRAMS\CarisWeekly\Website.lnk"
Delete "$DESKTOP\CarisWeekly.lnk"
Delete "$SMPROGRAMS\CarisWeekly\CarisWeekly.lnk"
RMDir "$SMPROGRAMS\CarisWeekly"
RMDir "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
; 시작프로그램도 삭제
DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" "CARIsWeekly"
SetAutoClose true
SectionEnd
'프로그래밍' 카테고리의 다른 글
oracle MD5 암호화 (0) | 2009.10.23 |
---|---|
오라클 특정 컬럼 암호화 하기 (0) | 2009.10.23 |
eclipse 에서 jsp 작업할 때 한글 입력했더니 저장이 안될때 (0) | 2009.06.03 |
svn에서 pageant를 이용해 자동 ssh 로그인 하는 방법 (0) | 2009.06.02 |
C# 2005로 COM만들고 C++에서 사용하기 (0) | 2008.01.24 |