HISE Logo Forum
    • Categories
    • Register
    • Login

    Create folder on Users disk, or embed files that are not ".preset" files

    Scheduled Pinned Locked Moved Scripting
    7 Posts 4 Posters 380 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.
    • ulrikU
      ulrik
      last edited by ulrik

      Lets say a user have one of my plugins installed, and I have updated the plugin with some files that will be written automatically in to a folder that is not present in the users "Application support" for this plugin, is it possible to script the making of a Folder? Or do the user have to make it by her/him self?

      The files that the plugin automatically writes to disk should be placed inside the "User Presets" folder, however it is not ".preset" files, so Hise doesn't automatically embed those files.
      I know that if I make an installer I can make this easy, but I just wonder if it's possible?

      So the questions are

      1. Is it possible to script the making of a folder?
      2. Can I make Hise embed the files so it will placed at the right location inside "User Presets", even if it's not ".preset" files?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        You need to use an installer

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

        ulrikU 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey I see, thank you!
          While I have you here David :)
          If I use

          Engine.dumpAsJSON();
          

          where do I have to place this function in my code, so that it will run after the plugin has created the "User Presets" folder?

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            So @d-healey is correct - right now an installer is your only way - but I think its clear theres a whole slew of requirements around this "additional content" area.

            So if you are a kontakt developer you will know that there's a local-to-your-instrument Data folder into which you can place anything and there's an api call to read several different file formats, as well as an api to call the OS native save/load dialog.

            HISE Development for hire.
            www.channelrobot.com

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @Lindon
              last edited by

              @Lindon Oh I wish Hise could have some of those functions, thank you Lindon!

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              C 1 Reply Last reply Reply Quote 0
              • C
                coreyu21 @ulrik
                last edited by

                @ulrik I used innoscript to install theupdated dll, while creating and adding the expansion data such as user presets folder etc. takes a min to figure out innoscript but pretty easy once you get it. There’s an example in the forum. That is where I started🙂

                I also hear there may be an easier way in the near future possibly🤙

                ulrikU 1 Reply Last reply Reply Quote 1
                • ulrikU
                  ulrik @coreyu21
                  last edited by

                  @coreyu21 thank you!

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  39

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.0k

                  Posts