Results 1 to 9 of 9

Thread: [RESOLVED] Creating Installer

  1. #1

    Thread Starter
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Resolved [RESOLVED] Creating Installer

    Hello everyone.

    This is my first time to create an installer. I developed a program which plays a two .wav files. The file path of the .wav file is hardcoded. The path is in C:\Windows folder. I want that when when the program is installed, automatically the two .wav files will be installed in C:\Windows separate from the program itself. Is this possible and any tutorial how to do it? Thank you.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

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

    Re: Creating Installer

    Thread moved From VB.NET to Application Deployment forum.
    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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,100

    Re: Creating Installer

    Any specific reason that you're using that folder? You really shouldn't be. Any specific reason you couldn't use a more appropriate folder?
    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

  4. #4

    Thread Starter
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Creating Installer

    Quote Originally Posted by jmcilhinney View Post
    Any specific reason that you're using that folder? You really shouldn't be. Any specific reason you couldn't use a more appropriate folder?
    Actually I could use any folder. My main reason is that when someone just tries to copy my .exe file, the program won't work.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  5. #5
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,856

    Re: Creating Installer

    Quote Originally Posted by Simply Me View Post
    Actually I could use any folder. My main reason is that when someone just tries to copy my .exe file, the program won't work.
    If you are going to be creating an installer then it would make more sense to put the .wav files in the same folder as the application itself.

  6. #6

    Thread Starter
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Creating Installer

    Right now, my .wavs are in the same folder as the application, but as I've mentioned, it would be like some sort of protection so that the program cannot just be copied by anyone.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

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

    Re: Creating Installer

    Look at Environment.GetFolderPath and My.Computer.FileSystem.SpecialDirectories for some of the special Windows folders that .NET respects. Both ClickOnce and the first-party Setup Projects extension for VS can access many of them. It sounds like Application Data would be the most appropriate place for those files. That will be separate to your application folder but not invading Windows system folders.
    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
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Creating Installer

    Quote Originally Posted by jmcilhinney View Post
    Look at Environment.GetFolderPath and My.Computer.FileSystem.SpecialDirectories for some of the special Windows folders that .NET respects. Both ClickOnce and the first-party Setup Projects extension for VS can access many of them. It sounds like Application Data would be the most appropriate place for those files. That will be separate to your application folder but not invading Windows system folders.
    Thank you. I will try that.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  9. #9

    Thread Starter
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Creating Installer

    Quote Originally Posted by jmcilhinney View Post
    Look at Environment.GetFolderPath and My.Computer.FileSystem.SpecialDirectories for some of the special Windows folders that .NET respects. Both ClickOnce and the first-party Setup Projects extension for VS can access many of them. It sounds like Application Data would be the most appropriate place for those files. That will be separate to your application folder but not invading Windows system folders.
    Got this sorted out already. Thank you for the help.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

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