GSM-Forum

Go Back   GSM-Forum > Non GSM/Mobile Related Forums > Bluetooth > Bluetooth-Software


Reply
 
Thread Tools Display Modes
Old 02-29-2004, 16:55   #1
KidJoe
Junior Member
 
Join Date: Dec 2003
Location: USA
Posts: 17
Member: 45831
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
"Silent install" of the IBM Widcomm drivers for unattened CD?

I'm working on an unattended install CD for my WinXP. It installs XP slipstreamed with SP1, with my specific choices based on my editied WINNT.SIF file, along with all the hotfixes, updates, drivers, etc. that my machine needs..

I've run into an issue installing the IBM Widcomm bluetooth drivers as part of this.

Since its install uses InstallShield, and I will always take the same options, I wanted to create a SETUP.ISS file to use so It does everything without the user being prompted. Unfortuately, I can't seem to get this to work. I always get prompted like a nomal install. Any Ideas??

The various message boards I've asked all respond with "wait for SP2 it has bluetooth built in." But I can't wait that long

My goal is to use the BT silent install in the following bat file to install the Widcomm drivers, kill the processes, and copy the patched files into their loctions as part of the unattended CD... This batch file works to install everything, except you are prompted by the widcomm install to keep clicking next, etc.... So its already to make it silent Once I get the way to make the widcomm install silent, I can append that to the line that reads... start /wait setup.exe and I'll be happy.

--------[Begin BTPatch_Setup.CMD]------------
c:
cd \drivers\WIN\BDCACT
start /wait setup.exe

start /wait taskkill /f /im bttray.exe /t
start /wait taskkill /f /im btwdins.exe /t

c:
cd C:\drivers\WIN\BDCACT\patch
copy BTTray.exe "C:\Program Files\IBM\Bluetooth Software" /y
copy BTStackServer.exe "C:\Program Files\IBM\Bluetooth Software" /y
copy WBTAPI.DLL "C:\Windows\System32" /y

--------[End BTPatch_Setup.CMD]------------
  Reply With Quote
Old 03-02-2004, 06:05   #2
KidJoe
Junior Member
 
Join Date: Dec 2003
Location: USA
Posts: 17
Member: 45831
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, I found a way to do it all using AUTOIT. from http://www.hiddensoft.com/AutoIt/

I now have a fully automated "single click" install of the IBM Widcomm drivers and patched files. No need to use the BTPatch_Setup.CMD like I posted. Its all in the AUTOIT script I wrote and compiled to a .EXE.

If anyone is interested, ask, and I'll post it. (both plain text so you can see it, or EXE so you can run it if you want).
  Reply With Quote
Old 03-30-2004, 05:52   #3
Proffa
Junior Member
 
Join Date: Nov 2003
Age: 49
Posts: 3
Member: 43681
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
Great! I would like this. Could you post it to me: imso [at] corrupted [dot] biz, both text and exe. Thanks!

Last edited by Proffa; 03-30-2004 at 19:34. Reason: Spam fear -> edited address
  Reply With Quote
Old 03-30-2004, 20:57   #4
mrdurdensir
Junior Member
 
Join Date: Mar 2004
Age: 49
Posts: 1
Member: 60501
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
are you able to post a link to it or can you only email it KidJoe?

thanks
  Reply With Quote
Old 04-01-2004, 14:57   #5
leemperor
Crazy Poster
 
Join Date: Nov 2003
Location: Sheffield, UK
Age: 28
Posts: 51
Member: 44457
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
If you e-mail it to me i'll host it where I host the patched files. I won't put a link to it on the guide yet (i don't have enough bandwidth) but i'll post a link here and then people who read this thread will be able to get it

Jon
  Reply With Quote
Old 04-04-2004, 05:04   #6
KidJoe
Junior Member
 
Join Date: Dec 2003
Location: USA
Posts: 17
Member: 45831
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, I'm in the process of moving, so I've been rather busy with packing, calling the movers, cable company, phone company, bank, credit cards, etc..

I'm still trying to work out a few kinks... but attached is the latest version of the AUTOIT script I am using.... To upload the files, I added a .TXT extension to them. The UNCOMPILED Script should end with .AU3 if you want to compile it (but it is a plain text file). Of course, strip off the .TXT from the COMPILED script (.EXE) to run it.

Current requirements to run the compiled version...

1. The IBM Bluetooth drivers must be unpacked to their default directory of C:\drivers\WIN\BDCACT\
2. The following files MUST be located in C:\drivers\WIN\BDCACT\patch BTRegFix.reg, the patched BTTray.exe, wbtapi.dll and BTStackServer.exe, and PSKILL.EXE from Sysinternals (get HERE).
3. This works under WinXP and Win2K. I haven't tested under Win98 or ME. Based on some of the copy statements (using environment variables to pull Windows directory path) I DOUBT This will work under 98/ME.

Kinks that still need working out...
1. While it works 90% of the time, on some "test installs" the script doesn't seem to pass the key press for a dialog box with the word "Finish." I've been playing with passing the ENTER key, F key, and combinations.

Originally, I had it setup to restart the Bluetooth stack, then prompt you to put in the bluetooth dongle, and it would automate the "Add new hardware" wizard. But that was really un-predicatble (after rebooting, the BTSTACKSERVER didn't start) so I took it out, and put up a "please reboot, then insert your dongle" message. I would like to fix this so it works 100% without the reboot.
Attached Files
File Type: txt btpatch1.au3.txt (3.1 KB, 29 views)
File Type: txt btpatch1.exe.txt (82.0 KB, 27 views)

Last edited by KidJoe; 04-08-2004 at 21:16. Reason: Revised the script file, fixed some issues..
  Reply With Quote
Old 04-08-2004, 17:49   #7
KidJoe
Junior Member
 
Join Date: Dec 2003
Location: USA
Posts: 17
Member: 45831
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
found a couple bugs in the scripts...
1. When copying the patched WBTAPI.DLL, I had actually typed "C:\windows\system32." While this works under XP, it doesn't under W2K, so changed to using the WINDIR environment variable to get the windows directory and changed the statement to use that as WINDIR\System32 for the path.
2. When exiting the IBM/Widcomm installer, the FINISH button would not be detected/clicked, so the script would hang. Changed to now passing F key to that dialog box instead of ENTER.

The above requirements still apply!!

I tried editing my original post and chaning the files, but I could not, so...

Here are revised versions...
Attached Files
File Type: txt btpatch1[2].au3.txt (3.3 KB, 33 views)
File Type: txt btpatch1[2].exe.txt (82.0 KB, 33 views)

Last edited by KidJoe; 04-08-2004 at 21:16.
  Reply With Quote
Old 05-03-2004, 19:16   #8
Davie
Junior Member
 
Join Date: May 2004
Age: 40
Posts: 1
Member: 64491
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the script, for some reason it couldn't find wbtapi.dll after rebooting. I just copied it across from the patch directory by hand, then everything seems to be fine.

This solved my previous problem of http://forum.msi.com.tw/thread.php?threadid=48893&sid=
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:38.


GSMCity - GSM Hosting - 1999-2009
Page generated in 0.09118 seconds with 7 queries