I can successfully build a windows installer with grunt-electron-installer, however, when I attempt to install the application with Setup.exe I get the following error:
Installation has failed.
There was an error while installing the application. Check the setup log for more information and contact the author.
I completely emptied out:
%LocalAppData%\SquirrelTemp
%LocalAppData%\Temp
and removed any previous installations of the app under %LocalAppData% before I executed setup.exe. There was no instance of the electron application running either.
Upon examining %LocalAppData%, I noticed that a folder has been created for the application and all of the contents have been copied over into this folder.
However, the SquirrelSetup.log content reports the following
2015-12-17 10:28:54> Program: Starting Squirrel Updater: --install .
2015-12-17 10:28:54> Program: Starting install, writing to C:\Users\myUsername\AppData\Local\SquirrelTemp
2015-12-17 10:28:54> Program: About to install to: C:\Users\myUsername\AppData\Local\accountName
2015-12-17 10:28:54> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\myUsername\AppData\Local\accountName\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__3f.MoveNext()
2015-12-17 10:28:54> CheckForUpdateImpl: Reading RELEASES file from C:\Users\myUsername\AppData\Local\SquirrelTemp
2015-12-17 10:28:54> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2015-12-17 10:28:54> ApplyReleasesImpl: Writing files to app directory: C:\Users\myUsername\AppData\Local\accountName\app-1.0.0
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\content_resources_200_percent.pak to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\content_resources_200_percent.pak
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\content_shell.pak to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\content_shell.pak
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\d3dcompiler_47.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\d3dcompiler_47.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\accountName.exe to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\accountName.exe
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\icudtl.dat to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\icudtl.dat
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\libEGL.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\libEGL.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\libGLESv2.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\libGLESv2.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\LICENSE to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\LICENSE
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\msvcp120.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\msvcp120.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\natives_blob.bin to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\natives_blob.bin
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\msvcr120.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\msvcr120.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\node.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\node.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\lib\net45\pdf.dll to C:\Users\myUsername\AppData\Local\accountName\app-1.0.0\pdf.dll
2015-12-17 10:28:56> ApplyReleasesImpl: Moving file C:\Users\nna
I can successfully build a windows installer with grunt-electron-installer, however, when I attempt to install the application with Setup.exe I get the following error:
I completely emptied out:
and removed any previous installations of the app under %LocalAppData% before I executed setup.exe. There was no instance of the electron application running either.
Upon examining %LocalAppData%, I noticed that a folder has been created for the application and all of the contents have been copied over into this folder.
However, the SquirrelSetup.log content reports the following
Any ideas?