Solved

Driver exe's auto run after DISM/PNPUtil Import

Posted on 2014-04-16
6
1,072 Views
Last Modified: 2016-11-23
I've tried adding Dell drivers to my .wim file using DISM, and I have also tried using pnputil to add the drivers then re-capturing the image.
But it appears, after I use either method, when the computer starts up, executable files are in the start up (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run) that call the exe of some of the drivers.

All of these Run entries appear out of box:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Apoint"="C:\\Program Files\\DellTPad\\Apoint.exe"
"IgfxTray"="\"C:\\Windows\\system32\\igfxtray.exe\""
"HotKeysCmds"="\"C:\\Windows\\system32\\hkcmd.exe\""
"Persistence"="\"C:\\Windows\\system32\\igfxpers.exe\""
"RtHDVCpl"="C:\\Program Files\\Realtek\\Audio\\HDA\\RtkNGUI64.exe /s"
"RtHDVBg"="\"C:\\Program Files\\Realtek\\Audio\\HDA\\RAVBg64.exe\" /MAXX4P1"
"WavesSvc"="C:\\Program Files\\Realtek\\Audio\\HDA\\WavesSvc64.exe"
"RtHDVBg_PushButton"="\"C:\\Program Files\\Realtek\\Audio\\HDA\\RAVBg64.exe\" /IM"

Windows at startup of loading the desktop, prompts me to Run or cancel, in order for each of these entries.

If I click "run", I guess they install. For a couple, like the Realtek one, it appears to add a system tray icon of a sound icon (separate from the Windows sound volume icon).

When I reboot, the same thing happens again, all these programs try to run.

If I delete the entries, then reboot, they go away, but the icons in the system tray like for Realtek for example, are gone.
However no devices appear to be missing from the device manager...
0
Comment
Question by:garryshape
  • 5
6 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 40006393
Drivers installed via exe files, are usually just compressed zip packages, which get extracted by running the exe file. Those extracted files are then copied to another directory, and after that the installer installs them.

On a Dell, when you manually run those files, you can usually choose where those extracted files will be stored at. So what you should do is to first run those exe's, then look at the extracted folders and just copy the relevant folders or contents of folders to your installation directory. Don't copy the complete exe. You'll probably also notice that the folders contain sub folders for different OS's, so you only need those that are relevant to your OS.
0
 

Author Comment

by:garryshape
ID: 40006476
What I did was I had downloaded the .cab file from Dell for this particular computer model
http://en.community.dell.com/techcenter/enterprise-client/w/wiki/4963.latitude-e6440-windows-7-driver-cab.aspx

I didn't download individual exe drivers

I just downloaded that .cab file above, extracted it, then mounted the .wim image of my Windows 7 image and used DISM with /recurse command to add all inf drivers found within that x64 folder of the extracted cab file from Dell.

It's the same process I used for the E6430 laptop but the E6430 didn't have this issue with driver exe's running after reboot.
0
 

Author Comment

by:garryshape
ID: 40006713
Ok I came across a couple of other threads and it appears it's because maybe the .cab file I extracted had to be "unblocked" first.

http://social.technet.microsoft.com/Forums/en-US/8af05827-2e38-4a0a-8249-a4ff07434a67/executables-installed-during-driver-installation-not-running?forum=w7itproinstall

http://blogs.technet.com/b/askcore/archive/2010/11/12/open-file-security-warning-prompt-during-deployment.aspx

These entries are indeed supposed to remain in the Run key, but because the exe's seem to have originated from another computer, I need to try and "unblock" the files so I don't get that security prompt every time.

I will try it out and check.
0
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

Author Comment

by:garryshape
ID: 40006831
Now I've got to figure out how to remove all these exes and drivers so I can re-add the "unblocked" ones. Restoring old image then will try dism add-drivers with unblocked ones
0
 

Accepted Solution

by:
garryshape earned 0 total points
ID: 40007035
Ok, UNBLOCKING the .cab file of driver pack I downloaded from Dell (right-click cab file, properties, then unblock", before extracting it.
Then I extracted it and slipstreamed the drivers into my .wim image.

Now the driver exes run at startup just fine and I get no security prompts.
0
 

Author Closing Comment

by:garryshape
ID: 40014375
FOUND SOLUTION
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question