I'm trying my hand at creating a portable version of MUSHclient (mushclient.com) and I keep running into an error I can't figure out. Would appreciate any help in this matter. Here is the error when using the PortableApps Installer:
SetOutPath: "$INSTDIR\Other"
File: Descending to: "..\..\Other\Source\"
File: Returning to: "..\..\Other"
File: "..\..\Other\*.*" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "D:\MUSHclientPortable\App\MUSHclient\Other\Source\PortableApps.comInstaller.nsi" on line 1306 -- aborting creation process
This is the area around line 1306 in the file:
SetOutPath $INSTDIR\Other
File /r /x thumbs.db /x PortableApps.comInstaller*.* "..\..\Other\*.*"
Line 1306 is the second line.
You're missing the Other directory and the requisite files within. Before using the installer, the app must be in PortableApps.com Format as outlined here:
https://portableapps.com/development/portableapps.com_format
Other usually includes a Source directory with the source of the launcher. At a minimum, it should include the license details of the launcher and the base app. It often includes a Help directory with the images used by the help.html file in the base directory as well (though this is not required).
Sometimes, the impossible can become possible, if you're awesome!
Realized after doing some more reading that I was missing a big step. When using NSIS to make the launcher, when I go to compile the NIS scrips in the Source directory I get this error:
Icon: "..\..\App\AppInfo\appicon.ico"
Error while loading icon from "..\..\App\AppInfo\appicon.ico": unable to read icon from file
Error in script "D:\MUSHclientPortable\Other\Source\MUSHclientPortable.nsi" on line 64 -- aborting creation process
I do have an icon file in the directory, just copied it over from the program install directory. What am I missing here? The icon file need to be created with a certain program? Is there another place to define the .ico file?
Be sure it's in MUSHclientPortable\App\AppInfo\appicon.ico and that it's a valid Windows ICO file. And be sure to read the rest of the spec before continuing or you'll just run into more of these same issues.
Sometimes, the impossible can become possible, if you're awesome!
Got the icon problem fixed easy, found this: https://portableapps.com/node/19567 thread and it explained things a bit more. Now I'm getting this error in NSIS:
Var: "DISABLESPLASHSCREEN"
Var: "ADDITIONALPARAMETERS"
Var: "PROGRAMEXECUTABLE"
Var: "SETTINGSDIRECTORY"
Var: "PROGRAMDIRECTORY"
Var: "MISSINGFILEORPATH"
Section: "Main
SectionEnd"
Processed 1 file, writing output:
Error: invalid script: no entries specified
Error - aborting creation process
That's all it says.
That's not an installer, that's a launcher, which is very different. The installer is what an end user downloads to install your app. The launcher is what you write yourself in NSIS (at the moment, though this is changing soon) and the user uses to run your application. What you're doing is not automated at all (like the installer is)... though it will be soon.
I'd suggest creating a new topic for the launcher and discuss what you're trying to do and post your current source code (inside PRE tags).
Sometimes, the impossible can become possible, if you're awesome!