Hello
I am using vb2005 to make a setup project. My Q is:
How can I make a setup proj that automatically associates some file-types (such as mp3, wav, mpg, etc.) with my application?
Thank you
Printable View
Hello
I am using vb2005 to make a setup project. My Q is:
How can I make a setup proj that automatically associates some file-types (such as mp3, wav, mpg, etc.) with my application?
Thank you
Select your Setup project in the Solution Explorer and press the File Types Editor button.
Thank you jmc
I found it.
Hello
I have another Q for now:
What if I want to let the user choose wether or not to associate the file-types with my app?
and also:
What if I want to let him choose the file-types that will be associated with my app?
Is it an easy technic or too complicated for a beginner?
Thank you
I've never tried so I'm not sure. VS Setup projects provide some options but they are not super-flexible. The file associations you create in the editor may have a condition you can set on them, otherwise you'd have to use a custom action. That way you can offer any options you like, but you'd also have to edit the registry yourself to create the associations. That's not such a big deal though.
Hello and Thanx again
I have another Q now:
VB setup projects have this condition by default:
.net framework must be installed on the system!
Now, I want to add this condition also:
Real Player must be installed on the system.
How is it possible?
Merci
Add a Launch Condition to your Setup project. Go to the MSDN library and read about Launch Conditions, and setup projects in general too.
Hello and Thank youQuote:
Originally Posted by jmcilhinney
I had done this before, and retried it again. Read the MSDN instructions for Launch Conditions, but couldn't find anything about:
Setting a program (such as RealPlayer) as a prerequisite.
Is it possible at all or not?
Of course it's possible. There's not going to be any predefined Launch Condition that says RealPlayer must be installed. You can add a Launch Condition for a file or a registry entry, amongst other things. Find a file or registry entry that indicates that RealPlayer is installed and that's it.