Old 9th November 2007, 20:25   #1
MikeInVancouver
Junior Member
 
Join Date: Jan 2007
Posts: 8
Registering .ics files to a new application

Hi All,

I know there is some topics in teh forum already about registering files types to applications, but I have not had much luck in getting my new application to be the default application to open a .ics file (the current default is Outlook).

This is the code I am using in the NSIS script

WriteRegStr HKCR "icsfile" "shell" ""
WriteRegStr HKCR "icsfile\shell" "open" ""
WriteRegStr HKCR "icsfile\shell\open" "command" ""
WriteRegStr HKCR "icsfile\shell\open\command" "" '$INSTDIR\MyApp.exe "%1"'

WriteRegStr HKLM "Software\Classes\MyApp.AssocFile.ICS" "" "ICS Calendar File"

WriteRegStr HKLM "Software\Classes\MyApp.AssocFile.ICS\shell\open\command" "" '$INSTDIR\MyApp.exe "%1"'

WriteRegStr HKLM "Software\MyApp\Capabilities" "" "Application Description = MyApp"

WriteRegStr HKLM "Software\MyApp\Capabilities\FileAssociation" "" ".ics = MyApp.AssocFile.ICS"

WriteRegStr HKLM "Software\RegisteredApplications" "" "MyApp= Software\MyApp\Capabilities"


Yet when I double click on a .ics file Outlook is always launched.

Thanks for any help,


Mike
MikeInVancouver is offline   Reply With Quote
Old 9th November 2007, 22:06   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Make sure that .ics is linked to icsfile:

WriteRegStr HKCR .ics `` icsfile

Stu
Afrow UK is offline   Reply With Quote
Old 9th November 2007, 22:26   #3
MikeInVancouver
Junior Member
 
Join Date: Jan 2007
Posts: 8
Thank you that worked.
MikeInVancouver is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump