Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. using the installer creator
Forum Updated to NodeBB v4.3 + New Features

using the installer creator

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 4 Posters 4.4k Views 2 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Based on input from some of you, I'm looking into using an installer to handle distribution of an app rather than creating a static executable.

    I'm trying to follow the steps in this tutorial, and am on this step

    When I run the creator from the command line, I get this error:

    Caught exception: Cannot open component script at "packages\com.vendor.product\meta\installscript.qs".

    I'd assumed from the tutorial that this script was something already provided, since I saw no mention of creating one. Do I in fact need to supply this, and if so, what does it need to do?

    Thanks...

    K 1 Reply Last reply
    0
    • mzimmersM mzimmers

      Based on input from some of you, I'm looking into using an installer to handle distribution of an app rather than creating a static executable.

      I'm trying to follow the steps in this tutorial, and am on this step

      When I run the creator from the command line, I get this error:

      Caught exception: Cannot open component script at "packages\com.vendor.product\meta\installscript.qs".

      I'd assumed from the tutorial that this script was something already provided, since I saw no mention of creating one. Do I in fact need to supply this, and if so, what does it need to do?

      Thanks...

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @mzimmers

      I never bothered with the tutorial but used the IFW examples, which should be a sub-folder where you have installed the installer framework.

      Just saw that there is also everything for the tutorial example. There is also the installscript.qs file.

      Vote the answer(s) that helped you to solve your issue(s)

      mzimmersM 1 Reply Last reply
      0
      • K koahnig

        @mzimmers

        I never bothered with the tutorial but used the IFW examples, which should be a sub-folder where you have installed the installer framework.

        Just saw that there is also everything for the tutorial example. There is also the installscript.qs file.

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        @koahnig thanks. I found the file and copied it to what I believe is the correct location:

        0_1509047861006_install.PNG

        but I'm still getting the same error, which makes me wonder whether I'm running from the correct location?

        0_1509047949471_install2.PNG

        (Sorry for the lousy pic but the error is the same as posted above.)

        K VRoninV 2 Replies Last reply
        0
        • mzimmersM mzimmers

          @koahnig thanks. I found the file and copied it to what I believe is the correct location:

          0_1509047861006_install.PNG

          but I'm still getting the same error, which makes me wonder whether I'm running from the correct location?

          0_1509047949471_install2.PNG

          (Sorry for the lousy pic but the error is the same as posted above.)

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @mzimmers

          Did you try to run the orginal tutorial example as is?

          This should work. Form there I would change step by step to your test. Or compare all files directly, whatever is easier.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DJ-Ogurt
            wrote on last edited by
            #5

            I am also having this problem. If someone could explain how the hell scripts are integrated in to installers/repos that would be awesome.

            1 Reply Last reply
            0
            • mzimmersM mzimmers

              @koahnig thanks. I found the file and copied it to what I believe is the correct location:

              0_1509047861006_install.PNG

              but I'm still getting the same error, which makes me wonder whether I'm running from the correct location?

              0_1509047949471_install2.PNG

              (Sorry for the lousy pic but the error is the same as posted above.)

              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by VRonin
              #6

              @mzimmers said in using the installer creator:

              but I'm still getting the same error

              wrong extension. it's .qs, not .js

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              mzimmersM 1 Reply Last reply
              5
              • VRoninV VRonin

                @mzimmers said in using the installer creator:

                but I'm still getting the same error

                wrong extension. it's .qs, not .js

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #7

                @VRonin good eye there. I found the right file and also grabbed page.ui and license.txt since binarycreator insisted on their presence (I don't think this was mentioned in the tutorial). The builder now works.

                Thanks to everyone who helped.

                1 Reply Last reply
                1
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by mzimmers
                  #8

                  One follow-up question: the .qs file I grabbed creates a dynamic page, which I don't need and would like to remove from the installer. I can't find a setting for the configuration file that would disable this; should I just remove it from the .qs file?
                  EDIT:
                  OK, I lied; I have two more questions:

                  1. can you scale the logo image, perhaps with a stylesheet?
                  2. I tried using a shortcut for my executable in the data subdirectory, but it didn't work. Is there a setting somewhere to tell the installer builder to follow a link when creating the installation package? I looked at the command options but didn't see anything.

                  Thanks...

                  1 Reply Last reply
                  0
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by mzimmers
                    #9

                    I just realized that my installer isn't creating a shortcut. I'm trying to use the example on this page as such:

                    if (systemInfo.productType === "windows") 
                    {
                    	component.addOperation("CreateShortcut", "@TargetDir@/APGDupontProvisioner.exe", "@StartMenuDir@/APGDupontProvisioner.lnk");
                    }
                    

                    But I get an error when I run binarycreator:

                    [3231] Warning: QFile::remove: Empty or null file name
                    Caught exception: Exception while loading component script at 
                    "packages\com.vendor.product\meta\installscript.qs": 
                    ReferenceError: component is not defined
                    

                    Any idea why I'm getting this error? TargetDir is defined in config.xml, so I don't think that's the problem.

                    Thanks...

                    K 1 Reply Last reply
                    0
                    • mzimmersM mzimmers

                      I just realized that my installer isn't creating a shortcut. I'm trying to use the example on this page as such:

                      if (systemInfo.productType === "windows") 
                      {
                      	component.addOperation("CreateShortcut", "@TargetDir@/APGDupontProvisioner.exe", "@StartMenuDir@/APGDupontProvisioner.lnk");
                      }
                      

                      But I get an error when I run binarycreator:

                      [3231] Warning: QFile::remove: Empty or null file name
                      Caught exception: Exception while loading component script at 
                      "packages\com.vendor.product\meta\installscript.qs": 
                      ReferenceError: component is not defined
                      

                      Any idea why I'm getting this error? TargetDir is defined in config.xml, so I don't think that's the problem.

                      Thanks...

                      K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #10

                      @mzimmers

                      I have at least one more parameter defined for instance

                              component.addOperation("CreateShortcut", "@TargetDir@/@MaintenanceToolName@.exe", "@StartMenuDir@/UnInstall.lnk",
                                  "workingDirectory=@TargetDir@");
                      

                      Hope that helps.

                      Vote the answer(s) that helped you to solve your issue(s)

                      1 Reply Last reply
                      0
                      • mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by
                        #11

                        No, I get the same error. Does it matter where within the file this code resides?

                        Also, is there any more definitive documentation on this facility? "boolean addOperation(string operation, stringlist parameters)" isn't all that thorough.

                        Thanks.

                        K 1 Reply Last reply
                        0
                        • mzimmersM mzimmers

                          No, I get the same error. Does it matter where within the file this code resides?

                          Also, is there any more definitive documentation on this facility? "boolean addOperation(string operation, stringlist parameters)" isn't all that thorough.

                          Thanks.

                          K Offline
                          K Offline
                          koahnig
                          wrote on last edited by
                          #12

                          @mzimmers

                          Sorry, no clue on this. I did that part already a while ago and it works AFAIK. Also when doing this I was happy when it was working.
                          The documentation is indeed not to the standards to say the least.

                          Vote the answer(s) that helped you to solve your issue(s)

                          1 Reply Last reply
                          0
                          • mzimmersM Offline
                            mzimmersM Offline
                            mzimmers
                            wrote on last edited by
                            #13

                            Anyone have any ideas? Or can share a qs file that properly creates a shortcut?

                            Thanks...

                            1 Reply Last reply
                            0
                            • mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #14

                              Gotta bump this, in case any fresh minds see it.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved