Squirrel.Windows: "Failed to modify resources" error

I’m having problems running the releasify command in a powershell script, triggered by Octopus Deploy release management tool. I get the following error:

System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to modify resources, command invoked was: '.\rcedit.exe "C:\inetpub\Debug-www-xxx-download.xxx.dk\DMSUninstall\Setup.exe" --set-version-string "CompanyName" "Jasper Nygaard" --set-version-string "LegalCopyright" "Copyright ⌐ 2015 Jasper Nygaard" --set-version-string "FileDescription" "Vaerktoej til at afinstallere xxx" --set-version-string "ProductName" "Vaerktoej til at afinstallere xxx" --set-file-version 2015.45.0.130 --set-product-version 2015.45.0.130'
Error    08:22:13
Output was:
Error    08:22:13
   at Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__17.MoveNext()
Error    08:22:13
   --- End of inner exception stack trace ---
Error    08:22:13
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
Error    08:22:13
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
Error    08:22:13
   at Squirrel.Update.Program.<>c__DisplayClass9_0.<Releasify>b__10()
Error    08:22:13
   at Squirrel.Utility.<>c__DisplayClass8_0.<Retry>b__0()
Error    08:22:13
   at Squirrel.Utility.Retry[T](Func`1 block, Int32 retries)
Error    08:22:13
   at Squirrel.Utility.Retry(Action block, Int32 retries)
Error    08:22:13
   at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
Error    08:22:13
   at Squirrel.Update.Program.executeCommandLine(String[] args)
Error    08:22:13
   at Squirrel.Update.Program.main(String[] args)
Error    08:22:13
   at Squirrel.Update.Program.Main(String[] args)
Error    08:22:13
---> (Inner Exception #0) System.Exception: Failed to modify resources, command invoked was: '.\rcedit.exe "C:\inetpub\Debug-www-dms-download.xxx.dk\DMSUninstall\Setup.exe" --set-version-string "CompanyName" "Jasper Nygaard" --set-version-string "LegalCopyright" "Copyright ⌐ 2015 Jasper Nygaard" --set-version-string "FileDescription" "Vaerktoej til at afinstallere xxx" --set-version-string "ProductName" "Vaerktoej til at afinstallere xxx" --set-file-version 2015.45.0.130 --set-product-version 2015.45.0.130'
Error    08:22:13
Output was:
Error    08:22:13
   at Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__17.MoveNext()<---

If I run the obove mentioned rcedit command, it works (I think - no error). I see that this issue have been raised before in https://github.com/Squirrel/Squirrel.Windows/issues/204. Running Squirrel.Windows 1.2.1. The command looks like this;

& $Squirrel --releasify $Nupkg --releaseDir $ReleaseDir -Verbose -n "/a /f $here\Certificates\Prod\CodeSign\xxx.pfx /p $CodeSignPassword"

Any hints?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 25 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I solved this by replacing the rcedit.exe with a fresh one from https://github.com/atom/node-rcedit/raw/master/bin/rcedit.exe