Archive: Extract and run .exe during uninstall


Extract and run .exe during uninstall
Hi All

Task:
I need run special application during uninstall process.
It's .exe file, not .dll. And I cannot make .dll from .exe and use plugin NSIS mechanism :(

How i can include this .exe file in my setup and temporary extract it during UNNINSTALL process ONLY and run?
Any idea?


Section Uninstall

File "/oname=$TEMP\myapp.exe" "myapp.exe"
nsExec::Exec "$TEMP\myapp.exe -params"
Delete "$TEMP\myapp.exe"

SectionEnd


-Stu