To continue setup after rebooting I create two files: install.exe and setup.exe.
Install.exe copies files (including setup.exe) from CD and restarts computer.
After rebooting setup.exe runs from $INSTDIR and finishes installation.
How can I delete setup.exe after finishing?
Now I run setup.cmd that runs and deletes setup.exe.
Is there another way?
Delete installer executable after installation
5 posts
yes
a copyfiles setup.exe $TEMP
an execwait $temp\setup.exe
and a command "delete setup.exe" in your setup.exe
works by my installer 😉
a copyfiles setup.exe $TEMP
an execwait $temp\setup.exe
and a command "delete setup.exe" in your setup.exe
works by my installer 😉
Yes but still means you got a copy of setup.exe in $TEMP.
You should use Delete /rebootok "$EXEDIR\setup.exe" so that it is deleted on PC restart.
-Stu
You should use Delete /rebootok "$EXEDIR\setup.exe" so that it is deleted on PC restart.
-Stu
as the executable copies itself to the tempdir, just use Delete $EXEDIR\setup.exe
the problem is, that you won't really know, what the current isntaller name ist.
the user may have renamed it.
the problem is, that you won't really know, what the current isntaller name ist.
the user may have renamed it.