Nov 10, 2009 09:44 PM
Write the code for uninstallation of your old version in OnBegin() event. After uninstallation, OnFirstUIBefore() gets executed and the new setup will automatically launch. This worked for me.
this is my uninstall code.
szSetup = DISK1SETUPEXENAME;
LaunchAppAndWait (szSetup, "", NOWAIT) ;
;;when i call this function in OnBegin() like this , popup a message :"another app is runing ....".
;;can you show me a uninstall sample code??!! thanks;