Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: problem with Sysprep changing the default program for .mov files


13 Sep 2011   #1

Windows 7 Professional 32-bit
 
 
problem with Sysprep changing the default program for .mov files

I have a problem with Sysprep changing the default program for .mov files (and other Apple files) from Quicktime or VLC to Windows Media Player.

I'm looking for a way to change these settings back after Sysprep is complete using either a .reg file or a VBS script. (I've tried using an AutoIT script before to navigate through menus and it didn't work right.)

I've used ProcessMonitor to watch what keys and values are changed when I reclaim those files for VLC. The only values I see changed are in:

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\VLC\Capabilities\FileAssociations]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts]

I merge these key branches back into the registry with a regedit /s command, but the file associations aren't reset. Is there someplace I'm missing?

My System SpecsSystem Spec
.

13 Sep 2011   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Feenst, and welcome to Seven Forums.

You could download and merge the MOV option in the tutorial below to restore the default associations for the .mov file extenstion if you like.

Default File Type Associations - Restore

Hope this helps,
Shawn
My System SpecsSystem Spec
13 Sep 2011   #3

Windows 7 Professional 32-bit
 
 

Hi Shawn,

I ran and merged that .reg file and I get an error message from Windows Media Player when I click a .mov link:

"Windows Media Player cannot play that file. The Player might not support the file type or might not support the codec that was used to compress the file."

So, I want to use VLC to play these files.

If I go to Start > Control Panel > Default Programs > VLC media player > Choose Defaults for This Program and click "Select All" and save the changes, VLC is able to open the file.

I've had Process Monitor running while I did this and the only keys where RegSetValue is applied are:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\VLC\Capabilities\FileAssociations]

I've also checked the HKCR keys in the registry after I've changed the default associations in the GUI. Those keys don't appear to change from their WMP associations.
My System SpecsSystem Spec
.


13 Sep 2011   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

As long as VLC is used to open the MOV by default, then you are good to go. Normally the ProgID DWORD at the location below in the registry is where it would have been changed at to be VLC though.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mov\UserChoice
My System SpecsSystem Spec
14 Sep 2011   #5

Windows 7 Professional 32-bit
 
 

That DWORD seems to do the trick. Now I need to figure out how to get those keys into the registry via script.

A regedit /s brings up a UAC prompt. I've got an AutoIT script using the RunAs function that can run regedit /s without the UAC prompt, but it uses the Administrator environment variables. So the registry changes aren't applied to the HKCU branch of the logged-in user.

I'll create a new thread on this issue.
My System SpecsSystem Spec
14 Sep 2011   #6
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Does it need to be done via script instead of just exporting the UserChoice key at that location for a REG file to use?
My System SpecsSystem Spec
14 Sep 2011   #7

Windows 7 Professional 32-bit
 
 

I can export the key branch without a problem. I want to be able to import the key into the registry on about 100 machines.

A "regedit /s" command triggers the UAC prompt on the system. I've used an AutoIT script in the past to get around UAC prompts when I'm merging .reg files, but the AutoIT script I have switches the environment to Administrator. So when I merge the registry files, it doesn't go into the registry branch for the logged-in user. The registry changes go into the User branch for "Administrator."

I think I've got around this by using a .vbs script and the RegWrite function.
My System SpecsSystem Spec
Reply

 problem with Sysprep changing the default program for .mov files




Thread Tools



Similar help and support threads for2: problem with Sysprep changing the default program for .mov files
Thread Forum
Changing the default position of opening a program General Discussion
Changing the default directory for all Internet files Browsers & Mail
Solved Changing default view for folders with audio files Customization
Trouble changing default program association General Discussion
Solved Changing default program for extension messes up the icon Customization
IE8 Changing Default Folder Path for Temporary Internet Files Browsers & Mail
Can't set default program to open .hlp files General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:10 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33