I don't know why the shortcuts don't get created (are you sure you check the shortcut section when installing BSplayer? The start menu shortcuts section is the only one not forced option, and if you don't select it the shortcuts don't get created)
About the file associations, I think the problem is that section the registry key you wrote is
Code:
"SOFTWARE\BSplayer\Capabilities\FileAssociatio ns"
but it should be
Code:
"SOFTWARE\BSplayer\Capabilities\FileAssociations"
(without the space between
FileAssociatio and
ns)
Plus (but I'm not sure about this) if you define a "BSPlayerFile.MPG" file type, you have to register it in file associations as this:
Code:
WriteRegStr HKCR "BSPlayerFile.MPG\DefaultIcon" "" '"$INSTDIR\BSplayer.exe",1'
WriteRegStr HKCR "BSPlayerFile.MPG\shell\enqueue" "" "Enqueue in BSplayer"
WriteRegStr HKCR "BSPlayerFile.MPG\shell\enqueue\command" "" '"$INSTDIR\BSplayer.exe" -add-to-playlist "%1"'
WriteRegStr HKCR "BSPlayerFile.MPG\shell\open" "FriendlyAppName" "BSplayer"
WriteRegStr HKCR "BSPlayerFile.MPG\shell\open\command" "" '"$INSTDIR\BSplayer.exe" "%1"'
and the same for every extension....
Plus (again
) I think you should not add this codes:
Code:
WriteRegStr HKCR "SOFTWARE\BSplayer\Capabilities\FileAssociatio ns" ".mpg" "BSPlayerFile.MPG"
etc.
in HKEY_CLASSES_ROOT (but only in HKEY_LOCAL_MACHINE), but you should only add the file associations for those extension as you added them for AVI MPG and MKV files:
Code:
WriteRegStr HKCR ".avi" "" "BSPlayerFile.AVI"
WriteRegStr HKCR ".mpg" "" "BSPlayerFile.MPG"
WriteRegStr HKCR ".mkv" "" "BSPlayerFile.MPG"
And plus (ok this is the last time
) you added this line:
Code:
WriteRegStr HKCR ".mkv" "" "BSPlayerFile.MPG"
but as it is an MKV file if should point to "BSPlayerFile.MKV" association instead of "BSPlayerFile.MPG"
I hope to have been of some help, and if you still need suggestions feel free to ask here again (almost 3 years has passed since last time I used NSIS install packager, and it seems they added a ton of new features, but I'll try to help you)
Ever thought to use an NSIS script editor (maybe you already use one)? I used something called phoenix or similar... sorry, I can't remember