With NSIS 2.06.
In the uninstall section, i wanted to delete a specific file.
If I do the following, it works :
I don't want to display a message box but the following doesn't work (it doesn't delete the file:
SetOutPath "$INSTDIR"
MessageBox MB_OK "Before deleting the file"
Delete "$OUTDIR\bin\flmprg.exe"
So i'm doing the following trick but the progress bar during uninstall is "jumping"
SetOutPath "$INSTDIR"
Delete "$OUTDIR\bin\flmprg.exe"
Is this a bug or am i doing something wrong ?
SetOutPath "$INSTDIR"
${UnFileOrDirStatus} $R1 "$OUTDIR\bin\flmprg.exe"
${While} $R1 != "does not exist"
Delete "$OUTDIR\bin\flmprg.exe"
${UnFileOrDirStatus} $R1 "$OUTDIR\bin\flmprg.exe"
${EndWhile}
EDIT : seems that a sleep help a little bit :
SetOutPath "$INSTDIR"
${UnFileOrDirStatus} $R1 "$OUTDIR\bin\flmprg.exe"
${While} $R1 != "does not exist"
sleep 200
Delete "$OUTDIR\bin\flmprg.exe"
${UnFileOrDirStatus} $R1 "$OUTDIR\bin\flmprg.exe"
${EndWhile}
Geoffrey