How to call my.exe file through the uninstall section.
Hi all,
I have a problem in uninstallation.
I need to execute my own exe from the uninstall section. I create a uninstaller by the statement
WriteUninstaller "UnInstall.exe"
After installation the uninstall.exe gets called from add/remove program.
I wanted to call another program(clean.exe) which I have written in the "Uninstall" section and removes some registry entries.
Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MYAPP"
DeleteRegKey HKLM "SOFTWARE\MYAPP"
Exec "clean.exe" ;with full path
SectionEnd
But this does not get called and my uninstallation fails.
I checks the clean.exe always in \Temp dir
Can anybody tell me the correct way of doing it or point to useful example of doing this.
Thanks in advance.
-VCR.