Setup and File association
-
Hey guys! In my setup project, I want my software to appear in the [Open With] context menu for a certain file extension, however if I do so, the file association makes my software the default file association in Windows for that particular extension. I Do want windows to associate my software with the file extension, but I don't want my setup to change the default association for that file extension. Is that possible?
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
Hey guys! In my setup project, I want my software to appear in the [Open With] context menu for a certain file extension, however if I do so, the file association makes my software the default file association in Windows for that particular extension. I Do want windows to associate my software with the file extension, but I don't want my setup to change the default association for that file extension. Is that possible?
.: I love it when a plan comes together :. http://www.zonderpunt.nl
Meaning "Don't change the association if one already exists, but create an association if it doesn't"? Me, I'd avoid doing it during Setup, and just have your application check to see if the file association is there, then prompt the user asking if they would like the assocation created or changed, as appropriate. (Kind of like email programs do if they find they're not the deafult mailer, or Quicktime with image types, etc.)
-
Hey guys! In my setup project, I want my software to appear in the [Open With] context menu for a certain file extension, however if I do so, the file association makes my software the default file association in Windows for that particular extension. I Do want windows to associate my software with the file extension, but I don't want my setup to change the default association for that file extension. Is that possible?
.: I love it when a plan comes together :. http://www.zonderpunt.nl
I think you are looking for this. http://msdn.microsoft.com/en-us/library/bb166549.aspx[^] http://msdn.microsoft.com/en-us/library/bb165967.aspx[^]
"Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.
-
Meaning "Don't change the association if one already exists, but create an association if it doesn't"? Me, I'd avoid doing it during Setup, and just have your application check to see if the file association is there, then prompt the user asking if they would like the assocation created or changed, as appropriate. (Kind of like email programs do if they find they're not the deafult mailer, or Quicktime with image types, etc.)
The solution is to change the verb of the file association's action to openas in stead of open. The openas verb makes your software appear in the 'Open With' context menu, but doesn't change the default file association which is exactly what I wanted. Thanks for your reply!
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
I think you are looking for this. http://msdn.microsoft.com/en-us/library/bb166549.aspx[^] http://msdn.microsoft.com/en-us/library/bb165967.aspx[^]
"Never put off until run time what you can do at compile time." - David Gries, in "Compiler Construction for Digital Computers", circa 1969.
I found the solution ( this[^] message explains more) Thanks for your reply!
.: I love it when a plan comes together :. http://www.zonderpunt.nl