saurabhAggarwal
5th July 2005 05:38 UTC
Changing connection name
Hi!
I have created a setup that along with my custom software, installs tap-win32 driver.
I want to run following command to change the default name given to the connection:
netsh interface set interface name = "Local Area Connection 112" newname = "My Connection"
This is the command that we use to run on the dos prompt.
How can I run this command while installation ie thru installation script.
Regards
Saurabh
Mæster
5th July 2005 06:44 UTC
You could use Exec to run this command.
If you wish the installation to halt while the command runs you'd rather use ExecWait.
Take a look in the documentation for more information on how to use Exec and ExecWait.
Takhir
5th July 2005 06:51 UTC
Might be better to use one of DOS plug-ins, nsExec (included to NSIS package, program files\nsis\contrib\nsexec) or ExecDos This allow to hide dos window, but stops installer execution till dos process exits.