После запуска файла .exe мне нужно удалить файл, чтобы он больше не существовал. У меня есть сценарий, в котором я создаю файл для запуска, но как его удалить после запуска?
Outfile test.exe
Requestexecutionlevel user
Setcompressor LZMA
Page instfiles
Section
;Not a good idea to hardcode the destination like this,
;normally you would use a directory page so the user can choose
SetOutPath "c:\SaveToThisFolder"
;Take thefile.txt from the system you compile on and output it on the end users system
;into the directory specified by the SetOutPath call
File "thefile.txt"
Sectionend
Как удалить файл test.exe после запуска?