PDA

View Full Version : Batch file to run on Before Install screens



kk250040
01-07-2009, 01:21 AM
hello friends,

I have a batch file that takes the backup of the requisites on the host machine before my installation. I have packaged it with the installation package. Batch file is for taking backup, so obviously need it to be run on BeforeInstalling screens(to show a progress bar screen). But how do I run it before even my batch file is installed on host machine??

Is there a procedure where i can add some actions or screens on While Installing, i.e after installing/extracting all the inst. stuff to the host.
Or something to run just before the "Post-Install" event starts running.
You can advise me to run the batch at the beginning of the PostInstall event, but then I cannot show a progress bar screen from these events, or can I ???

So what I need is to run a batch file even before it being extracted to the host, or atleast to run it as soon as the files get extracted but still show the progress bar screen. Please help :huh

Any help needed!
Thanks in advance,
Kusuma.

kk250040
01-07-2009, 03:35 AM
Got the answer myself, I can do it by including my bacth file in the primer file and execute it with File.Run that runs _TempLaunchFolder.."\\Mybackup.bat".

Got the answer from another thread though. ;)
May be it helps someone too.:yes

Thanks,
Kusuma