Can't install tap driver using tapinstall.exe for OpenVPN when run from a .bat file, but it works when...











up vote
4
down vote

favorite
1












When I run



"..bintapinstall.exe" install "..driverOemWin2k.inf" tap0901       


To add the tap driver, all I get back is a "failed" message with no details and the tap driver is not installed in Windows 7. The paths are correct and I tried specifying the absolute paths and it still didn't work. Running as an administrator also didn't fix the issue, however if I run the OpenVPN installer (latest version) and only select the tap driver, it is installed correctly.



I'm trying to make OpenVPN portable and the only thing standing in my way is installing the tap driver from a .bat file such as addtap.bat which comes from OpenVPN.










share|improve this question




















  • 3




    Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
    – grawity
    Aug 28 '11 at 13:47












  • like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
    – Coder
    Aug 28 '11 at 13:58















up vote
4
down vote

favorite
1












When I run



"..bintapinstall.exe" install "..driverOemWin2k.inf" tap0901       


To add the tap driver, all I get back is a "failed" message with no details and the tap driver is not installed in Windows 7. The paths are correct and I tried specifying the absolute paths and it still didn't work. Running as an administrator also didn't fix the issue, however if I run the OpenVPN installer (latest version) and only select the tap driver, it is installed correctly.



I'm trying to make OpenVPN portable and the only thing standing in my way is installing the tap driver from a .bat file such as addtap.bat which comes from OpenVPN.










share|improve this question




















  • 3




    Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
    – grawity
    Aug 28 '11 at 13:47












  • like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
    – Coder
    Aug 28 '11 at 13:58













up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





When I run



"..bintapinstall.exe" install "..driverOemWin2k.inf" tap0901       


To add the tap driver, all I get back is a "failed" message with no details and the tap driver is not installed in Windows 7. The paths are correct and I tried specifying the absolute paths and it still didn't work. Running as an administrator also didn't fix the issue, however if I run the OpenVPN installer (latest version) and only select the tap driver, it is installed correctly.



I'm trying to make OpenVPN portable and the only thing standing in my way is installing the tap driver from a .bat file such as addtap.bat which comes from OpenVPN.










share|improve this question















When I run



"..bintapinstall.exe" install "..driverOemWin2k.inf" tap0901       


To add the tap driver, all I get back is a "failed" message with no details and the tap driver is not installed in Windows 7. The paths are correct and I tried specifying the absolute paths and it still didn't work. Running as an administrator also didn't fix the issue, however if I run the OpenVPN installer (latest version) and only select the tap driver, it is installed correctly.



I'm trying to make OpenVPN portable and the only thing standing in my way is installing the tap driver from a .bat file such as addtap.bat which comes from OpenVPN.







windows-7 vpn openvpn






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 28 '11 at 17:08









Sathya

52.5k29153252




52.5k29153252










asked Aug 28 '11 at 13:35









Coder

2702916




2702916








  • 3




    Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
    – grawity
    Aug 28 '11 at 13:47












  • like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
    – Coder
    Aug 28 '11 at 13:58














  • 3




    Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
    – grawity
    Aug 28 '11 at 13:47












  • like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
    – Coder
    Aug 28 '11 at 13:58








3




3




Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
– grawity
Aug 28 '11 at 13:47






Portable OpenVPN? Good luck with that... most places where portable apps are useful, don't give users admin privileges. (If all you need is a secure tunnel, SSH can give that.)
– grawity
Aug 28 '11 at 13:47














like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
– Coder
Aug 28 '11 at 13:58




like i said i have it to the level i need except for the tap driver. can you help me get addtap to work?
– Coder
Aug 28 '11 at 13:58










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I had a similar problem, and googling around found some potential solutions.



The simplest is to check whether the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce (HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRunOnce for Win 7 64 bit) registry key exists, and add it if it does not.



There is a registry problem which is related to using ESET Smart Security; you can find the description here.



The one that worked for me was dropping the OpenVPN-provided TAP driver altogether, and using http://openvpn.se/files/xp64/tap-win64.zip (Which is unsigned, so if you want it to work on Win7, you will need to sign it - here is a tutorial on how to self-sign it. I only needed it to work on my own machine so I just set tapistall.exe into Vista compatibility mode.)






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f329002%2fcant-install-tap-driver-using-tapinstall-exe-for-openvpn-when-run-from-a-bat-f%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I had a similar problem, and googling around found some potential solutions.



    The simplest is to check whether the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce (HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRunOnce for Win 7 64 bit) registry key exists, and add it if it does not.



    There is a registry problem which is related to using ESET Smart Security; you can find the description here.



    The one that worked for me was dropping the OpenVPN-provided TAP driver altogether, and using http://openvpn.se/files/xp64/tap-win64.zip (Which is unsigned, so if you want it to work on Win7, you will need to sign it - here is a tutorial on how to self-sign it. I only needed it to work on my own machine so I just set tapistall.exe into Vista compatibility mode.)






    share|improve this answer

























      up vote
      0
      down vote













      I had a similar problem, and googling around found some potential solutions.



      The simplest is to check whether the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce (HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRunOnce for Win 7 64 bit) registry key exists, and add it if it does not.



      There is a registry problem which is related to using ESET Smart Security; you can find the description here.



      The one that worked for me was dropping the OpenVPN-provided TAP driver altogether, and using http://openvpn.se/files/xp64/tap-win64.zip (Which is unsigned, so if you want it to work on Win7, you will need to sign it - here is a tutorial on how to self-sign it. I only needed it to work on my own machine so I just set tapistall.exe into Vista compatibility mode.)






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I had a similar problem, and googling around found some potential solutions.



        The simplest is to check whether the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce (HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRunOnce for Win 7 64 bit) registry key exists, and add it if it does not.



        There is a registry problem which is related to using ESET Smart Security; you can find the description here.



        The one that worked for me was dropping the OpenVPN-provided TAP driver altogether, and using http://openvpn.se/files/xp64/tap-win64.zip (Which is unsigned, so if you want it to work on Win7, you will need to sign it - here is a tutorial on how to self-sign it. I only needed it to work on my own machine so I just set tapistall.exe into Vista compatibility mode.)






        share|improve this answer












        I had a similar problem, and googling around found some potential solutions.



        The simplest is to check whether the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce (HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRunOnce for Win 7 64 bit) registry key exists, and add it if it does not.



        There is a registry problem which is related to using ESET Smart Security; you can find the description here.



        The one that worked for me was dropping the OpenVPN-provided TAP driver altogether, and using http://openvpn.se/files/xp64/tap-win64.zip (Which is unsigned, so if you want it to work on Win7, you will need to sign it - here is a tutorial on how to self-sign it. I only needed it to work on my own machine so I just set tapistall.exe into Vista compatibility mode.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 29 '12 at 13:37









        Tgr

        1,57331726




        1,57331726






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f329002%2fcant-install-tap-driver-using-tapinstall-exe-for-openvpn-when-run-from-a-bat-f%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix