electron-userland / electron-windows-store

:package: Turn Electron Apps into Windows AppX Packages
MIT License
677 stars 86 forks source link

Help using electron-windows-store #15

Closed belaviyo closed 8 years ago

belaviyo commented 8 years ago

I am trying to use electron-windows-store to create AppX from my electron project. The code exited with this log file:

...
Running Installer in Isolated Environment

[2016-05-16T19:31:06] No installer valid exit codes specified. Using defaults: 0
[2016-05-16T19:31:06] Replace any occurence of <log_folder> in -InstallerArguments with C:\installer\logs
[2016-05-16T19:31:06] Running installer command in isolated environment:
[2016-05-16T19:31:06] Command Line = "C:\installer\ElectronInstaller.exe" 
[2016-05-16T19:33:11] Moving any logs in C:\DesktopAppConverter\bf927a11-9137-4a7a-8bfe-dff0c69c97a8\shared\logs to C:\Users\Am\Desktop\ss\logs
[2016-05-16T19:33:11] An error occurred. Refer to logs in C:\Users\Am\Desktop\ss\logs
[2016-05-16T19:33:11] Cannot create a file when that file already exists.

[2016-05-16T19:33:11] at Invoke-Sequencer, C:\Users\Am\Desktop\DesktopAppConverter\converter_util\Sequencer.ps1: line 165
at <ScriptBlock>, C:\Users\Am\Desktop\DesktopAppConverter\DesktopAppConverter.ps1: line 367

Any idea what could have gone wrong?

felixrieseberg commented 8 years ago

Thanks for trying it out and reporting! You should have some logs in C:\Users\Am\Desktop\ss\logs - can you post those?

belaviyo commented 8 years ago

Sure, here is the complete log

[2016-05-16T19:48:11] Log files can be found in C:\Users\Am\Desktop\ss\logs
[2016-05-16T19:48:11] Desktop App Converter Preview 0.1.15.release_2016-05-09_12-56_1a4902
[2016-05-16T19:48:11] --------------------------------------------------

Checking Prerequisites

[2016-05-16T19:48:11] Checking Windows Version to ensure it meets minimum requirements
[2016-05-16T19:48:11] Minimum Windows Version requirement is met.
[2016-05-16T19:48:11] Testing for required feature enabled...
[2016-05-16T19:48:13] Required feature is enabled.
[2016-05-16T19:48:14] --------------------------------------------------

Validating Input

[2016-05-16T19:48:14] Checking that the ExpandedBaseImage 'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\' is valid
[2016-05-16T19:48:14] Testing if expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ is compatible with your OS
[2016-05-16T19:48:14] Your Windows version was determined to be 10.0.14342.0
[2016-05-16T19:48:14] Attempting to determine Windows version for expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\
[2016-05-16T19:48:14] Attempting to determine version from version file C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\version.json if it exists
[2016-05-16T19:48:14] Version found in 'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\version.json' is: 10.0.14342.1000
[2016-05-16T19:48:14] C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ is of windows version 10.0.14342.1000
[2016-05-16T19:48:14] The expanded base image version was determined to be 10.0.14342.1000
[2016-05-16T19:48:14] Ignoring revision numbers
[2016-05-16T19:48:14] Expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ IS compatible with your OS
[2016-05-16T19:48:14] Ensuring the provided Installer (C:\Users\Am\Desktop\ss\ElectronInstaller.exe) exists
[2016-05-16T19:48:14] Checking if Destination (C:\Users\Am\Desktop\ss\pre-appx) exists
[2016-05-16T19:48:14] C:\Users\Am\Desktop\ss\pre-appx does not exist. Creating it...
[2016-05-16T19:48:14] Ensuring that this script has write permissions to C:\Users\Am\Desktop\ss\pre-appx...
[2016-05-16T19:48:14] Ensuring that the provided AppExecutable (C:\Users\ContainerAdministrator\AppData\Roaming\e\TDM.exe) is an absolute path
[2016-05-16T19:48:14] --------------------------------------------------

Setting up Conversion Environment

[2016-05-16T19:48:14] Creating folder to share with isolated environment at C:\DesktopAppConverter\0eb5fba1-e94c-4822-afa9-dbad8525dffc\shared
[2016-05-16T19:48:14] Copying contents of C:\Users\Am\Desktop\ss to C:\DesktopAppConverter\0eb5fba1-e94c-4822-afa9-dbad8525dffc\shared to be shared with isolated environment
[2016-05-16T19:48:14] --------------------------------------------------

Initializing AppxManifest.xml

