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. Windows API
  4. Compatibility Files in Vista [modified]

Compatibility Files in Vista [modified]

Scheduled Pinned Locked Moved Windows API
csharphelpquestion
6 Posts 4 Posters 0 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.
  • A Offline
    A Offline
    Avanish Singh Chauhan
    wrote on last edited by
    #1

    I developed a desktop application in C#.Net using VS2005. On one of the form, On double clicking a Listview, the selected file is opened with the selected application. MSWORD for .doc and WinZip for .Zip This works perfectly in XP,2003 and other platforms except vista. The files which i want to open is in the application folder, c:programfiles/myapp. The problem is Compatibility files. Can any one help me out?? How can i make my application compatible with Vista ? OK let me make it more clear. My application is always installed in to c:/program files the default path. The problem is that on double click .pdf ,.jpg , .bmp files open up but the files such as .doc, .ppt, .txt .mdb does not open in Vista. -- modified at 1:07 Thursday 11th October, 2007

    Avanish

    J S 2 Replies Last reply
    0
    • A Avanish Singh Chauhan

      I developed a desktop application in C#.Net using VS2005. On one of the form, On double clicking a Listview, the selected file is opened with the selected application. MSWORD for .doc and WinZip for .Zip This works perfectly in XP,2003 and other platforms except vista. The files which i want to open is in the application folder, c:programfiles/myapp. The problem is Compatibility files. Can any one help me out?? How can i make my application compatible with Vista ? OK let me make it more clear. My application is always installed in to c:/program files the default path. The problem is that on double click .pdf ,.jpg , .bmp files open up but the files such as .doc, .ppt, .txt .mdb does not open in Vista. -- modified at 1:07 Thursday 11th October, 2007

      Avanish

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      You could add an elevation manifest file to your application, then it should work. regards,


      Jonathan Wilkes Darka[Xanya.net]

      D A 2 Replies Last reply
      0
      • J Jonathan Darka

        You could add an elevation manifest file to your application, then it should work. regards,


        Jonathan Wilkes Darka[Xanya.net]

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #3

        Or he could do it the right way and sidestep UAC by writing to \program files\common files\

        -- If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.

        1 Reply Last reply
        0
        • A Avanish Singh Chauhan

          I developed a desktop application in C#.Net using VS2005. On one of the form, On double clicking a Listview, the selected file is opened with the selected application. MSWORD for .doc and WinZip for .Zip This works perfectly in XP,2003 and other platforms except vista. The files which i want to open is in the application folder, c:programfiles/myapp. The problem is Compatibility files. Can any one help me out?? How can i make my application compatible with Vista ? OK let me make it more clear. My application is always installed in to c:/program files the default path. The problem is that on double click .pdf ,.jpg , .bmp files open up but the files such as .doc, .ppt, .txt .mdb does not open in Vista. -- modified at 1:07 Thursday 11th October, 2007

          Avanish

          S Offline
          S Offline
          Scott Dorman
          wrote on last edited by
          #4

          It isn't really clear what problem you are running into. What do you mean by "Compatability files"? As long as you don't try to write to a restricted area, Vista should allow you to read from the Program Files folder (or subfolders). Anything you try to write back to that location will be virtualized to a user specific directory, which should be transparent to your application. You do need to make sure that you aren't trying to use hard-coded paths. Instead, you need to use the Environment.SpecialFolder enum along with the Environment.GetFolderPath method to retrieve the Program Files folder.

          Scott.


          —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

          1 Reply Last reply
          0
          • J Jonathan Darka

            You could add an elevation manifest file to your application, then it should work. regards,


            Jonathan Wilkes Darka[Xanya.net]

            A Offline
            A Offline
            Avanish Singh Chauhan
            wrote on last edited by
            #5

            But how, How to do that. Pls send me the link to such an example of elevation manifest files.

            avanish

            J 1 Reply Last reply
            0
            • A Avanish Singh Chauhan

              But how, How to do that. Pls send me the link to such an example of elevation manifest files.

              avanish

              J Offline
              J Offline
              Jonathan Darka
              wrote on last edited by
              #6

              See some of my earlier posts in this forum, I have included a sample manifest in some of them. regards,


              Jonathan Wilkes Darka[Xanya.net]

              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