-
Mar 30th, 2024, 03:10 AM
#1
Thread Starter
PowerPoster
[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.
-
Mar 30th, 2024, 03:54 AM
#2
Re: Creating Installer
Thread moved From VB.NET to Application Deployment forum.
-
Mar 30th, 2024, 03:56 AM
#3
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?
-
Mar 30th, 2024, 04:09 AM
#4
Thread Starter
PowerPoster
Re: Creating Installer
 Originally Posted by jmcilhinney
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.
-
Mar 30th, 2024, 10:58 AM
#5
Re: Creating Installer
 Originally Posted by Simply Me
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.
-
Apr 4th, 2024, 07:52 PM
#6
Thread Starter
PowerPoster
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.
-
Apr 4th, 2024, 08:47 PM
#7
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.
-
Apr 4th, 2024, 09:37 PM
#8
Thread Starter
PowerPoster
Re: Creating Installer
 Originally Posted by jmcilhinney
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.
-
Apr 10th, 2024, 02:31 AM
#9
Thread Starter
PowerPoster
Re: Creating Installer
 Originally Posted by jmcilhinney
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|