HISE Logo Forum
    • Categories
    • Register
    • Login

    extractZipFile problem

    Scheduled Pinned Locked Moved General Questions
    81 Posts 5 Posters 4.0k Views
    Loading More Posts
    • 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.
    • LindonL
      Lindon @Lindon
      last edited by

      Or can I just set the "Run as Administrator" Flag in the compiled apps properties , and this would make my downloaded app run as administrator every time?

      It should be clear I have no idea about this , anyone have any experience?

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon An Inno installer will prompt for permission I think

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey said in extractZipFile problem:

          @Lindon An Inno installer will prompt for permission I think

          yeah -- and I think I might know how to make my app ask for permissions too.... just testing with a 3rd party now....

          HISE Development for hire.
          www.channelrobot.com

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Lindon
            last edited by

            @Lindon Excellent, let us know your results. I need this feature too, in fact I've already implemented it but I didn't test it on Windows and MacOS yet, I might try this afternoon if I have some time.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey sadly the simple "set in my window for all users" - doesnt work...we need a mechanism to define our app to open in admin mode...

              HISE Development for hire.
              www.channelrobot.com

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Lindon
                last edited by

                looks like it could be a setting in the manifest file in the Linker...

                Link Preview Image
                C++: Run program as administrator

                Some programs are automatically asking for administrator rights when you run them. These programs are marked with a little shield in the bottom right corner: Now I'm wondering how I could accompl...

                favicon

                Stack Overflow (stackoverflow.com)

                HISE Development for hire.
                www.channelrobot.com

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Lindon
                  last edited by

                  @Lindon Working on a test project now, I'll report my results.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @d.healey
                    last edited by

                    Something I just saw in the docs which might be of interest but isn't a solution to the problem:

                    This method will extract a standard ZIP file (without password protection) to the given target directory (which can be either a file path String or a File object).

                    So you don't need to use FileSystem.fromAbsolutePath(), you can just pass in the string.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey
                      last edited by

                      I can confirm the issue on my system, can't extract to anywhere on the C drive. I'll keep investigating.

                      I've made a simple little test application for anyone who wants to play around with this. A test zip file is included in the project folder.

                      zipExtractor.zip

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey
                        last edited by

                        @Lindon Yep you're correct. Add /MANIFESTUAC:level='requireAdministrator' to the linker flags section in Projucer and when your app starts you'll be prompted to give permission. Not sure how this will affect plugins, I'm going to test it now.

                        9089f61b-033c-4551-8c54-051428091fe1-image.png

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @d.healey
                          last edited by

                          @d-healey yeah I did this the other way(via VisualStudio)

                          213cda59-82bc-4a50-9512-3dbc05d1b2e9-image.png

                          and this seems to work too...

                          HISE Development for hire.
                          www.channelrobot.com

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @Lindon
                            last edited by d.healey

                            @Lindon I tested in a plugin and it doesn't work. I assume that the plugin takes on the same privilege level as the host.

                            I'm going to test on MacOS now.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            LindonL 2 Replies Last reply Reply Quote 0
                            • LindonL
                              Lindon @d.healey
                              last edited by

                              @d-healey said in extractZipFile problem:

                              @Lindon I tested in a plugin and it doesn't work. I assume that the plugin takes on the same privilege level as the host.

                              I'm going to test on MacOS now.

                              -- test a stand alone on MacOS? yes? say yes, go on say yes...

                              HISE Development for hire.
                              www.channelrobot.com

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • LindonL
                                Lindon @d.healey
                                last edited by

                                @d-healey said in extractZipFile problem:

                                @Lindon I tested in a plugin and it doesn't work. I assume that the plugin takes on the same privilege level as the host.

                                I think this may well be why NI Native Access and Arturia Software Centre etc. are stand alone programs only....they wont work as plugins because of this permissions issue...

                                HISE Development for hire.
                                www.channelrobot.com

                                1 Reply Last reply Reply Quote 1
                                • d.healeyD
                                  d.healey @Lindon
                                  last edited by

                                  @Lindon

                                  -- test a stand alone on MacOS? yes? say yes, go on say yes...

                                  Yes. Just tested and it works fine, no permission issues. At least on my system.

                                  I'm going to add that linker flag to my HISE fork's standalone template so it will automatically be added every time I export a standalone project.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  LindonL 1 Reply Last reply Reply Quote 0
                                  • LindonL
                                    Lindon @d.healey
                                    last edited by

                                    @d-healey - yeah I think MacOS is a bit more permissive than Windows - no surprise - it gets hacked a lot less.. but good to know, on to the next problem - well done.

                                    HISE Development for hire.
                                    www.channelrobot.com

                                    1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey
                                      last edited by

                                      I've added a note about this to the docs - https://github.com/christophhart/hise_documentation/commit/0ced485944bc94c2bade19ab6a037d10c6db4c04

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      Christoph HartC 1 Reply Last reply Reply Quote 1
                                      • Christoph HartC
                                        Christoph Hart @d.healey
                                        last edited by

                                        @d-healey yes but please don‘t make this the default - most people won‘t need admin access and it will look weird for a random eq plugin to ask for write access to the system folders.

                                        d.healeyD 1 Reply Last reply Reply Quote 1
                                        • d.healeyD
                                          d.healey @Christoph Hart
                                          last edited by

                                          @Christoph-Hart I'm just making it the default on my fork, I'm not going to make a pull request. It's only in the standalone template, not the plugin template. At the moment everything I'm doing is with my standalone downloader so it's more convenient for me to have it as the default, I might change it in the future - or better yet use cmake ;)

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          Christoph HartC 1 Reply Last reply Reply Quote 0
                                          • Christoph HartC
                                            Christoph Hart @d.healey
                                            last edited by

                                            @d-healey the proper solution would be to add a checkbox in the hise Project settings and then it will add those lines to the exporter template.

                                            d.healeyD 1 Reply Last reply Reply Quote 3
                                            • First post
                                              Last post

                                            50

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts