cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
keleman
Level 4

how to automatic run the setup.exe

hi :
i want automatic run the setup.exe, after i uninstalled the old version project.
how can i do that ???
Labels (1)
0 Kudos

(4) Replies
ChandanOmkar
Level 8

What is your project type?
0 Kudos
keleman
Level 4

ChandanOmkar wrote:
What is your project type?


my project type is installscript .
0 Kudos
ChandanOmkar
Level 8

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.
0 Kudos
keleman
Level 4

ChandanOmkar wrote:
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.


hi :
this is my uninstall code.

function UnInstallProVerison()

STRING szSetup;

begin

szSetup = DISK1SETUPEXENAME;
LaunchAppAndWait (szSetup, "", NOWAIT) ;

end;



;;when i call this function in OnBegin() like this , popup a message :"another app is runing ....".

function OnBegin()
begin
UnInstallProVerison();
end;


;;can you show me a uninstall sample code??!! thanks;
0 Kudos