序号345不能位于动态链接库中

时间:2018-06-11 05:51:46

标签: electron electron-builder electron-packager

我正在尝试在Windows系统中安装.exe文件。但无法做到并且“无法将序号345置于动态链接库中”错误。它给出了 System.IO.PathTooLongException 错误,它失败了,有什么想法或解决方法吗?谢谢。 我的命令是:

“electron-packager.myApp --overwrite --asar = true --platform = win32 --arch = x64 --icon = iconnewa1.ico --prune = true --out = release-builds - -version-string.CompanyName = CE --version-string.FileDescription = CE --version-string.ProductName ='myApp'“

我在某些Windows系统中遇到以下错误,无法解决 错误日志文件:

2018-01-17 15:39:56> Program: Starting Squirrel Updater: --install .
2018-01-17 15:39:56> Program: Starting install, writing to C:\Users\user1\AppData\Local\SquirrelTemp
2018-01-17 15:39:56> Program: About to install to: C:\Users\user1\AppData\Local\myApp
2018-01-17 15:39:56> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2018-01-17 15:39:56> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\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__2.MoveNext()
2018-01-17 15:39:56> CheckForUpdateImpl: Reading RELEASES file from C:\Users\user1\AppData\Local\SquirrelTemp
2018-01-17 15:39:56> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-01-17 15:39:56> ApplyReleasesImpl: Writing files to app directory: C:\Users\user1\AppData\Local\myApp\app-5.1.1
2018-01-17 15:40:00> LogHost: Rigging execution stub for MyApp_ExecutionStub.exe to C:\Users\user1\AppData\Local\myApp\MyApp.exe
2018-01-17 15:40:02> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\user1\AppData\Local\myApp\app-5.1.1\MyApp.exe]
2018-01-17 15:40:08> ApplyReleasesImpl: Starting fixPinnedExecutables
2018-01-17 15:40:08> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2018-01-17 15:40:08> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2018-01-17 15:40:08> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2018-01-17 15:40:08> ApplyReleasesImpl: Examining Pin: Outlook 2016.lnk
2018-01-17 15:40:08> ApplyReleasesImpl: Examining Pin: Skype for Business 2016.lnk
2018-01-17 15:40:08> ApplyReleasesImpl: Fixing up tray icons
2018-01-17 15:40:08> ApplyReleasesImpl: cleanDeadVersions: for version 5.1.1
2018-01-17 15:40:08> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-5.1.1
2018-02-19 16:33:12> Program: Starting Squirrel Updater: --install .
2018-02-19 16:33:12> Program: Starting install, writing to C:\Users\user1\AppData\Local\SquirrelTemp
2018-02-19 16:33:12> Program: About to install to: C:\Users\user1\AppData\Local\myApp
2018-02-19 16:33:12> Program: Install path C:\Users\user1\AppData\Local\myApp already exists, burning it to the ground
2018-02-19 16:33:13> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2018-02-19 16:33:13> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\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__2.MoveNext()
2018-02-19 16:33:13> CheckForUpdateImpl: Reading RELEASES file from C:\Users\user1\AppData\Local\SquirrelTemp
2018-02-19 16:33:13> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-02-19 16:33:13> ApplyReleasesImpl: Writing files to app directory: C:\Users\user1\AppData\Local\myApp\app-6.2.5
2018-02-19 16:33:16> LogHost: Rigging execution stub for MyApp_ExecutionStub.exe to C:\Users\user1\AppData\Local\myApp\MyApp.exe
2018-02-19 16:33:17> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\user1\AppData\Local\myApp\app-6.2.5\MyApp.exe]
2018-02-19 16:33:22> ApplyReleasesImpl: Starting fixPinnedExecutables
2018-02-19 16:33:22> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2018-02-19 16:33:22> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2018-02-19 16:33:22> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2018-02-19 16:33:22> ApplyReleasesImpl: Examining Pin: Outlook 2016.lnk
2018-02-19 16:33:22> ApplyReleasesImpl: Examining Pin: Skype for Business 2016.lnk
2018-02-19 16:33:22> ApplyReleasesImpl: Fixing up tray icons
2018-02-19 16:33:22> ApplyReleasesImpl: cleanDeadVersions: for version 6.2.5
2018-02-19 16:33:22> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-6.2.5
2018-03-21 09:50:52> Program: Starting Squirrel Updater: --install . -s --rerunningWithoutUAC
2018-03-21 09:50:52> Program: Starting install, writing to C:\Users\user1\AppData\Local\SquirrelTemp
2018-03-21 09:50:52> UpdateManager: using rootAppDirecotry: C:\Users\user1\AppData\Local\Microsoft\Teams
2018-03-21 09:50:52> Program: About to install to: C:\Users\user1\AppData\Local\Microsoft\Teams
2018-03-21 09:50:52> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\Microsoft\Teams\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2018-03-21 09:50:52> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\Microsoft\Teams\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__43.MoveNext()
2018-03-21 09:50:52> CheckForUpdateImpl: Reading RELEASES file from C:\Users\user1\AppData\Local\SquirrelTemp
2018-03-21 09:50:52> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-03-21 09:50:53> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\Users\user1\AppData\Local\Microsoft\Teams\current'.
2018-03-21 09:50:53> ApplyReleasesImpl: Writing files to app directory: C:\Users\user1\AppData\Local\Microsoft\Teams\current
2018-03-21 09:50:55> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\user1\AppData\Local\Microsoft\Teams\current\Teams.exe]
2018-03-21 09:50:59> ApplyReleasesImpl: Starting fixPinnedExecutables
2018-03-21 09:50:59> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2018-03-21 09:50:59> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2018-03-21 09:50:59> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2018-03-21 09:50:59> ApplyReleasesImpl: Examining Pin: Outlook 2016.lnk
2018-03-21 09:50:59> ApplyReleasesImpl: Examining Pin: Skype for Business 2016.lnk
2018-03-21 09:50:59> ApplyReleasesImpl: Fixing up tray icons
2018-03-21 09:50:59> MeetingAddinInstaller: System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)
   at Squirrel.MeetingAddinInstaller.<InstallMeetingAddinAsync>d__3.MoveNext()
