PDA

View Full Version : اجراي فايل bat بعد از نصب



mirkhalili
پنج شنبه 19 آذر 1388, 13:10 عصر
سلام
من مي خواهم فايل نصبي با Instllshied بسازم كه بعد از اتمام نصب يك فايل با پسوند bat را اجرا كند.
اگر كسي مي داند راهنمايي كند با تشكر.

DataMaster
پنج شنبه 19 آذر 1388, 13:21 عصر
اسکریپتش اینه
LaunchAppAndWait (szDir^"AttachDB.exe", "",LAAW_OPTION_WAIT)
ولی دقیقا یادم نیست کجا باید اجرا بشه

mirkhalili
شنبه 28 آذر 1388, 15:59 عصر
من پيداش نكردم

DataMaster
سه شنبه 01 دی 1388, 23:00 عصر
این کد ها رو باید توی Install Script بنویسی

export prototype Database_Installed();
function Database_Installed()
number nResult;
string szDir;


begin
if (LaunchAppAndWait (szDir^"AttachDB.bat", "",LAAW_OPTION_WAIT) < 0) then
MessageBox ("Unable to launch "+ szDir^"AttachDB.bat" +".",SEVERE);

endif;
end;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//---------------------------------------------------------------------------
// The Installed event is sent after the feature Gardesh_Files
// is installed.
//---------------------------------------------------------------------------

export prototype Gardesh_Files_Installed();
function Gardesh_Files_Installed()
begin
Database_Installed();
end;