kevin215
02-22-2008, 11:05 AM
i'm make a AutoPlay CD. and having the following code to run an installation. When a user click on the button, below is the script. The problem is that when I run the installation locally. The return code work. When I run on the CD, the return code doesn't work.
Window.Minimize(Application.GetWndHandle());
Install = File.Run("AutoPlay\\Data\\setup.exe", "", "", SW_SHOWNORMAL, true);
if ( Install == 0 ) then
Window.Restore(Application.GetWndHandle());
end;
Can anyone please help me figure out what is wrong? Thanks,
Window.Minimize(Application.GetWndHandle());
Install = File.Run("AutoPlay\\Data\\setup.exe", "", "", SW_SHOWNORMAL, true);
if ( Install == 0 ) then
Window.Restore(Application.GetWndHandle());
end;
Can anyone please help me figure out what is wrong? Thanks,