Archive: Dialup Configuration Installer


Dialup Configuration Installer
  I would like to create a simple branding wizard that installs both branding, and support components to a Internet Customer's PC and have decided the best way is using NSIS.

As you can see below, so far I have NSIS writing the settings.ins file to the current directly (self extracting temp folder, floppy disk, etc). The problem I am running into is confusing on how exactly to simply prompt the user for the username, password, and select from a list the local area phone number to connect.

Is there a simple way todo this without using some extra add-on?


The name of the installer

Name "setup"

>; Set to silent mode
SilentInstall silent

>; The file to write
OutFile "setup.exe"

>;--------------------------------

Function WriteSettingsINS
Exch$1
Exch
Exch$0

>; Output the VBScript
FileOpen$2 "settings.ins" w
FileWrite$2 '***91;Entry***93;$\r$\n'
>FileWrite $2 'Entry_Name=NEW IMPROVED CONNECTION$\r$\n'
>FileWrite $2 '$\r$\n'
>FileWrite $2 '***91;User***93;$\r$\n'
>FileWrite $2 'Name=$0$\r$\n'
>FileWrite $2 'Password=$1$\r$\n'
>FileWrite $2 '$\r$\n'
>FileWrite $2 '***91;Phone***93;$\r$\n'
>FileWrite $2 'Dial_As_Is=no$\r$\n'
>FileWrite $2 'Phone_Number=5555555$\r$\n'
>FileWrite $2 'Area_Code=555$\r$\n'
>FileWrite $2 'Country_Code=1$\r$\n'
>FileWrite $2 'Country_ID=1$\r$\n'
>FileWrite $2 '$\r$\n'
>FileWrite $2 '***91;Device***93;$\r$\n'
>FileWrite $2 'Type=modem$\r$\n'
>FileWrite $2 '$\r$\n'
>FileWrite $2 '***91;Server***93;$\r$\n'
>FileWrite $2 'Type=PPP$\r$\n'
>FileWrite $2 'SW_Compress=yes$\r$\n'
>FileWrite $2 'PW_Encrypt=no$\r$\n'
>FileWrite $2 'Network_Logon=yes$\r$\n'
>FileWrite $2 'SW_Encrypt=no$\r$\n'
>FileWrite $2 'Negotiate_NetBEUI=no$\r$\n'
>FileWrite $2 'Negotiate_TCP/IP=yes$\r$\n'
>FileWrite $2 'Negotiate_IPX/SPX=no$\r$\n'
>FileWrite $2 '$\r$\n'
>FileWrite $2 '***91;TCP/IP***93;$\r$\n'
>FileWrite $2 'Specify_IP_Address=no$\r$\n'
>FileWrite $2 'Specify_Server_Address=no$\r$\n'
>FileWrite $2 'IP_Header_Compress=yes$\r$\n'
>FileWrite $2 'Gateway_On_Remote=yes$\r$\n'
>FileClose $2
FunctionEnd

Section ""
Push "blarg" ; Username
Push"blargyblargblarg" ; Password
Call WriteSettingsINS

; Do the settings!
ExecWait '"iexplore.exe" "settings.ins"'
>SectionEnd ; end the section
>

Use the InstallOptions plug-in.


Ya I feel completely stupid! After I posted I found a InputBox DLL plugin, exactly what I wanted. The InstallOptions seems too complex for the simple script I want to write.


I cant find that plugin. Could you give a link?