3

how to install additional file such as some excel or webpage shortcut in the installation directory so that my executable should be able to access that file? please help

2
  • Do you mean at the time your application is installed or at some other time - e.g an update? Jun 5, 2011 at 6:23
  • yup at the time application is installed
    – ehmad11
    Jun 5, 2011 at 6:28

2 Answers 2

2

Add the file to your project.
Set the build action to "content".
Set "copy to output directory" to "copy always".
The file should be included in the same folder as the rest of your deployment. You should be able to see it by building it and looking in the \bin\release or the \bin\debug folder. If it's not there, click on the Application Files button and see if it shows up there.

1

In the solution explorer, right click on the file and go to properties. Set "Copy to output directory" to "Copy if newer". You may also need to set "Build action" to "Embedded resource" if it is not already.

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.