Syed Jahanzaib Personal Blog to Share Knowledge !

September 1, 2011

Howto create PPPoE Dialer Installer Package using Auto-iT !

~!~ Article by Syed Jahanzaib ~!~

UPDATED: March, 2017

OLD METHOD of autoit, may not work proeprly so use above mentioned link.

From past few months, I was searching for a method to create a pppoe dialer package installer which can automatically create a new pppoe connection for user,  but I was unable to find any simple method all over the internet. Like the one we can create VPN Dialer Installer Package using Windows 2003 utility called CMAK (Connection management administration kit to

I am basically a Networking type guy who is heavily involved in Microsoft / Linux + Mikrotik Environment and I have no background experience in any programming language , that’s why I asked many people for assistance , but none of any knew about it, and those who knew, didn’t wanted to share the code with general public.

So Finally I decided to do it in my old fashioned style using MS-DOS concepts and logic’s. Today after doing some goggling and thinking about possible solutions in my head, I was able to found a way on how-to do it with the help of a Application name ‘AUTO-IT ‘

Following is a guide on howto to do it in very simple few steps (xp/2000/2003 supported Only at a moment). Being a Linux Lover, I am publishing these codes under GPL (General Public License). You can modify it as per your requirements, redistribute it. Don’t forget to give credit if it helps you :~)

Remember it’s not a standard, neat and clean way but It’s very simple and it does the job nicely:)
[This script was made for Windows 2003/xp Only, I will post Windows Vista/Windows 7 script soon]

Here we go . . .

First of all you have to download ‘Auto-it‘ software from its website at

I used Latest version: v3.3.6.1, Do full installation of AutoiT.

After installation, launch it by  Goto Start / Programs / Autoit v3  and select SciTE Script Editor

Now an advance Notepad type windows will open, Just paste the following code in it.

(Note: FOR SOME REASONS, Sometimes CODE Does not displayed PROPERLY IN THIS BLOG, IF you face syntax errors,  you can copy the raw code from following location)

#cs ----------------------------------------------------------------------------
AutoIt Version:
 Author:         SYED JAHANZAIB
 OS Supported:   Windows XP
 Script Function:
 Template AutoIt script. for PPPoE Dialer Installer
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
 #include <GUIConstants.au3>
$COMPANY_NAME = "AACABLE - DIALER SERVICE" ; name of the pppoe icon, friendly description
 $SERVICE_NAME = "aa" ; name of the pppoe service configured in NAS/Mikrotik
$DELAY = 200
 ; change this DELAY value to speedup or slow down the process,
 ;any range between 200-300 is better in my view, too fast will shatter things
;This is for showing your logo for 2 secs
 ;$destination = "C:\Program Files\AutoIt3\Examples\GUI\mslogo.jpg"
 ;SplashImageOn("Splash Screen", $destination,250,50)
$answer = MsgBox(4, "PPPOE Connection", "This script will create a PPPOE DIALER connection to " & $COMPANY_NAME & ", Ready?")
 If $answer = 7 Then
