Jump to content
AVIC411.com

Launching .exe from iGo script


Recommended Posts

Well so far it's not promising, since the WLAN client utility won't pop up on the screen when you insert the card if there is another dialog or window already open. Which there is, since MainMenu, ezrider and SystemSettings are already active tasks on the screen. :? So next task is looking into an app or registry setting that will let us pass SSID, WEP/WPA info, etc to the Zero Config service in case you want to join a password-protected network (which most 3G/4G to WiFi routers require). Might be able to create an unmanaged C++ .exe in Visual Studio to do the task, but I'm still getting my dev environment set up on my build box.

Link to post
Share on other sites

Okay, You just did it FourG and Miotoo, My minor was Computer Science, but for some time I have been an engineer and my C.S. has lapsed. I still understand the logic but lack the ability to use the latest Code. I will start relearning today. Any pointers for a website for someome who understands the logic but lacks knowledge on the newer code? boy, what am I getting myself into :roll:

 

Well so far it's not promising, since the WLAN client utility won't pop up on the screen when you insert the card if there is another dialog or window already open. Which there is, since MainMenu, ezrider and SystemSettings are already active tasks on the screen. :? So next task is looking into an app or registry setting that will let us pass SSID, WEP/WPA info, etc to the Zero Config service in case you want to join a password-protected network (which most 3G/4G to WiFi routers require). Might be able to create an unmanaged C++ .exe in Visual Studio to do the task, but I'm still getting my dev environment set up on my build box.
Link to post
Share on other sites
Okay, You just did it FourG and Miotoo, My minor was Computer Science, but for some time I have been an engineer and my C.S. has lapsed. I still understand the logic but lack the ability to use the latest Code. I will start relearning today. Any pointers for a website for someome who understands the logic but lacks knowledge on the newer code? boy, what am I getting myself into :roll:

 

Don't dust off the neruons quite yet... I've figured out the registry entries needed to get the Zero Config dialog box to pop up after all. Just trying to get a MortScript written that will copy the wlan11g.dll file over to \Windows, import all the registry settings necessary for the card and then pop up the dialog to configure the network settings...

 

Oh, and I discovered that Explorer will co-exist just fine with the AVIC APL apps, as long as you configure it to minimize automatically so it doesn't steal on-screen taps meant for Pioneer apps. Which is great because in order to get the WLAN card configured right you need ethman and the on-screen keyboard. Not certain yet but I think once you've gotten everything configured right as long as you don't do a hard-reset, the settings should persist across ACC power removal (all work thus far is on the F90BT on my desk, next comes hacking on the car's once I've got everything just right). Oh, and I may skip Opera all together and put IE on instead, if it seems more stable.

Link to post
Share on other sites
FourG, any new progress lately?

NYET. Busy weekend, first chance to look at stuff will probably be Tuesday at the earliest. Need to

  1. [*:1hnjl84q]Launch MortScript.exe at an early point so the .mscr files get associated with the interpreter
    [*:1hnjl84q]Write a script that copies the DLLs to \Windows and inserts the right registry entries
    [*:1hnjl84q]Write a script that copies the right files for IE to \Windows
    [*:1hnjl84q]Write a script that adds the shortcuts for IE to \Windows\Programs
    [*:1hnjl84q]Write a script that sets the registry values for Auto Hide for the Explorer task bar so it's not in the way of some AVIC buttons
    [*:1hnjl84q]Add a command to iGo DATA.zip to run all scripts then potentially launch explorer.exe at the end of initialization, OR when you press the "File Manager" button on a menu. Button method's going to be tied to parking brake, so only bypassed rigs can launch while driving as a CYA (if you can't do the PB hack, you will probably try to succeed on the next item)
    [*:1hnjl84q]Come up with some disclaimer to post w/ everything so noobies trying to browse the web while they're driving can't sue when they crash their car but fail to qualify for the Darwin Awards

 

Was doing this to enable Pandora but discovered there's no support for it on Opera and, I suspect, IE in Win CE. So my motivation went out the window soon after, along with my free time. If someone knows of a Win CE Pandora client that isn't tied to a specific phone handset, urgency will return.

