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
feenst

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
feenst

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
feenst

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
feenst

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
Thread Forum
changing which default program opens a file no longer works
On my home computer I decided to change which player opens my mkv files. I went to Control Panel-->Default Programs-->Associate a file type or protocol with a program and when I clicked on a file type and then on 'Change Program' the hour glass went on as if it wad doing its job but then nothing...
General Discussion
Changing the default position of opening a program
Hey guys. I have a question. Whenever I open Google Chrome, it opens really close to the bottom of the taskbar, and I always have to manually drag it into the center of the screen and maximize it. How can I set it so that automatically opens in the center of the screen?
General Discussion
Changing the default directory for all Internet files
Hello I want to change the default directory of my Internet access files like the Temp, cookies, download etc to a new hard drive. Actually, all data is stored in my SDD drive and I want to displace them to a new location. Any help appreciated Martin :)
Browsers & Mail
Changing default view for folders with audio files
Hi! I intent to have all folders opened in explorer that contain prevailingly audio files to be viewed as tiles. I guess I already have seen this tweak somewhere but can't remember where...Anybody knows? Thanks.
Customization
Trouble changing default program association
I'm having trouble with the incredibly simple task of changing a default program association. Following the very clear steps listed on this forum for at least 2 different procedures fail in my case. I could use some help. Whether starting with the "Associate ..." function in the control panel...
General Discussion
Changing default program for extension messes up the icon
Hi, Everytime I try and change the default program for an extension to something else, its icon gets messed up. For example, I am using WinCDEmu ( WinCDEmu - A free CD/DVD emulator for Win32 and Win64 ), and want to mount an .mdf, but unfortunately, the .mdf has not been automatically...
Customization


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 23:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App