View Single Post
Old 1st September 2017, 07:55   #5
bybyby
Junior Member
 
Join Date: Aug 2017
Posts: 3
Problem solved. Working codes;

code:

SilentUnInstall silent

Section "Uninstall"
ClearErrors
${If} ${RunningX64} # if windows x64
SetRegView 64
ReadRegStr $R0 HKLM ${GAMEREG}
${Else}
SetRegView 32
ReadRegStr $R0 HKLM ${GAMEREG}
${EndIf}

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