Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,498

    Default

    HAHA that should be reported as a "bug"
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  2. #12
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,049

    Default

    Is it this part of the setup script that my swedish XP can fix
    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 = ""

  3. #13
    Untangle Ninja mrunkel's Avatar
    Join Date
    Jul 2008
    Posts
    3,022

    Default

    Yes, that's it. If you know of a better way to determine the number of ethernet cards present, please share it with us!
    m.
    <BR>
    Big Frickin Disclaimer:
    While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.
    <BR>It often helps troubleshooting if you have a good network map. Look <A HREF="http://forums.untangle.com/tip-day/5407-how-draw-network-diagram.html">here</A> if you want my advice on how to draw one. <BR> <B>Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com<B>

  4. #14
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Carlos, CA
    Posts
    17,486

    Default

    Yep! thats the issue.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  5. #15
    Master Untangler
    Join Date
    Oct 2008
    Posts
    913

    Default

    Quote Originally Posted by sky-knight View Post
    yeah the VM isn't VMware... Virtualbox and VMWare VM's are NOT interchangeable.
    actually, you can open vmware vms with vbox but vbox vms dont want to open in vmware.

  6. #16
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,049

    Default

    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}"

  7. #17
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Lake Tahoe
    Posts
    9,687

    Default

    Quote Originally Posted by WebFooL View Post
    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.
    Nice workaround!

  8. #18
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,498

    Default

    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.
    Last edited by sky-knight; 07-14-2009 at 09:59 AM.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  9. #19
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,049

    Default

    Quote Originally Posted by sky-knight View Post
    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

  10. #20
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,049

    Default

    And with the Register plugin to NSIS you can write a Search string
    Code:
    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
    That will list all "Name" fields :P
    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


Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2