Results 1 to 9 of 9

Thread: [2005] Setup project Q

  1. #1

    Thread Starter
    Addicted Member javad2000's Avatar
    Join Date
    Dec 2006
    Posts
    238

    [2005] Setup project Q

    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
    Last edited by javad2000; Sep 8th, 2007 at 08:10 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Setup project Q

    Select your Setup project in the Solution Explorer and press the File Types Editor button.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member javad2000's Avatar
    Join Date
    Dec 2006
    Posts
    238

    Re: [2005] Setup project Q

    Thank you jmc
    I found it.

  4. #4

    Thread Starter
    Addicted Member javad2000's Avatar
    Join Date
    Dec 2006
    Posts
    238

    Re: [2005] Setup project Q

    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

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Setup project Q

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member javad2000's Avatar
    Join Date
    Dec 2006
    Posts
    238

    Re: [2005] Setup project Q

    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

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Setup project Q

    Add a Launch Condition to your Setup project. Go to the MSDN library and read about Launch Conditions, and setup projects in general too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Addicted Member javad2000's Avatar
    Join Date
    Dec 2006
    Posts
    238

    Re: [2005] Setup project Q

    Quote Originally Posted by jmcilhinney
    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 you
    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?

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Setup project Q

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width