Link to post
Share on other sites

OK, I've got a MortScript that will automate the task of copying the Spectec DLL to \Windows, set up the registry settings for the driver and also set the Explorer task bar to auto-hide.

 

#####
# [HKEY_LOCAL_MACHINE\Drivers\Builtin\Ethman\Popup]
# Popup=1
# Timeout=3600 (or 0xE10)
RegWriteDWord( "HKLM", "Drivers\Builtin\Ethman\Popup", "Popup", 1)
RegWriteDWord( "HKLM", "Drivers\Builtin\Ethman\Popup", "Timeout", 3600)

#####
# [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1]
# "Dll"="WLAN11g.dll"
# "Prefix"="NDL"
# "Instance0"="WLAN11g:WLAN11g1"
# "Instance1"="WLAN11g:WLAN11g2"
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Dll", "WLAN11g.dll")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Prefix", "NDL")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Instance0", "WLAN11g:WLAN11g1")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Instance1", "WLAN11g:WLAN11g1")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g]
# "DisplayName"="WLAN-11g ADAPTER"
# "Group"="NDIS"
# "ImagePath"="WLAN11g.dll"
RegWriteString( "HKLM", "Comm\WLAN11g", "DisplayName", "WLAN-11g ADAPTER")
RegWriteString( "HKLM", "Comm\WLAN11g", "Group", "NDIS")
RegWriteString( "HKLM", "Comm\WLAN11g", "ImagePath", "WLAN11g.dll")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g\Linkage]
# "Route"=hex(7):57,4c,41,4e,31,31,67,31,00,00
RegWriteBinary( "HKLM", "Comm\WLAN11g\Linkage", "Route", "574c414e313167310000")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1]
# "DisplayName"="WLAN-11g ADAPTER"
# "Group"="NDIS"
# "ImagePath"="WLAN11g.dll"
RegWriteString( "HKLM", "Comm\WLAN11g", "DisplayName", "WLAN-11g ADAPTER")
RegWriteString( "HKLM", "Comm\WLAN11g", "Group", "NDIS")
RegWriteString( "HKLM", "Comm\WLAN11g1", "ImagePath", "WLAN11g.dll")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1\Parms]
# "BusNumber"=dword:00000000
# "BusType"=dword:00000000
# "PowerMode"=dword:00000002
# "SDBlockSize"="64"
# "Domain"="0"
# "Angle"="0"

RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "BusNumber", 0)
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "BusType", 0)
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "PowerMode", 2)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "SDBlockSize", "64")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "Domain", "0")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "Angle", "0")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1\Parms\TcpIp]
# "EnableDHCP"=dword:00000001
# "DefaultGateway"="0.0.0.0"
# "UseZeroBroadcast"=dword:00000000
# "IpAddress"="0.0.0.0"
# "Subnetmask"="0.0.0.0"

RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "EnableDHCP", 1)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "DefaultGateway", "0.0.0.0")
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "UseZeroBroadcast", 0)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "IpAddress", "0.0.0.0")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "Subnetmask", "0.0.0.0")

#####
# [HKEY_LOCAL_MACHINE\Comm\EAP\Extension\13]
# "Path"="eaptls.dll"
# "InteractiveUIPath"="netui.dll"
# "ConfigUIPath"="netui.dll"
# "InvokeUserNameDialog"=dword:00000001
# "FriendlyName"="TLS"

RegWriteString( "HKLM", "Comm\EAP\Extension\13", "Path", "eaptls.dll")
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "InteractiveUIPath", "netui.dll")
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "ConfigUIPath", "netui.dll")
RegWriteDWord( "HKLM", "Comm\EAP\Extension\13", "InvokeUserNameDialog", 1)
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "FriendlyName", "TLS")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\AFD]
# "Order"=dword:00000002

RegWriteDWord( "HKLM", "Drivers\BuiltIn\AFD", "Order", 2)

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Ethman]
# "Order"=dword:00000005
# "Index"=dword:00000001
# "Dll"="ethman.dll"
# "Prefix"="ETM"

RegWriteDWord( "HKLM", "Drivers\BuiltIn\Ethman", "Order", 5)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\Ethman", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\Ethman", "Dll", "ethman.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\Ethman", "Prefix", "ETM")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ZeroConfig]
# "Order"=dword:00000004
# "Index"=dword:00000001
# "Dll"="WZCSVC.dll"
# "Prefix"="ZCF"

RegWriteDWord( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Order", 4)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Dll", "WZCSVC.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Prefix", "ZCF")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NDISUIO]
# "Order"=dword:00000003
# "Index"=dword:00000001
# "Dll"="ndisuio.dll"
# "Prefix"="UIO"
RegWriteDWord( "HKLM", "Drivers\BuiltIn\NDISUIO", "Order", 3)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\NDISUIO", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\NDISUIO", "Dll", "ndisuio.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\NDISUIO", "Prefix", "UIO")

#####
# Copy the file "WLAN11g.dll" to \Windows, overwriting if it exists
Copy( "\My Flash Disk\Utils\WLAN\WLAN11g.dll", "\Windows\WLAN11g.dll", TRUE )


#####
# Set the task bar to auto hide so it's not over the AVIC buttons
# [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\AutoHide]
# "Default"=dword:00000001
RegWriteDWord( "HKLM", "SOFTWARE\Microsoft\Shell\AutoHide", "Default", 1)

 

As for adding icons, I'll discuss adding Explorer to the Destination menu here. I'll leave it as an exercise to the reader to add an Opera/web browser icon, so if they decide to make a menace of themselves by browsing the web while driving they've got to do it with some effort on their part.

Link to post
Share on other sites
OK, I've got a MortScript that will automate the task of copying the Spectec DLL to \Windows, set up the registry settings for the driver and also set the Explorer task bar to auto-hide.

 

#####
# [HKEY_LOCAL_MACHINE\Drivers\Builtin\Ethman\Popup]
# Popup=1
# Timeout=3600 (or 0xE10)
RegWriteDWord( "HKLM", "Drivers\Builtin\Ethman\Popup", "Popup", 1)
RegWriteDWord( "HKLM", "Drivers\Builtin\Ethman\Popup", "Timeout", 3600)

#####
# [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1]
# "Dll"="WLAN11g.dll"
# "Prefix"="NDL"
# "Instance0"="WLAN11g:WLAN11g1"
# "Instance1"="WLAN11g:WLAN11g2"
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Dll", "WLAN11g.dll")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Prefix", "NDL")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Instance0", "WLAN11g:WLAN11g1")
RegWriteString( "HKLM", "Drivers\SDCARD\ClientDrivers\Custom\MANF-037A-CARDID-5911-FUNC-1", "Instance1", "WLAN11g:WLAN11g1")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g]
# "DisplayName"="WLAN-11g ADAPTER"
# "Group"="NDIS"
# "ImagePath"="WLAN11g.dll"
RegWriteString( "HKLM", "Comm\WLAN11g", "DisplayName", "WLAN-11g ADAPTER")
RegWriteString( "HKLM", "Comm\WLAN11g", "Group", "NDIS")
RegWriteString( "HKLM", "Comm\WLAN11g", "ImagePath", "WLAN11g.dll")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g\Linkage]
# "Route"=hex(7):57,4c,41,4e,31,31,67,31,00,00
RegWriteBinary( "HKLM", "Comm\WLAN11g\Linkage", "Route", "574c414e313167310000")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1]
# "DisplayName"="WLAN-11g ADAPTER"
# "Group"="NDIS"
# "ImagePath"="WLAN11g.dll"
RegWriteString( "HKLM", "Comm\WLAN11g", "DisplayName", "WLAN-11g ADAPTER")
RegWriteString( "HKLM", "Comm\WLAN11g", "Group", "NDIS")
RegWriteString( "HKLM", "Comm\WLAN11g1", "ImagePath", "WLAN11g.dll")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1\Parms]
# "BusNumber"=dword:00000000
# "BusType"=dword:00000000
# "PowerMode"=dword:00000002
# "SDBlockSize"="64"
# "Domain"="0"
# "Angle"="0"

RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "BusNumber", 0)
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "BusType", 0)
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms", "PowerMode", 2)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "SDBlockSize", "64")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "Domain", "0")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms", "Angle", "0")

#####
# [HKEY_LOCAL_MACHINE\Comm\WLAN11g1\Parms\TcpIp]
# "EnableDHCP"=dword:00000001
# "DefaultGateway"="0.0.0.0"
# "UseZeroBroadcast"=dword:00000000
# "IpAddress"="0.0.0.0"
# "Subnetmask"="0.0.0.0"

RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "EnableDHCP", 1)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "DefaultGateway", "0.0.0.0")
RegWriteDWord( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "UseZeroBroadcast", 0)
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "IpAddress", "0.0.0.0")
RegWriteString( "HKLM", "Comm\WLAN11g1\Parms\TcpIp", "Subnetmask", "0.0.0.0")

#####
# [HKEY_LOCAL_MACHINE\Comm\EAP\Extension\13]
# "Path"="eaptls.dll"
# "InteractiveUIPath"="netui.dll"
# "ConfigUIPath"="netui.dll"
# "InvokeUserNameDialog"=dword:00000001
# "FriendlyName"="TLS"

RegWriteString( "HKLM", "Comm\EAP\Extension\13", "Path", "eaptls.dll")
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "InteractiveUIPath", "netui.dll")
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "ConfigUIPath", "netui.dll")
RegWriteDWord( "HKLM", "Comm\EAP\Extension\13", "InvokeUserNameDialog", 1)
RegWriteString( "HKLM", "Comm\EAP\Extension\13", "FriendlyName", "TLS")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\AFD]
# "Order"=dword:00000002

RegWriteDWord( "HKLM", "Drivers\BuiltIn\AFD", "Order", 2)

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Ethman]
# "Order"=dword:00000005
# "Index"=dword:00000001
# "Dll"="ethman.dll"
# "Prefix"="ETM"

RegWriteDWord( "HKLM", "Drivers\BuiltIn\Ethman", "Order", 5)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\Ethman", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\Ethman", "Dll", "ethman.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\Ethman", "Prefix", "ETM")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ZeroConfig]
# "Order"=dword:00000004
# "Index"=dword:00000001
# "Dll"="WZCSVC.dll"
# "Prefix"="ZCF"

RegWriteDWord( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Order", 4)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Dll", "WZCSVC.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\ZeroConfig", "Prefix", "ZCF")

#####
# [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NDISUIO]
# "Order"=dword:00000003
# "Index"=dword:00000001
# "Dll"="ndisuio.dll"
# "Prefix"="UIO"
RegWriteDWord( "HKLM", "Drivers\BuiltIn\NDISUIO", "Order", 3)
RegWriteDWord( "HKLM", "Drivers\BuiltIn\NDISUIO", "Index", 1)
RegWriteString( "HKLM", "Drivers\BuiltIn\NDISUIO", "Dll", "ndisuio.dll")
RegWriteString( "HKLM", "Drivers\BuiltIn\NDISUIO", "Prefix", "UIO")

#####
# Copy the file "WLAN11g.dll" to \Windows, overwriting if it exists
Copy( "\My Flash Disk\Utils\WLAN\WLAN11g.dll", "\Windows\WLAN11g.dll", TRUE )


#####
# Set the task bar to auto hide so it's not over the AVIC buttons
# [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\AutoHide]
# "Default"=dword:00000001
RegWriteDWord( "HKLM", "SOFTWARE\Microsoft\Shell\AutoHide", "Default", 1)

 

As for adding icons, I'll discuss adding Explorer to the Destination menu here. I'll leave it as an exercise to the reader to add an Opera/web browser icon, so if they decide to make a menace of themselves by browsing the web while driving they've got to do it with some effort on their part.

 

Thanks for that FourG, very helpful.

Link to post
Share on other sites

Will you be laying out the steps for us to follow being that it appears you have bits and peices in different places? For example: Step 1: do this ......., Step 2: do that......, and so on and so forth. Thanks for all the time and great work you have dedicated to getting this mod up and running.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...