Is it possible to run the wpf app only on a CD/DVD that we sell and not install the application on any computer.
Thanks
N
Is it possible to run the wpf app only on a CD/DVD that we
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am going to assume you are using VB.NET and give some sample code:
Check the file path of the current running application in the main method of your program. Then check to see whether the drive letter designator is of a drive whose type is CD-ROM or DVD-ROM. You may have to truncate the CurrentAppRootPath to the first three characters if you are putting the executable in a subdirectory on the disk.
I have not tested this, but it stands to reason that it would work.
Cory