HAHA that should be reported as a "bug" :D
Printable View
HAHA that should be reported as a "bug" :D
Is it this part of the setup script that my swedish XP can fix ;)
Quote:
if ( net_connection_id.startswith("Local Area Connection")):
local_adapters.append( network_adapter_obj.Name )
network_adapter = None
if ( len( local_adapters ) > 0 ):
network_adapter = local_adapters[0]
if ( network_adapter == None ):
network_adapter = ""
Yes, that's it. If you know of a better way to determine the number of ethernet cards present, please share it with us!
Yep! thats the issue.
Hi,
As it checks for the name "Local Area Connection" on a interface i just renamed mine from "Anslutning till lokalt nätverk" to "Local Area Connnection" and it works.
But a posible way for the setup is to list all networkcards from the regedit and then have the user checkbox witch interface to use?
Just list alla "Name" stringvalues in the subfolders of:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}"
And those of us that have our interfaces renamed to keep their sanity are screwed... Even if we are english speakers.
BTW what language is that WebFool and where did you get it?
If that is a VBScript I may be able to find a better way to query the framework for the requested information.
The file name is install_init.py so i think it is a Python script.
But it dose some NSIS referens.
But the best way shold be that the user chooses what interface.(on my workstation i have 3 nic's) So if the install script lists all and then lets the user to mark the one he wants.
Simple NSIS scipt that checks the name value of a network interface.
Code:Name "Regedit"
OutFile "readregedit.exe"
ShowInstDetails show
Page InstFiles
Section
ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{5CB9F608-165F-4B03-9E91-A066E3CA35F3}\Connection" 'Name'
DetailPrint "Network name is: $R0"
SectionEnd
And with the Register plugin to NSIS you can write a Search string
That will list all "Name" fields :PCode:Name "Interfaces"
OutFile "Interfaces.exe"
!include "Registry.nsh"
!include "Sections.nsh"
Var RADIOBUTTON
Page components
Page instfiles
Section /o "Search For Network interfaces!" SAW
GetTempFileName $R0
FileOpen $R1 $R0 w
FileWrite $R1 'All your interfaces:$\r$\n$\r$\n'
${registry::Open} "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\" "/B=1 /N='Name'" $0
StrCmp $0 0 0 loop
MessageBox MB_OK "Error" IDOK close
loop:
${registry::Find} "$0" $1 $2 $3 $4
StrCmp $4 '' close
StrCmp $4 'REG_KEY' 0 +3
FileWrite $R1 '"$\r$\n'
goto +2
FileWrite $R1 '$3$\r$\n'
goto loop
close:
${registry::Close} "$0"
${registry::Unload}
FileClose $R1
Exec '"notepad.exe" "$R0"'
SectionEnd
Function .onSelChange
!insertmacro StartRadioButtons $RADIOBUTTON
!insertmacro RadioButton ${SAW}
!insertmacro EndRadioButtons
FunctionEnd
So if thoes can be listed during the installation and the enduser can choose one i think that is a winner :P
Try the exe
http://www.fakenews.se/untangle/Interfaces.exe