[2016-05-16T19:48:14] Attempting to set appx manifest property 'PackageName' to 'TDM'.
[2016-05-16T19:48:14] Attempting to set appx manifest property 'Publisher' to 'CN=InBasic'.
[2016-05-16T19:48:15] Attempting to set appx manifest property 'Version' to '0.1.0.0'.
[2016-05-16T19:48:15] No value provided for appx manifest property 'PackagePublisherDisplayName'. Attempting to set it to the default value 'CN=InBasic'
[2016-05-16T19:48:15] Attempting to set appx manifest property 'PackagePublisherDisplayName' to 'CN=InBasic'.
[2016-05-16T19:48:15] No value provided for appx manifest property 'PackageDisplayName'. Attempting to set it to the default value 'TDM'
[2016-05-16T19:48:15] Attempting to set appx manifest property 'PackageDisplayName' to 'TDM'.
[2016-05-16T19:48:15] No value provided for appx manifest property 'AppDescription'. Attempting to set it to the default value 'TDM'
[2016-05-16T19:48:15] Attempting to set appx manifest property 'AppDescription' to 'TDM'.
[2016-05-16T19:48:15] No value provided for appx manifest property 'AppDisplayName'. Attempting to set it to the default value 'TDM'
[2016-05-16T19:48:15] Attempting to set appx manifest property 'AppDisplayName' to 'TDM'.
[2016-05-16T19:48:15] No value provided for appx manifest property 'AppId'. Attempting to set it to the default value 'TDM'
[2016-05-16T19:48:15] Attempting to set appx manifest property 'AppId' to 'TDM'.
[2016-05-16T19:48:15] --------------------------------------------------

Running Installer in Isolated Environment

[2016-05-16T19:48:15] No installer valid exit codes specified. Using defaults: 0
[2016-05-16T19:48:15] Replace any occurence of <log_folder> in -InstallerArguments with C:\installer\logs
[2016-05-16T19:48:15] Running installer command in isolated environment:
[2016-05-16T19:48:15] Command Line = "C:\installer\ElectronInstaller.exe" 
[2016-05-16T19:50:20] Moving any logs in C:\DesktopAppConverter\0eb5fba1-e94c-4822-afa9-dbad8525dffc\shared\logs to C:\Users\Am\Desktop\ss\logs
[2016-05-16T19:50:20] An error occurred. Refer to logs in C:\Users\Am\Desktop\ss\logs
[2016-05-16T19:50:20] Cannot create a file when that file already exists.

[2016-05-16T19:50:20] at Invoke-Sequencer, C:\Users\Am\Desktop\DesktopAppConverter\converter_util\Sequencer.ps1: line 165
at <ScriptBlock>, C:\Users\Am\Desktop\DesktopAppConverter\DesktopAppConverter.ps1: line 367
felixrieseberg commented 8 years ago

Hm, the error here is coming from an attempt to move logs 😯 Could you maybe delete your logs in C:\Users\Am\Desktop\ss\logs? If the folder is empty before you get started, you may have found a bug in Centennial...

belaviyo commented 8 years ago

No! I created a new folder in my desktop and here is a new log

[2016-05-16T21:01:23] Log files can be found in C:\Users\Am\Desktop\ss2\logs
[2016-05-16T21:01:23] Desktop App Converter Preview 0.1.15.release_2016-05-09_12-56_1a4902
[2016-05-16T21:01:23] --------------------------------------------------

Checking Prerequisites

[2016-05-16T21:01:23] Checking Windows Version to ensure it meets minimum requirements
[2016-05-16T21:01:23] Minimum Windows Version requirement is met.
[2016-05-16T21:01:23] Testing for required feature enabled...
[2016-05-16T21:01:26] Required feature is enabled.
[2016-05-16T21:01:26] --------------------------------------------------

Validating Input

[2016-05-16T21:01:26] Checking that the ExpandedBaseImage 'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\' is valid
[2016-05-16T21:01:26] Testing if expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ is compatible with your OS
[2016-05-16T21:01:26] Your Windows version was determined to be 10.0.14342.0
[2016-05-16T21:01:26] Attempting to determine Windows version for expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\
[2016-05-16T21:01:26] Attempting to determine version from version file C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\version.json if it exists
[2016-05-16T21:01:26] Version found in 'C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\version.json' is: 10.0.14342.1000
[2016-05-16T21:01:26] C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ is of windows version 10.0.14342.1000
[2016-05-16T21:01:26] The expanded base image version was determined to be 10.0.14342.1000
[2016-05-16T21:01:26] Ignoring revision numbers
[2016-05-16T21:01:26] Expanded base image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-14342\ IS compatible with your OS
[2016-05-16T21:01:26] Ensuring the provided Installer (C:\Users\Am\Desktop\ss2\ElectronInstaller.exe) exists
[2016-05-16T21:01:26] Checking if Destination (C:\Users\Am\Desktop\ss2\pre-appx) exists
[2016-05-16T21:01:26] C:\Users\Am\Desktop\ss2\pre-appx does not exist. Creating it...
[2016-05-16T21:01:26] Ensuring that this script has write permissions to C:\Users\Am\Desktop\ss2\pre-appx...
[2016-05-16T21:01:26] Ensuring that the provided AppExecutable (C:\Users\ContainerAdministrator\AppData\Roaming\e\TDM.exe) is an absolute path
[2016-05-16T21:01:26] --------------------------------------------------

