Problem Using NetCfg To Install A LWF Driver

Hi!

I’m using NetCfg to install my LWF driver from an installation NSIS package.
While this works well on x86, the installer fails to run NetCfg on x64. I
can manually run NetCfg from an elevated DOS window on x64 without a
problem, so I’m stuck trying to see what’s wrong.

I’ve tried running the installer as an admin, but that doesn’t work.

Has anyone else seen this problem?

More to the point, I’m using NetCfg to avoid writing code that uses INetCfg.
Is INetCfg the only thing that will work across platforms?

Thanks!

On 19-Sep-2013 01:50, SoquelDude wrote:

While this works well on x86, the installer fails to run NetCfg
on x64. I can manually run NetCfg from an elevated DOS window on x64
without a problem, so I’m stuck trying to see what’s wrong.

I’ve tried running the installer as an admin, but that doesn’t work.

Looks like problem with elevation. Unless already running elevated
(as from elevated cmd window), use ShellExecute rather than
CreateProcess to start other programs elevated.
– pa

Thanks, Pavel, but why would this work on x86 and not on amd64?

“Pavel A.” wrote in message news:xxxxx@ntdev…

On 19-Sep-2013 01:50, SoquelDude wrote:

While this works well on x86, the installer fails to run NetCfg
on x64. I can manually run NetCfg from an elevated DOS window on x64
without a problem, so I’m stuck trying to see what’s wrong.

I’ve tried running the installer as an admin, but that doesn’t work.

Looks like problem with elevation. Unless already running elevated
(as from elevated cmd window), use ShellExecute rather than
CreateProcess to start other programs elevated.
– pa

Then it can be 32 vs 64 bit issue as well.
Use only 64-bit versions of all native utilities on x64.
– pa

On 19-Sep-2013 03:09, SoquelDude wrote:

Thanks, Pavel, but why would this work on x86 and not on amd64?

“Pavel A.” wrote in message news:xxxxx@ntdev…
On 19-Sep-2013 01:50, SoquelDude wrote:
> While this works well on x86, the installer fails to run NetCfg
> on x64. I can manually run NetCfg from an elevated DOS window on x64
> without a problem, so I’m stuck trying to see what’s wrong.
>
> I’ve tried running the installer as an admin, but that doesn’t work.

Looks like problem with elevation. Unless already running elevated
(as from elevated cmd window), use ShellExecute rather than
CreateProcess to start other programs elevated.
– pa