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. .NET (Core and Framework)
  4. Click Once and file associations

Click Once and file associations

Scheduled Pinned Locked Moved .NET (Core and Framework)
sysadmintestingbeta-testingquestion
12 Posts 2 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.
  • R RugbyLeague

    So I have an app which I am deploying internally using ClickOnce (full trust etc) I have set the file associations in the publish options dialog on the publish tab but when I come to publish then install it the file associations don't do anything - when I was testing it I had manually set the file associations to notepad - which is how they remain. Windows 7 helpfully doesn't provide a way to disassociate file extensions but even so - given I have told the clickonce deployment to associate file extensions I would like it not to ignore me. Anybody any have pointers? I have been googling this all afternoon.

    R Offline
    R Offline
    RugbyLeague
    wrote on last edited by
    #2

    Hmm, it appears it won't overwrite previously set file associations

    1 Reply Last reply
    0
    • R RugbyLeague

      So I have an app which I am deploying internally using ClickOnce (full trust etc) I have set the file associations in the publish options dialog on the publish tab but when I come to publish then install it the file associations don't do anything - when I was testing it I had manually set the file associations to notepad - which is how they remain. Windows 7 helpfully doesn't provide a way to disassociate file extensions but even so - given I have told the clickonce deployment to associate file extensions I would like it not to ignore me. Anybody any have pointers? I have been googling this all afternoon.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #3

      RugbyLeague wrote:

      using ClickOnce

      Mistake #1. Don't. Use WiX, or Advanced Installer, or InstallShield, or some other dedicated packaging tool and make a proper installation. You'll have to far more control over your setup instead of fighting with the limitations of ClickOnce.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      R 1 Reply Last reply
      0
      • D Dave Kreskowiak

        RugbyLeague wrote:

        using ClickOnce

        Mistake #1. Don't. Use WiX, or Advanced Installer, or InstallShield, or some other dedicated packaging tool and make a proper installation. You'll have to far more control over your setup instead of fighting with the limitations of ClickOnce.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        R Offline
        R Offline
        RugbyLeague
        wrote on last edited by
        #4

        Can they enable users to install without local admin rights?

        D 1 Reply Last reply
        0
        • R RugbyLeague

          Can they enable users to install without local admin rights?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #5

          That's not the problem. No. The only way to do that would be to make every user an Administrator. I don't know anyone today that's going to do that.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          R 1 Reply Last reply
          0
          • D Dave Kreskowiak

            That's not the problem. No. The only way to do that would be to make every user an Administrator. I don't know anyone today that's going to do that.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            R Offline
            R Offline
            RugbyLeague
            wrote on last edited by
            #6

            Neither do I. Hence clickonce

            D 1 Reply Last reply
            0
            • R RugbyLeague

              Neither do I. Hence clickonce

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #7

              Like I said. That's not the problem. The problem is you need Administrators or a software deployment system to install the software. If you don't have Admins that like walking around to every machine installing software, you need a software delivery system to install it for you, like System Center Configuration Manager, or LANDesk, or something similar. BTW, when a user clicks on a ClickOnce link, the installation is run as the user, not an administrator.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              R 1 Reply Last reply
              0
              • D Dave Kreskowiak

                Like I said. That's not the problem. The problem is you need Administrators or a software deployment system to install the software. If you don't have Admins that like walking around to every machine installing software, you need a software delivery system to install it for you, like System Center Configuration Manager, or LANDesk, or something similar. BTW, when a user clicks on a ClickOnce link, the installation is run as the user, not an administrator.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak

                R Offline
                R Offline
                RugbyLeague
                wrote on last edited by
                #8

                I am not convinced we are discussing the same subject. We have SCCM but the people in charge of that tend to only use it for apps rolled out to 100s - my apps usually only target 30 to 40 users - ClickOnce is great for that.

                D 1 Reply Last reply
                0
                • R RugbyLeague

                  I am not convinced we are discussing the same subject. We have SCCM but the people in charge of that tend to only use it for apps rolled out to 100s - my apps usually only target 30 to 40 users - ClickOnce is great for that.

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #9

                  RugbyLeague wrote:

                  I am not convinced we are discussing the same subject.

                  Yes, we are. The problem is that you're running into the limitations of ClickOnce. The only REAL solution to the problem is to repackage using a normal packaging tool. Then you distribute that package using SCCM.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak

                  R 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    RugbyLeague wrote:

                    I am not convinced we are discussing the same subject.

                    Yes, we are. The problem is that you're running into the limitations of ClickOnce. The only REAL solution to the problem is to repackage using a normal packaging tool. Then you distribute that package using SCCM.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    R Offline
                    R Offline
                    RugbyLeague
                    wrote on last edited by
                    #10

                    Except IT in their infinite wisdom won't use SCCM for anything other than apps distributed to 100s. So far I have been quite happy with ClickOnce - as you say it has limitations but nothing to make it unuseable

                    D 1 Reply Last reply
                    0
                    • R RugbyLeague

                      Except IT in their infinite wisdom won't use SCCM for anything other than apps distributed to 100s. So far I have been quite happy with ClickOnce - as you say it has limitations but nothing to make it unuseable

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #11

                      Being a SCCM person where I work (and over 800 applications), I find that ridiculous. We ship everything, even down to manually installed applications on single workstations.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak

                      R 1 Reply Last reply
                      0
                      • D Dave Kreskowiak

                        Being a SCCM person where I work (and over 800 applications), I find that ridiculous. We ship everything, even down to manually installed applications on single workstations.

                        A guide to posting questions on CodeProject[^]
                        Dave Kreskowiak

                        R Offline
                        R Offline
                        RugbyLeague
                        wrote on last edited by
                        #12

                        I can't say I am happy with it but it is what it is.

                        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