Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. File associations and ClickOnce Application Reference files

File associations and ClickOnce Application Reference files

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Baeltazor
    wrote on last edited by
    #1

    When I publish my C# application using Visual Studio Express, and install it, it creates a ClickOnce Application Reference file on the desktop and in the Start Menu instead of just a normal .EXE file - and this is screwing up my File Associations. Could someone kindly suggest how I could have txt files etc opened in my application when dealing with Application Reference files? Thank you

    T 1 Reply Last reply
    0
    • B Baeltazor

      When I publish my C# application using Visual Studio Express, and install it, it creates a ClickOnce Application Reference file on the desktop and in the Start Menu instead of just a normal .EXE file - and this is screwing up my File Associations. Could someone kindly suggest how I could have txt files etc opened in my application when dealing with Application Reference files? Thank you

      T Offline
      T Offline
      Tony Richards
      wrote on last edited by
      #2

      The real .exe file will be stored somewhere in the user's AppData folder (I think). Why not have the associations set on first startup of the program? You could have your software enter the details in to the registry (note: potential permissions/UAC problem) as it will know exactly where it is.

      My Blog: This Blog

      B 1 Reply Last reply
      0
      • T Tony Richards

        The real .exe file will be stored somewhere in the user's AppData folder (I think). Why not have the associations set on first startup of the program? You could have your software enter the details in to the registry (note: potential permissions/UAC problem) as it will know exactly where it is.

        My Blog: This Blog

        B Offline
        B Offline
        Baeltazor
        wrote on last edited by
        #3

        Thank you - I have searched my entire hard drive in every possible place that there would be an executable file but have not found any. I even checked the AppData folder. Nothing at all. Just a bunch of ClickOnce Application Reference icons. I also tried setting registry info for the associations on startup and it has been unsuccessful. I don't get any errors at all... It just doesn't work. I've also (originally) tried using the File Association dialog that's inside the Publish page where you publish the project and entered ProgID info and icons etc and that approach hasn't worked either. But, funny thing... The custom Icons I used in the File Association dialog in VS are showing up on the files... My app just isn't loading the content of the files that are being double-clicked.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups