I have written nsis script for creating exe file.I have included REPAIR and REMOVE feature in my script.By default i have checked REPAIR Radio button.If the user clicks remove button it will remove the already installed file using following command
Function Remove
Exec "$INSTDIR\uninstall.exe"
Quit
FunctionEnd
If the user click the remove button it will open the un install window and the user click the uninstall button then only the un install operation will be proceeded. |Is there any way without asking user input we'll do the remove operation if the user select the remove option?
Exec '"$INSTDIR\uninstall.exe" /S'
You can read more about the command line options in the manual.