2018-03-21 09:50:59> MeetingAddinInstaller: Version: 1.0.17192.2; addinPackageDirectory: 1.0.17192.2
2018-03-21 09:50:59> MeetingAddinInstaller: Creating local meeting add-in folder TeamsMeetingAddin
2018-03-21 09:50:59> MeetingAddinInstaller: .dead exists: False
2018-03-21 09:50:59> MeetingAddinInstaller: path to .dead: C:\Users\user1\AppData\Local\Microsoft\TeamsMeetingAddin\1.0.17192.2\.dead
2018-03-21 09:50:59> MeetingAddinInstaller: before cleanup unused versions
2018-03-21 09:51:00> MeetingAddinInstaller: Version 1.0.17192.2 of the meeting add-in is now installed
2018-03-21 09:51:00> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.00.22051
2018-03-21 09:51:00> ApplyReleasesImpl: cleanDeadVersions: exclude folder stage
2018-05-02 15:24:05> Program: Starting Squirrel Updater: --install .
2018-05-02 15:24:05> Program: Starting install, writing to C:\Users\user1\AppData\Local\SquirrelTemp
2018-05-02 15:24:05> Program: About to install to: C:\Users\user1\AppData\Local\myApp
2018-05-02 15:24:05> Program: Install path C:\Users\user1\AppData\Local\myApp already exists, burning it to the ground
2018-05-02 15:24:07> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2018-05-02 15:24:07> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\user1\AppData\Local\myApp\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__2.MoveNext()
2018-05-02 15:24:07> CheckForUpdateImpl: Reading RELEASES file from C:\Users\user1\AppData\Local\SquirrelTemp
2018-05-02 15:24:07> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-05-02 15:24:07> ApplyReleasesImpl: Writing files to app directory: C:\Users\user1\AppData\Local\myApp\app-8.2.0
2018-05-02 15:24:11> LogHost: Rigging execution stub for MyApp_ExecutionStub.exe to C:\Users\user1\AppData\Local\myApp\MyApp.exe
2018-05-02 15:24:13> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\user1\AppData\Local\myApp\app-8.2.0\MyApp.exe]
2018-05-02 15:24:18> ApplyReleasesImpl: Starting fixPinnedExecutables
2018-05-02 15:24:18> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2018-05-02 15:24:18> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2018-05-02 15:24:18> ApplyReleasesImpl: Examining Pin: Internet Explorer.lnk
2018-05-02 15:24:18> ApplyReleasesImpl: Examining Pin: Outlook 2016.lnk
2018-05-02 15:24:18> ApplyReleasesImpl: Examining Pin: Skype for Business 2016.lnk
2018-05-02 15:24:18> ApplyReleasesImpl: Fixing up tray icons
2018-05-02 15:24:18> ApplyReleasesImpl: cleanDeadVersions: for version 8.2.0
2018-05-02 15:24:18> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-8.2.0

0 个答案:

没有答案