; Prompt user for PPPOE login info
 $frmInformation = GUICreate("Enter Information", 287, 194, 193, 115)
 $lblUserName = GUICtrlCreateLabel("User Name:", 16, 40, 60, 17)
 $lblPassword = GUICtrlCreateLabel("Password:", 16, 80, 53, 17)
 $txtUserName = GUICtrlCreateInput("", 112, 40, 153, 21)
 $txtPassword = GUICtrlCreateInput("", 112, 80, 153, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
 $lblPassword2 = GUICtrlCreateLabel("Confirm Password:", 16, 120, 91, 17)
 $txtPassword2 = GUICtrlCreateInput("", 112, 120, 153, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
 $btnOK = GUICtrlCreateButton("&OK", 200, 160, 75, 25, 0)
 $lblInfo = GUICtrlCreateLabel("Enter your pppoe Login Information Below!", 48, 8, 196, 17)
While 1
 $nMsg = GUIGetMsg()
 Switch $nMsg
 Case $btnOK
 If GUICtrlRead($txtPassword) <> GUICtrlRead($txtPassword2) Then
 MsgBox (16, "Error", "Passwords do not match! Try again.")
 $Username = GUICtrlRead($txtUsername)
 $Password = GUICtrlRead($txtPassword)
; Run Network Setup
 Run("control ncpa.cpl")
 WinWaitActive("Network Connections")
; Check if PPPOE dialer by same name already exists, since it'll break script later if Windows add's a number at the end of the name...
 $ControlID = ControlListView("Network Connections", "", "SysListView321", "FindItem", $COMPANY_NAME, "AACABLE - DIALER SERVICE")
 If $ControlID <> -1 Then
 $answer = MsgBox(4404, "Error", "Connection to " & $COMPANY_NAME & " already exists! Remove it and recreate it?")
 If $answer = 6 Then
 ControlListView("Network Connections", "", "SysListView321", "Select", $ControlID)
 WinWaitActive("Confirm Connection Delete")
 MsgBox(16, "Exit", "Script stopped by user")
; open new connection wizard from file menu
; New Connection Wizard
; Choose Conncetion type
; setup connectoin manuall
; Connect using broadband connection with user name n passwd
; Send Your ISP Name
;Donot send id password here, we will set it in End
; Wizard Complete, do we want a desktop shortcut?
WinWaitClose("New Connection Wizard")
WinWaitActive("Connect " & $COMPANY_NAME)
Send("!s") ; save password...
Send("!a") ; for anyone who uses this computer, use "!n" for 'Me only'
WinClose("Network Connections")
MsgBox(0, "Setup Complete", "Your Dialer have been installed , Click Connect to initiate dialing . . .")

Now Open File / Save and name it ‘aa-dialer-installer’

Now your script with source code is ready to be compiled in .EXE executable format so any user can install it like any other normal application.

Now Open Tools and click on ‘Compile’ and it will compile the script in .exe format and it will save it to the Desktop or whatever Path You have selected.

Now click on ‘aa-dialer-install.exe’ and it will install the pppoe dialer and place its shortcut on Desktop.

Any suggestions on improvements and enhancements / advancements are most welcome  and will be appreciable 🙂
Syed Jahanzaib


  1. Great work jahan zaib bhai…!!! I want some help and guidance from you in my cable net setup . How can i ask you about my problems ??? Do you have skype account ? or do you have any thing like forum except linuxpakistan . I also found on that webforum when i was googling….please tell me how to contact you…..


    Comment by faizan — September 1, 2011 @ 11:46 PM

    • You can contact me at my Email Address / aacable at / mobile 0333.xxxxxx


      Comment by Pinochio / zaib — September 1, 2011 @ 11:51 PM

  2. bhai yeh error kiu a raha hai see pic below


    Comment by usmans — September 2, 2011 @ 2:47 AM

    • Dear Usman,

      It is the problem with the WORDPRESS, it always messes with the CODE.
      I have changed its formatiing, Its working now.
      However you can get the raw code from this location also if the code in this blog still makes problem 🙂


      Comment by Pinochio / zaib — September 2, 2011 @ 11:07 AM

  3. GOOD BRO………….


    Comment by usmans — September 2, 2011 @ 6:33 PM

  4. bhai very good … but me ap ko ek chez suggest kro ga . jesy PTCL ki evo ka jo apna software hy dial up ka wesa ap bnao phir maza aye ga


    Comment by sarfraz — September 4, 2011 @ 10:04 PM

    • This is a very simple and basic dialer installer creator script. This is just an idea , You can do further enhancements and advancement as per your requirement. This is just a base, you can build your own building on it 🙂

      Advance dialer can be made by using GUICREATOR function in auto-it, but at a moment it was not required that’s why I didn’t did any further brain storming on it 🙂 maybe when any requirement will arise, I will create such dialer.


      Comment by Pinochio / zaib — September 5, 2011 @ 10:22 AM

  5. Hi Syed,
    I am an active visitor of your blog. I like your ideas and appreciate your willingness to share with everyone around the world. I tried to make the dialer with your pastebin code but didn’t work. I am using Windows 7 (64-bit) with the latest AutoIT version as you suggested. I was able to compile and make the .exe file, but after executing the file, it says that AA Dialer service already exist do you want to remove it?? But the real scenario is that I don’t have any sort of dialer in my Network Connections. If i chose to remove the AA Dialer service, then it just freezes, I don’t think the script is doing anything or not, but it seems its sitting idle in the background with a process, thats it…


    Comment by Saiful Alam (@saifulmr) — September 5, 2011 @ 2:51 AM

  6. Thanx Brother
    its goooooood working

    From Punjab Disst. Khushab


    Comment by Aamir Waseem Rana — January 7, 2012 @ 12:49 AM

  7. Thanks Syed, I have been looking for an automated process to create dialers by installing a file (executible). Will try this and give feedback on my experience.


    Comment by Wills — May 16, 2012 @ 4:23 PM

  8. Dear Jehanzaib Bhai !

    Hopes that you will be doing great. This article is really great and helped alot. When you are expecting to put the code for Windows 7 ?


    Comment by Qamar — June 27, 2012 @ 7:39 PM

  9. sir ky ap setup factory 9 ki pppoe dialer script de sakte hai?


    Comment by Zeeshan — July 13, 2012 @ 9:30 AM

  10. Sir Thank You for the auto dialer script it made easy but there is a flaw can you please solve it…….inspite of putting the service name in script it does not show in dialer properties……it is blank……I have multiple service name in my network …….if this thing works then it will be very good to me…..


    Comment by Anthony Fernando — September 8, 2012 @ 3:38 PM

    • hmmm I used it long time ago, but I am pretty much sure that if you add an directive in auto it script, you can add service name there, that will later on will appear in service properties.


      Comment by Syed Jahanzaib / Pinochio~:) — September 9, 2012 @ 9:33 PM

      • Sir it will be helpful if you will guide me through,…..waiting for your reply….Goodnight.


        Comment by Anthony Fernando — September 10, 2012 @ 7:53 PM

      • Sir, can you please help me in adding the directive in auto it script to add service name in service properties


        Comment by anthony fernando — September 10, 2013 @ 10:10 PM

  11. Sir, can you please help me in adding the directive in auto it script to add service name in service properties


    Comment by Anthony Fernando — September 25, 2012 @ 12:16 PM

  12. So it is posible in win 7 to .. ?


    Comment by Ursu Ionel — October 28, 2012 @ 8:52 PM

  13. Hey, when the script is ready for windows 7? (I’m willing to pay for it)


    Comment by Nik — November 14, 2012 @ 2:34 PM

  14. sir can i hide all process of this script.i want to see only installation page instead all of these process.


    Comment by Adnanbloch — December 4, 2012 @ 4:02 PM

  15. Great Zaib AOA
    Allah aap ko or aap k tufeal humarey ilam main izafa fermai AAmeen
    zaib bhai i want pptp dailer script , please help me


    Comment by M Azam Ghouri — March 22, 2013 @ 9:26 AM

    • It would be better if you try to understand the autoit script functions, its really easy. The logic is same just change the buttons as per the pptp dialer config. since i am quite busy in my job, therefore dont have the time to create full script for pptp. I suggest you dig more about autoit scripting.


      Comment by Syed Jahanzaib / Pinochio~:) — March 23, 2013 @ 12:43 PM

  16. thanka alot merci for this script i made some changes for me and every thing is working ok and iam still waiting for script ( vista, 7 , 8 .8.1 ) and thanks alot in advance


    Comment by mohamed — November 22, 2013 @ 11:28 PM

  17. A-o-A.
    Sir, this script always ends with the following error.

    Line 33
    Dim ^ ERROR

    Error: can nor redeclare a constant.


    Comment by M. Saeed — February 5, 2014 @ 4:42 PM

  18. can we have a single script that can work on windows xp, 7, 8 & 8.1??


    Comment by Ninad — December 25, 2014 @ 7:33 PM

  19. […] طريقة عمل برامج برودباند عبر اوتو اى (1) للويندوز XP لطريقة عمل برنامج يعمل على ويندوز اكس بى..اضغط هنا (2) للويندوز 8 و 7 لطريقة عمل برنامج يعمل على […]


    Pingback by مجموعة برامج برودباند لكل انظمة الويندوز مجانا للعمل فى سيرفرات ميكروتيك pppoe free program — July 20, 2015 @ 11:41 PM

  20. […] طريقة عمل برامج برودباند عبر اوتو اى (1) للويندوز XP لطريقة عمل برنامج يعمل على ويندوز اكس بى..اضغط هنا (2) للويندوز 8 و 7 لطريقة عمل برنامج يعمل على […]


    Pingback by مجموعة برامج برودباند لكل انظمة الويندوز مجانا للعمل فى سيرفرات ميكروتيك pppoe free program | ميكروتك العرب — July 21, 2015 @ 3:29 AM

  21. Great work jahan zaib bhai…!!! I want some help and guidance from you in my cable net setup


    Comment by Salman — December 13, 2016 @ 2:03 AM

  22. […] This script is made for Windows 7 Operating System Only, For windows XP/200x, please follow the below link. […]


    Pingback by Howto create Windows 7 PPPoE Dialer Installer Package using Auto-iT ! | Syed Jahanzaib Personal Blog to Share Knowledge ! — March 13, 2017 @ 3:29 PM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: