Page 1 of 2
IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 8:54 am
by mwilner
I need to run at the end of the installation of all files the PnPUtil.exe and it works using the Run command in Win 7 32 bit but fails to work in Win 7 64 bit.
How can I resolve this issue?
\Manfred
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 8:58 am
by FrancescoT
Dear Manfred,
are you using x64 version of PnPUtil.exe?
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:03 am
by mwilner
Francesco,
I am calling in either case the PnPutil regardless the version. The App which is located in c:\windows\system32.
When calling the app directly from command line it works.
Thank you,
\Manfred
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:16 am
by FrancescoT
Dear Manfred,
if calling it from command line works, it must works from IA too.
Are you using any variables that probably are not correctly resolved running on x64 OS?
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:20 am
by mwilner
Thanks, Yes I am using the following call:
Run Program PnPUtil.exe -a "$TARGETDIR$\Kiosk.inf" (WAIT, get result into variable SUCCESS)
TARGETDIR is getting properly resolved when running through with the debugger.
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:28 am
by FrancescoT
Dear Manfred,
The file "Kiosk.inf", is it installed with your setup?
in your script when do you call the command, after apply install?
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:34 am
by mwilner
Yes the file is installed with the installer and the run command is called at the end of the installation just before exit.
It works fine for Win 7 32 with no change.
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 9:44 am
by FrancescoT
Dear Manfred,
can you try to place a dialog box to output $TARGETDIR$ just before the run command?
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 10:10 am
by mwilner
It pops up with the correct directory name.
I just tried it again on Win 7 32 bit it worked there no problem.
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 10:34 am
by FrancescoT
Dear Manfred,
if you still have problem, please replicate it with a very simple test project and sent it to me.
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 10:59 am
by mwilner
Hi Francesco,
I do still have the problem in Win 7 64 bit but how can I send you the project?
Also a very simple project will not help as you will have to have the driver that is supposed to get installed with PnPUtil.
Thank you,
Re: IA can't run PnPUtil in Win7 64
Posted: Thu May 24, 2012 11:25 am
by FrancescoT
Dear Manfred,
Let me think how I can simulate it.
Let me know if you have an alternative solution.
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Fri May 25, 2012 1:04 pm
by mwilner
Hi Francesco,
I figured out what the problem is in Win 7 64, you need to elevate the app to Admin because even when using a batch file outside IA I couldn't successfully execute PnPUtil.
So my question now is how do I elevate the app in IA? I know of the Run As command but I don't have an admin name or password that I could elevate it to.
Thank you,
Re: IA can't run PnPUtil in Win7 64
Posted: Mon May 28, 2012 8:19 am
by FrancescoT
Dear Manfred,
Probably it is a very stupid suggestion, Can you create a customized dialog to ask user to enter User and password?
Regards
Re: IA can't run PnPUtil in Win7 64
Posted: Wed May 30, 2012 9:59 am
by mwilner
Hi Francesco,
Thank you for the help so far I will not be able to pop up a dialog asking for the Admin name and password but will have to come up with a different workaround.
It is unfortunate that IA is not elevating any applications that it calls to the same level as it is itself since the installer is starting with Admin priviledges.
Is this restriction on purpose?
Best regards,