only add entries to wininit.ini if short names were retrieved successfully

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3291 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-12-18 19:19:19 +00:00
parent cbab2ce554
commit 6e2d07df31
2 changed files with 12 additions and 11 deletions

View file

@ -303,9 +303,6 @@ static int NSISCALL ExecuteEntry(entry *entry_)
#ifdef NSIS_SUPPORT_MOVEONREBOOT
if (parm2 && file_exists(buf1))
{
#ifdef NSIS_SUPPORT_REBOOT
g_exec_flags.exec_reboot++;
#endif
MoveFileOnReboot(buf1,buf2);
update_status_text(LANG_RENAMEONREBOOT,buf3);
log_printf2("Rename on reboot: %s",buf3);
@ -495,9 +492,6 @@ static int NSISCALL ExecuteEntry(entry *entry_)
#ifdef NSIS_SUPPORT_MOVEONREBOOT
if (parm1)
{
#ifdef NSIS_SUPPORT_REBOOT
g_exec_flags.exec_reboot++;
#endif
log_printf2("Delete: DeleteFile on Reboot(\"%s\")",buf1);
update_status_text(LANG_DELETEONREBOOT,buf1);
MoveFileOnReboot(buf1,NULL);