Old 19th July 2019, 14:55   #1
ikreb
Junior Member
 
Join Date: Aug 2018
Posts: 5
Get Wifi Settings

Hello everybody,

i want settings like ssid name, anonymous identity, EAPAuthMethod, ... from an existing wifi profile.

My fist idea was that I could get it with netsh, but it doesn't work yet.

code:

${NSD_CreateLabel} 0 0 40% 12u "Name:"
${NSD_CreateHLine} 0 20 100% 1 ButtonsLine
${NSD_CreateLabel} 0 40 40% 12u "SSID:"
${NSD_CreateLabel} 0 60 40% 12u "Anonymous identity:"
${NSD_CreateLabel} 0 80 40% 12u "Certificate:"

nsExec::ExecToStack 'netsh wlan show profile "ssid name" | findstr "Authentifizierung"'
Pop $0
Pop $1
{NSD_CreateLabel} 28% 40 33% 12u "$1"
${NSD_CreateLabel} 28% 60 33% 12u "..."
${NSD_CreateLabel} 28% 80 33% 12u "..."
${NSD_CreateLabel} 28% 100 33% 12u "..."



I guess that the pipe doesn't work. But maybe you have in all a better idea.
ikreb is offline   Reply With Quote
Old 19th July 2019, 15:00   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,166
Prefix with cmd.exe /C to use pipes.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump