On the way of making an app installable
-
Fix the Name entry in your package.xml. It should be a domain-like identification.
-
I used
com.vendor.product
and it worked. Thank you. :)Through helping I was said that I need a Script file called
installscript.qs
to be added to the same folder aspackage.xml
(in meta folder) with these contents. And package.xml should also be changed to have the name of that Script.I did these and ran the command again.
It created an unknown shortcut, with this error message.If it's what the program needs to create a shortcut, so please tell that how to fix this one too?
I think it is the last step probably. -
Is the file really where the link is pointing to ?
By the way there's also an example here for the start menu.
@SGaist said in On the way of making an app installable:
Is the file really where the link is pointing to ?
Yes, the file installscript.qs is in the meta folder with these contents.
By the way there's also an example here for the start menu.
Does it mean I should again read the Docs!? :( :( :(
They are not that clear and I will have to again ask 100 questions. :( :( -
I mean, is Calc.exe really where the link is pointing to ?
Can you start it without using the link ? -
I tried to understand that .qs file and only figured out that it tries to create a shortcut on both Start Menu and Desktop (Windows) and couldn't find any flaw in it.
If the problem is of the paths as the error message says, so why that unknown shortcut is even created? If paths are not compatible, so no shortcut should be created, I assume.
As another attempt to solve the problem, I copied the Cal.exe file (from Release folder) and pasted it on Desktop (to eliminate any incompatible paths ) and re-ran this command:
C:\Qt\QtIFW2.0.3\bin\binarycreator.exe -c C:\Users\CS\Desktop\package_directory\config\config.xml -p C:\Users\CS\Desktop\package_directory\packages C:\Users\CS\Desktop\Cal.exe
Again, the same result, an "unknown" shortcut!!
I also read this link and tried to find a clue to solve the issue, but didn't see any differences with my .qs file. :( :(
-
Because Windows doesn't forbid to create invalid links.
Is it me or are you naming your installer the same name as your application ?
-
Because Windows doesn't forbid to create invalid links.
Is it me or are you naming your installer the same name as your application ?
@SGaist
Please SGaist remember that I'm a newcomer of Qt and the first time I hear Qt Installer Framework, .qs files, creating an installer and .xml files.OK, I copied the Cal.exe file on Desktop and named it Cal_app. Then ran the Command:
C:\Qt\QtIFW2.0.3\bin\binarycreator.exe -c C:\Users\CS\Desktop\package_directory\config\config.xml -p C:\Users\CS\Desktop\package_directory\packages C:\Users\CS\Desktop\Cal_app.exe
Exactly the same outcome!
-
The content of the CreateShortcut command should point to where your executable will be installed. In your code your application is called Cal.exe.
Then in your
binarycreator.exe
call, you name the installer also Cal.exe thus aren't they both having the same name ?