View Single Post
Old 31st August 2017, 20:19   #3
bybyby
Junior Member
 
Join Date: Aug 2017
Posts: 3
Uninstall section...

code:

SilentUnInstall silent
Section "Uninstall"
SetDetailsPrint textonly
DetailPrint "Türkçe Yama kaldırılıyor..."
SetDetailsPrint none
Banner::show "$\n${OYUNADI} Türkçe Yama kaldırılırken lütfen bekleyin."
ReadRegStr $INSTDIR HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REG}" "Home"
SetShellVarContext all
Delete "$SMPROGRAMS\${OYUNADI} Türkçe\${OYUNADI} Türkçe Yama Kaldır.lnk"
Delete "$SMPROGRAMS\${OYUNADI} Türkçe\${OYUNADI}.url"
Delete "$SMPROGRAMS\${OYUNADI} Türkçe\Oku.lnk"
${un.DirState} "$SMPROGRAMS\${OYUNADI} Türkçe\" $R0
StrCmp $R0 "0" 0 +2
RMDir "$SMPROGRAMS\${OYUNADI} Türkçe"
${un.DirState} "$SMPROGRAMS\${OYUNADI} Türkçe" $R0
StrCmp $R0 "0" 0 +2
RMDir "$SMPROGRAMS\${OYUNADI} Türkçe"
SetShellVarContext current


Delete "$INSTDIR\DataPC.forge"
Rename "$INSTDIR\DataPC.forge.bkp" "$INSTDIR\DataPC.forge"

Delete "$INSTDIR\dlc_20\DataPC_20_dlc.forge"
Rename "$INSTDIR\dlc_20\DataPC_20_dlc.forge.bkp" "$INSTDIR\dlc_20\DataPC_20_dlc.forge"


DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${REG}"
Delete "$INSTDIR\oku.exe"
Delete "$INSTDIR\${OYUNADI} Türkçe Yama Kaldır.exe"
RMDir /r "$PROGRAMFILES\${OYUNADI} Türkçe"

Banner::destroy
MessageBox MB_ICONINFORMATION "${OYUNADI} Türkçe Yama bilgisayarınızdan başarıyla kaldırıldı!"
SectionEnd

Function .onGUIEnd
Delay::Free
NotifyIcon::Icon "r"
AnimGif::stop
FunctionEnd

Function OnUserAbort
Delay::Free
NotifyIcon::Icon "r"
AnimGif::stop
FunctionEnd

bybyby is offline   Reply With Quote