nadeemajl
Posts: 5
Joined: Fri Jun 17, 2005 8:00 am

executing bat /cmd file on install using cutom actions

hi!

I want to execute a .bat file which will install a at tasks (similar to cron jobs but this is for windows) , I can sucessfully do this using "Add predefined custom action" under Install custom action , this works fine in windows xp but not on windows 2k , for some reason the .bat file execution gets stuck after executing the first line . Is the another way to execute a .bat file on install /uninstall ??. Also is a way to install cron jobs / schduled tasks using ai.

The contents of the .bat file are as follows

Code: Select all

regsvr32 /s atl.dll
regsvr32 /s gathhelp.dll
:: Rotate log every 6 hrs 
for %%t in (0 6 12 18) do at %%t:15 /every M,T,W,Th,F,S,Su c:\gather\rotatelog
I also execute a .bat file on unistallation , I get the same problem as sated above , ie., works fine on win xp but not on win 2k.[/quote]

Any help will be appriciated .
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

If your BAT file is executed the first time it means that Advanced Installer launches it correctly. The problem doesn't reside in Advanced Installer.

Maybe there is a problem with regsvr32 on Win 2k?

Also, I'm afraid Advanced Installer doesn't explicitly offer support for cron jobs.

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
nadeemajl
Posts: 5
Joined: Fri Jun 17, 2005 8:00 am

could you please give me ur aim/ym contact , I am in desperate situation.

Return to “Common Problems”