Thread: bsplayer nsis
View Single Post
  #2 (permalink)  
Old 22nd February 2009
Tizio Tizio is offline
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 27
Tizio will become famous soon enough
Default

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
__________________
BSP SkinMaker (v1.07) the one and only Skin Editor for BSplayer
BSP Definitions Manager (v1.02)
BS.Player's FAQ (by BSPeter) | Italian language file (v2.57 build 1051)
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20