Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Windows .exe stuck on compiling app.nsi #39

Open
purecreative opened this issue Mar 11, 2014 · 12 comments
Open

Compiling Windows .exe stuck on compiling app.nsi #39

purecreative opened this issue Mar 11, 2014 · 12 comments
Assignees

Comments

@purecreative
Copy link

app.exe.appfs is beig created successfully and this file will load up the application but the Windows .exe file is not being created.

The process log is below. The process is stuck on compiling the app.nsi:

added htdocs/index.html
added Name of Application.desk
added app.nsi
added app.js
added app.desk
package created: ..\app.exe.appfs
compiling: C:\Users\Administrator\AppData\Local\Deskshell-apps\Name of Application\app.nsi

The only error I get in the log file is:

Error:SyntaxError: Missing catch or finally after try

@sihorton
Copy link
Owner

Normally this is caused by the icon file not being found. The app.nsi script points to an .ico file, if for any reason that path is incorrect or icon file is missing then it just dies silently. This has been a problem for a while and I really need to fix better error handling and logging.

Until there is better support try http://nsis.sourceforge.net/ and you can download a portable edition of NSIS or there is even an IDE "HM NIS Edit" you can download. Then open the .nsi file and compile it and see what the error is.

@sihorton
Copy link
Owner

A quicker option is to actually just run Deskshell\sys-apps\win-exe-compiler\NSIS\NSIS.exe then click on "Compile NSI scripts" and you get a little editor.

@purecreative
Copy link
Author

Thanks for your replies so far. The nsi script is looking for a folder called "deploy" parallel to htdocs. It couldn't find this so it failed.

I have manually created the deploy folder to allow the process to complete.

This creates a .exe file called sshlaunch. When I try to use this a blank window briefly appears and then closes.

The deskshell.log file says:

UncaughtException:start must be <= endstart must be <= end

@sihorton
Copy link
Owner

Try downloading http://deskshell.org/downloads/portable-hello-world.zip. This has a particular layout and structure and includes an app.nsi file and hopefully should compile and create an .exe for you. Then compare that to your application (http://winmerge.org/ is excellent for this kind of job). I am guessing that something is missing or is named wrongly and that therefore deskshell is not starting up properly -- sounds to me like the file it is reading is blank or something like that.

@sihorton
Copy link
Owner

Ah another thing I have thought of is that the first time you run the wizard it creates a new app.nsi for you automatically with the correct settings. However after that it just leaves the previous app.nsi as it was. Try renaming that file and re-run the wizard, maybe a new file will solve the problem.

@sihorton sihorton self-assigned this Mar 11, 2014
@purecreative
Copy link
Author

Using the portable hello world I tried to create a new .exe using MakeNSISW.

There are two warnings:

2 warnings:
Generating version information for language "0000-English" without standard key "LegalCopyright"
install function "InstallRuntime" not referenced - zeroing code (48-79) out

The app.exe is created but it results in the same error log:

UncaughtException:start must be <= endstart must be <= end

I have not changed any of the content in the Portable Hello World example just simply ran the nsi script.

I've tried renaming the app.nsi file and creating a brand new application with a separate run of the wizard. Still the same error code.

@sihorton
Copy link
Owner

Ok, thanks for the good error description. Sounds to me like I need to add better debug errors. Not sure if german language is missing but I dont think that should cause problems. This is just a simple launcher but we have had problems before. I cannot look now but will investigate and try to improve the compiler for you.

@purecreative
Copy link
Author

Thanks very much. This looks to be a great project and I really appreciate your quick responses.

@ssedwards1
Copy link

Hi sihorton,

I seem to be having the same issues as above. I've got to the point where I get the "UncaughtException:start must be <= endstart must be <= end" error on lunching the exe.

Is this still an issue 10 months on?

@caiowilson
Copy link

Yes I can confirm the issue is still standing.

@caiowilson
Copy link

there are some references to "D:\dev\appjs-deskshell\bin\win\deskshell.js" which is your wroking directory I would assume. But other then that I still can't find what the hell is wrong with it.

Quick update: seems like gyp doesn't work with 3.x python, trying with 2.7.3 let's see what goes.

@tcave
Copy link

tcave commented Oct 9, 2015

I got a little further with this issue. I am using NSIS to compile the nsi script and get the error:
"UncaughtException:start must be <= endstart must be <= end" as reported above.

While debugging I found that you need to call the .desk file app.desk, and not portable-hello-world.desk or whatever you application is. With this I no longer see the "UncaughtException:start must be <= endstart must be <= end" error and the installer starts to install. However when it gets to downloading deskshell I get an error saying:

"Error when downloading http://deskshell.org/?downloading=WindowsUpdateInstall. please try again later"

Regards,
TC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants