batch file give error after install
i have create batch file to run exe file to all user and its working ok but while install the file to the user give error screen attached say ( the computer might need information from you or your permission to complete the task ) and the installation will continue after that the error screen will disappear .
I don’t want the error screen to appear to the user
please any one can help
This is not an error but a information that there is a message dialogue from installer.
Is there any confirmation required from user, if you click "show me the message"?
If not, everything is ok.
Actually the message should answer your question already. It results from "Interactive Services Detection" service.
You should probably disable this (windows) service on a managed PC.
How this batch file is being executed ? If this is a part of your ZCREATE command you can try using "runasuser" in the same command. RUNASUSER is a utility that is shipped with the HPCA agent.
A sample example is " runasuser sample.bat " in ZCREATE.
"Runasuser " in itself is a command used to launch the shipped in utility so that any message appears in the logged on user context . So you can just use that while writing the ZCREATE.
HAve you tried putting " hide cmd /c " while launching this batch file. ? For ex " hide cmd / c C:\sample.bat"
Did you see what exactly is the message for which you are getting the WIndows prompt?
Also, you can try starting " Interactive services detection" service . This is one of the Windows services. This will ensure that if there any messages that are supposed to be dispplayed to the logged on user appear on the front ( desktop).
As mentioned before, this is not an error, is a Windows feature introduced back in Windows Vista - Interactive Service Detection.
As a workaround, you can launch the vb script using "runasuser.exe" provided with HPCA Agent install.
For example "runasuser.exe abc.vbs". This will ensure that user sees the message directly without seeing ISD.
There is more information on that in the following Technical Article:
You can try to add IND=Y to your connect string too. Also, if you open a case with HP Support, you can ask for fix WINA790216 (or wait for the next 7.9 Agent Patch). This fix could help to show the message in the user session (not session 0).
I hope this helps!
Hi Syed Minhajuddin Ahmed,
Interactive Service Detection was instroduce with Vista OS, so the same does not apply to Windows XP or other pre-vista systems.
I hope this helps!