Ok i used that script at the link and the file path is written into the uninstall.log but when I run the uninstaller it doesn't delete the file.
Function un.Rename
Rename $INSTDIR\userconfig.cfg.old $INSTDIR\userconfig.cfg
FunctionEnd
Section Uninstall
; Can't uninstall if uninstall.log is missing!
IfFileExists "$INSTDIR\uninstall.log" +3
MessageBox MB_OK|MB_ICONSTOP "uninstall.log not found!$\r$\nUninstallation cannot be done!"
Abort
Push $R0
FileOpen $UninstLog "$INSTDIR\uninstall.log" r
LoopRead:
ClearErrors
FileRead $UninstLog $R0
IfErrors LoopDone
Push $R0
Call un.TrimNewLines
Pop $R0
Delete $R0
Goto LoopRead
LoopDone:
FileClose $UninstLog
Pop $R0
Call un.inst
SectionEnd
function un.inst
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\Uninstall.log"
Call un.rename
FunctionEnd
Function un.TrimNewlines
Exch $R0
Push $R1
Push $R2
StrCpy $R1 0
loop:
IntOp $R1 $R1 - 1
StrCpy $R2 $R0 1 $R1
StrCmp $R2 "$\r" loop
StrCmp $R2 "$\n" loop
IntOp $R1 $R1 + 1
IntCmp $R1 0 no_trim_needed
StrCpy $R0 $R0 $R1
no_trim_needed:
Pop $R2
Pop $R1
Exch $R0
FunctionEnd
That is the code im using for the uninstaller and this is what is in the log file:
c:\steam\steamapps\etc3313@hotmail.com\Counter-Strike\userconfig.cfg
But it doesn't uninstall that file.