Setting up Conversion Environment

[2016-05-16T21:01:26] Creating folder to share with isolated environment at C:\DesktopAppConverter\2e06334a-da39-4d4b-97f8-cb50e5045d8d\shared
[2016-05-16T21:01:26] Copying contents of C:\Users\Am\Desktop\ss2 to C:\DesktopAppConverter\2e06334a-da39-4d4b-97f8-cb50e5045d8d\shared to be shared with isolated environment
[2016-05-16T21:01:27] --------------------------------------------------

Initializing AppxManifest.xml

[2016-05-16T21:01:27] Attempting to set appx manifest property 'PackageName' to 'TDM'.
[2016-05-16T21:01:27] Attempting to set appx manifest property 'Publisher' to 'CN=InBasic'.
[2016-05-16T21:01:27] Attempting to set appx manifest property 'Version' to '0.1.0.0'.
[2016-05-16T21:01:27] No value provided for appx manifest property 'PackagePublisherDisplayName'. Attempting to set it to the default value 'CN=InBasic'
[2016-05-16T21:01:27] Attempting to set appx manifest property 'PackagePublisherDisplayName' to 'CN=InBasic'.
[2016-05-16T21:01:27] No value provided for appx manifest property 'PackageDisplayName'. Attempting to set it to the default value 'TDM'
[2016-05-16T21:01:27] Attempting to set appx manifest property 'PackageDisplayName' to 'TDM'.
[2016-05-16T21:01:27] No value provided for appx manifest property 'AppDescription'. Attempting to set it to the default value 'TDM'
[2016-05-16T21:01:27] Attempting to set appx manifest property 'AppDescription' to 'TDM'.
[2016-05-16T21:01:27] No value provided for appx manifest property 'AppDisplayName'. Attempting to set it to the default value 'TDM'
[2016-05-16T21:01:27] Attempting to set appx manifest property 'AppDisplayName' to 'TDM'.
[2016-05-16T21:01:27] No value provided for appx manifest property 'AppId'. Attempting to set it to the default value 'TDM'
[2016-05-16T21:01:27] Attempting to set appx manifest property 'AppId' to 'TDM'.
[2016-05-16T21:01:27] --------------------------------------------------

Running Installer in Isolated Environment

[2016-05-16T21:01:27] No installer valid exit codes specified. Using defaults: 0
[2016-05-16T21:01:27] Replace any occurence of <log_folder> in -InstallerArguments with C:\installer\logs
[2016-05-16T21:01:27] Running installer command in isolated environment:
[2016-05-16T21:01:27] Command Line = "C:\installer\ElectronInstaller.exe" 
[2016-05-16T21:03:32] Moving any logs in C:\DesktopAppConverter\2e06334a-da39-4d4b-97f8-cb50e5045d8d\shared\logs to C:\Users\Am\Desktop\ss2\logs
[2016-05-16T21:03:32] An error occurred. Refer to logs in C:\Users\Am\Desktop\ss2\logs
[2016-05-16T21:03:32] Cannot create a file when that file already exists.

[2016-05-16T21:03:32] at Invoke-Sequencer, C:\Users\Am\Desktop\DesktopAppConverter\converter_util\Sequencer.ps1: line 165
at <ScriptBlock>, C:\Users\Am\Desktop\DesktopAppConverter\DesktopAppConverter.ps1: line 367
belaviyo commented 8 years ago

I was wondering if it is possible to run the actual command that is causing this error manually to see what the actual output is?

felixrieseberg commented 8 years ago

Bad news: That is the actual output, that error is coming directly from PowerShell.

Good news: I just updated the whole thing, fixing a few bugs along the way, and adding a completely new way of creating appx packages (which should totally) work for you.

I'd :heart: it if you could give it a try - if you just run the converter with the same parameters, it'll use simple file copies instead of a blank Windows Container to create the appx.

belaviyo commented 8 years ago

@felixrieseberg I just created my first appx with 0.2.0 and it worked just fine. Thanks a lot for the fix