Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 645993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:33:49+00:00 2026-05-13T21:33:49+00:00

Is it possible to run the wpf app only on a CD/DVD that we

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:33:49+00:00Added an answer on May 13, 2026 at 9:33 pm

    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.

        Dim CurrentAppRootPath As String = System.Reflection.Assembly.GetExecutingAssembly.Location
    
        Dim MyDriveInfo = From drive In My.Computer.FileSystem.Drives _
                          Where drive.RootDirectory.ToString = CurrentAppRootPath
        If Not MyDriveInfo.First.DriveType = DriveType.CDRom Then
            Exit Sub
        End If
    

    I have not tested this, but it stands to reason that it would work.

    Cory

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF App that is run on the client. I have two
I have a WPF application that will always run on windows 7, it opens
Using only MySQL , I'm seeing if it's possible run an insert statement ONLY
Is it possible to run a ruby application as a Windows Service? I see
I noticed its possible to run SQL scripts with Oracle's SQLPlus by providing only
I've read on few places already, that it's possible to combine XNA and WPF.
My WPF App receives a stream of messages from a backend service that I
Is it possible to run an external process from Perl, capture its stderr, stdout
Is it possible to run both debuggers within the same PHP installation simultaneously. They
Is it possible to run the 32-bit version of Visual Studio 2008 Professional on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.