Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Can't create installer: System.Exception: Failed to modify resources, command invoked was #96

Open
@muhammetalay

Description

@muhammetalay

When I try to create an installer for my electron project, it fails with the following message printed to both console and SquirellSetup.log:

2016-01-14 01:15:02> Program: Starting Squirrel Updater: --releasify C:\Users\vagrant\AppData\Local\Temp\si116014-2580-1bw1390\electron-quick-start.1.0.0.nupkg --releaseDir C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer --loadingGif C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\node_modules\grunt-electron-installer\resources\install-spinner.gif
2016-01-14 01:15:02> Program: Bootstrapper EXE found at:C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\node_modules\grunt-electron-installer\vendor\Setup.exe
2016-01-14 01:15:02> Program: Creating release package: C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer\electron-quick-start.1.0.0.nupkg
2016-01-14 01:15:04> ReleasePackage: Creating release package: C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer\electron-quick-start.1.0.0.nupkg => C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer\electron-quick-start-1.0.0-full.nupkg
2016-01-14 01:15:12> ReleasePackage: Extracting dependent packages: []
2016-01-14 01:15:12> ReleasePackage: Removing unnecessary data
2016-01-14 01:15:12> ReleasePackage: No release notes found in C:\Users\vagrant\AppData\Local\SquirrelTemp\tempa\electron-quick-start.nuspec
2016-01-14 01:15:55> Program: Building embedded zip file for Setup.exe
2016-01-14 01:16:19> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to modify resources, command invoked was: 'C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\node_modules\grunt-electron-installer\vendor\rcedit.exe "C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer\Setup.exe" --set-version-string "CompanyName" "GitHub" --set-version-string "LegalCopyright" "Copyright © 2016 GitHub" --set-version-string "FileDescription" "A minimal Electron application" --set-version-string "ProductName" "A minimal Electron application" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:

at Squirrel.Update.Program.d__a2.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Squirrel.Update.Program.<>c__DisplayClass78.b__72()
at Squirrel.Utility.<>c__DisplayClassc.b__b()
at Squirrel.Utility.Retry[T](Func`1 block, Int32 retries)
at Squirrel.Utility.Retry(Action block, Int32 retries)
at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.Exception: Failed to modify resources, command invoked was: 'C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\node_modules\grunt-electron-installer\vendor\rcedit.exe "C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app\installer\Setup.exe" --set-version-string "CompanyName" "GitHub" --set-version-string "LegalCopyright" "Copyright © 2016 GitHub" --set-version-string "FileDescription" "A minimal Electron application" --set-version-string "ProductName" "A minimal Electron application" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:

at Squirrel.Update.Program.d__a2.MoveNext()<---

When I try to run that long rcedit command myself and see the error code, it says this:

PS C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app> C:\Users\vagrant\Desktop\Zeplin-win32-x
64\resources\app\node_modules\grunt-electron-installer\vendor\rcedit.exe "C:\Users\vagrant\Desktop
Zeplin-win32-x64\resources\app\installer\Setup.exe" --set-version-string "CompanyName" "GitHub" --s
et-version-string "LegalCopyright" "Copyright © 2016 GitHub" --set-version-string "FileDescription"
"A minimal Electron application" --set-version-string "ProductName" "A minimal Electron applicatio
n" --set-file-version 1.0.0 --set-product-version 1.0.0
PS C:\Users\vagrant\Desktop\Zeplin-win32-x64\resources\app> echo $lastexitcode
-1073741515

It seems there is something wrong with rcedit but I don't know what. I also attached some screenshots of the computer that I'm trying this
virtualbox_vagrant-getting-started_default_1452717386664_83772_14_01_2016_12_26_46
virtualbox_vagrant-getting-started_default_1452717386664_83772_14_01_2016_12_27_42

Can anyone help me on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions