Solved I can't associate portable program as default program

peter7277

New member
Member
Local time
3:00 PM
Messages
83
I am trying to associate kmplayer.exe for these 3 file types - avi,mp4,flv. But whatever i try Window 7 is just refusing to recognize the kmplayer.exe file.
My KMPlayer is in portable format.
What can i do to make KMPlayer as default player for these file types or is there any third party program that can help me create this association?
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Hi peter7277, I have never used KM Player, but I do use Media Player Classic Home Cinema portable. I opened it's Options and set it like this.

RR.jpg
 

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
KMPlayer has similar settings and i set .avi,.mp4,.flv to be associated with KMPlayer but still it is not working.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
My understanding is you can't use a portable format as a default program because it's not installed on the system.
Don't hate me if I'm wrong. Just my understanding.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Portable Program associate file extensions

Hi,

I don't use KMPlayer but I do have S-Player portable media player.

Now I can't say if this solution will work for you but this is what I did.

S-Player-Options.jpg

I left the S-Player settings alone and changed nothing. Didn't attempt to associate any extensions.

Then I created an elevated shortcut to the program's executable file in:

%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


(Copy and paste into the address bar in an explorer window).

http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html

(The shortcut should be created here

%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

and not on your Desktop as shown in the tutorial. Or you can just use:

http://winaero.com/comment.php?comment.news.152 - be careful and choose the correct download link.

Then rebooted. S-Player runs on start-up and that's not really useful - in fact it's annoying.

However I just right clicked an .mp4 file then chose Open with - browsed to splayer.exe and chose to always open with.

Open with 2.jpg

Rebooted - then removed the elevated shortcut that I'd created earlier. S-Player no longer auto-starts on boot and the default program settings stuck.

A workaround that's inconvenient but works is to add a shortcut to KMPlayer in your right click send to menu.

%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo

If you right click on a video you can choose to open it with KMPlayer by choosing send to.

Send To.jpg
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
Thanks, i will try this.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Hi peter7277,
I right clicked mpc-hcportable.exe selected properties and got the option as in my image. My player works without being run as Admnistrator. Try it on KM Player.

RR.jpg
 
Last edited:

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
I finally was able to create the file association from the KMPlayer settings. But from windows explorer still doesn't work.

Anyway, KMPlayer now is set as default player for these file extensions.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Same problem with other portable apps

I have exactly the same problem with other portable apps.

I am trying to set a PDF reader to open my PDFs - Evince or Sumatra. I follow the normal procedure for telling Windows7 what to open it with, and if I navigate to and select a portable app, it simply ignores what I just selected and stays with it's established list of proposed programs. Doesn't matter what I try, it doesn't let me assign a portable app to the file type.

There must be a way to edit the registry or something, just as some portable apps are able to change the file associations for you.

I realize that this is a year old thread, but I think it's important to know that it's not an issue with the one media player in the op. Programs like Irfanview do have a function to associate windows file types, but the PDF readers that I want to try do not have this function. I have eVince and Sumatra portable PDF readers. The reason I chose those is because the Foxit reader that microsoft is not a good option for me.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Gateway NV75S-07h
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD A6-3420M APU with Radeon HD Graphics
Motherboard
Gateway SJV70-SB
Memory
6.00 GB
Graphics Card(s)
AMD Radeon HD 6520G w.512MB (ATI display adapter (0x9647))
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Generic built-in display (Laptop)
Screen Resolution
1600x900
Hard Drives
(1) CHN25SATAS1 128 ATA Device
(2) TOSHIBA MK7559GSXP ATA Device
Internet Speed
5mbps
Antivirus
Kingsoft
Browser
iron, chromium, firefox
Welcome to Seven Forums Timmi. Sumatra has a command line for setting the portable as default

Open an advanced command prompt

Start> In search box type cmd> Right click on cmd.exe in results above and choose Run as administrator

Navigate to the SumatraPortable folder (type cd and the path, IE: cd C:\Users\Timmi\program files (x86)\SumatraPortable > Enter )

Then type

SumatraPortable.exe --register-for-pdf

Enter

Try opening a pdf file. If it doesn't work first time, try it again. That should work.

-register-for-pdf forces registering Sumatra as a default reader for PDF files and exits

Manual for Sumatra PDF reader

A Guy
 
Last edited:

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Hi A Guy
Thanks for leading me into the right direction.
The following command worked for me:

Sumatrapdf.exe -register-for-pdf
 

My Computer

Computer type
PC/Desktop
OS
Win 7 Pro x64
Great, glad to know an older post was helful ;)

A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Welcome to Seven Forums Timmi. Sumatra has a command line for setting the portable as default

Open an advanced command prompt

Start> In search box type cmd> Right click on cmd.exe in results above and choose Run as administrator

Navigate to the SumatraPortable folder (type cd and the path, IE: cd C:\Users\Timmi\program files (x86)\SumatraPortable > Enter )

Then type

SumatraPortable.exe --register-for-pdf

Enter

Try opening a pdf file. If it doesn't work first time, try it again. That should work.



Manual for Sumatra PDF reader

A Guy


A-Guy: Hey, I completely forgot to thank you for this.
(I probably forgot about the thread, at a time when I moved to Mint, and wasn't checking gmail anymore with all the junk in there and no tools to clean it up (you know, like MS's "sweep" function in webmail))

Everytime I come back to Windows (like now), I have to try and remember why Windows is resetting/overriding these file association settings when chosen from within a program. (I try to use portable apps for everything where possible).

Just so this post isn't for nothing:
for Portable Apps (like irfanview) that do have file-associations you can set in the program, launch it "as administrator" and those changes should take, rather than be reset by Windows.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Gateway NV75S-07h
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD A6-3420M APU with Radeon HD Graphics
Motherboard
Gateway SJV70-SB
Memory
6.00 GB
Graphics Card(s)
AMD Radeon HD 6520G w.512MB (ATI display adapter (0x9647))
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Generic built-in display (Laptop)
Screen Resolution
1600x900
Hard Drives
(1) CHN25SATAS1 128 ATA Device
(2) TOSHIBA MK7559GSXP ATA Device
Internet Speed
5mbps
Antivirus
Kingsoft
Browser
iron, chromium, firefox
Back
Top