none
UWP app creation doubts about adding some parameters using Windows 10 Powershell command prompt

    Question

  • Hi,

        I am using windows 10 powershell (admin prvg) command prompt to create UWP app. Everything fine.

    Now, I would like to add some parameters using this same via powershell command prompt.

    =====================

    1. Add Internet (Client) and Private Networks (Client & Server) capabilities in the Package.appxmanifest 


    2. Add Background Tasks declaration in the Declarations tab of the Package.appxmanifest with following properties 

     General, System event, Timer, ExecutableOrStartPageIsRequired and "Entry point" name: ExitTask.ExitNode

    =====================

    Here is i don't know how to write those parameters in command prompt along with other parameters.

    Regards,

    Satheesh


    • Edited by satheesh_in Wednesday, March 6, 2019 6:00 PM
    Wednesday, March 6, 2019 3:15 PM

All replies

  • Hi,

    I have some questions about this. Is there any tutorial that you are following to create UWP apps via PowerShell? Or you could tell me more information about how you create the UWP app via PowerShell?

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 7, 2019 3:25 AM
    Moderator
  • I will reply
    Thursday, March 7, 2019 6:09 AM
  • I have already created UWP apps and running in Microsoft Store.

    1. Encryption Software

    2. sathish_view

    Especially may be your help before about some parameters. I used powershell command prompt manually. behind powershell makeappx.exe working style, as a developer i don't bother. 

    If you knows what i asked a help from here, i am thanking for that.
    • Edited by satheesh_in Thursday, March 7, 2019 8:55 AM
    Thursday, March 7, 2019 8:47 AM
  • Hi,

    I'm asking because that currently there is no official documents shows about how to directly create UWP apps using powershell instead of using Visual Studio. So I want to know where you know how to do that. Also I haven't get response from the team about this. But I suspect that there is no way to do that.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 11, 2019 7:24 AM
    Moderator
  • I forgot that it is no official documents available now. so i cannot say it. may be the previous ways a little bit difficult for all users except the vs2017 newest version uwp app creation, i think.
    Tuesday, March 12, 2019 5:59 PM
  • Hi,

    From the previous reply, it looks like your are convert the desktop app to UWP app as you are using DAC and windows image, is it? 

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 15, 2019 2:57 AM
    Moderator
  • Yes thats right. I was in another issue. Before it created successfully. 

    After some windows updates done. (Before the windows version was 16299 & used with the same base image). After latest updates windows version changed to 17134.699 (or 619). i used the new base image 17134 (also i used 16299 base image too) and done the appropriate command in the powershell. after some lines, it given a message that this base image version isn't compatible, then stopped. what can i do next.

    regards,

    satheesh

    Tuesday, March 26, 2019 5:43 AM
  • @satheesh,

    17134 should be compatible with 17134 base image. It's not clear why the same OS version report this compatible problem. What about update to both 17763 version which is actually the lastes version?

    Best regards,

    Barry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, March 26, 2019 8:24 AM
    Moderator
  • https://www.microsoft.com/en-us/software-download/dac

    Sure, i will download with 17763  also. But before the document about this saying if 16299.'something' then download same or if 'something' is greater than some value, download the upper version, in  that idea i downloaded. Anyway i will try with all versions. (now the OS version changed from 16299 to 17134 ). 

    Thanks

    Tuesday, March 26, 2019 3:06 PM
  • ======================================

    Already created same image & the result shows like this, its failed again.

    ======================================

    [2019-03-29T10:34:42] Log file can be found in C:\DesktopAppConverter\d3fe0122-c2e3-45a5-9700-e573bf2fad3d\logs\DesktopAppConverterSetup.log
    [2019-03-29T10:34:42] Desktop App Converter 2.1.4.release_2018-08-14_00-27_7df878bb5e280d60de11b2d1936c052db590dd40
    [2019-03-29T10:34:43] --------------------------------------------------


    Checking Prerequisites


    [2019-03-29T10:34:43] Checking Windows Version to ensure it meets minimum requirements
    [2019-03-29T10:34:43] Minimum Windows Version requirement is met.
    [2019-03-29T10:34:43] --------------------------------------------------


    Running Setup


    [2019-03-29T10:34:43] Checking that the Base Image file 'C:\BaseImage\Windows_BaseImage_DAC_17134.wim' exists
    [2019-03-29T10:34:43] Ensuring that the Base Image file 'C:\BaseImage\Windows_BaseImage_DAC_17134.wim' is a valid windows image
    [2019-03-29T10:34:46] Creating Desktop App Converter configuration file
    [2019-03-29T10:34:46] Testing for required Windows features enabled
    [2019-03-29T10:34:51] Checking whether Hyper-V optional feature is needed
    [2019-03-29T10:34:51] This version of Windows requires Hyper-V to be enabled.
    [2019-03-29T10:34:51] Testing for required feature 'Microsoft-Hyper-V-All' enabled...
    [2019-03-29T10:34:53] Required feature 'Microsoft-Hyper-V-All' is enabled. Checking if reboot is required
    [2019-03-29T10:35:00] Required feature 'Microsoft-Hyper-V-All' is enabled.
    [2019-03-29T10:35:00] Testing for required feature 'Containers' enabled...
    [2019-03-29T10:35:01] Required feature 'Containers' is enabled. Checking if reboot is required
    [2019-03-29T10:35:03] Required feature 'Containers' is enabled.
    [2019-03-29T10:35:03] Required Windows features are enabled
    [2019-03-29T10:35:03] Setting up expanded base image
    [2019-03-29T10:35:03] Deleting any old expanded base image.
    [2019-03-29T10:35:03] Checking if there is OS-Matching expanded base image.
    [2019-03-29T10:35:03] Preparing to expand base image
    [2019-03-29T10:35:03] Validating Base Image path: C:\BaseImage\Windows_BaseImage_DAC_17134.wim
    [2019-03-29T10:35:03] Checking that the Base Image file 'C:\BaseImage\Windows_BaseImage_DAC_17134.wim' exists
    [2019-03-29T10:35:03] Ensuring that the Base Image file 'C:\BaseImage\Windows_BaseImage_DAC_17134.wim' is a valid windows image
    [2019-03-29T10:35:06] Ensure base image matches host OS
    [2019-03-29T10:35:06] Testing if base image at C:\BaseImage\Windows_BaseImage_DAC_17134.wim is compatible with your OS
    [2019-03-29T10:35:06] The base image version was determined to be 10.0.17134.0
    [2019-03-29T10:35:06] Your Windows version was determined to be 10.0.17134.0
    [2019-03-29T10:35:06] Ignoring revision numbers
    [2019-03-29T10:35:06] Expanded base image at C:\BaseImage\Windows_BaseImage_DAC_17134.wim IS compatible with your OS
    [2019-03-29T10:35:06] Expanding Base Image (this may take a while)
    [2019-03-29T10:38:55] An error occurred converting your application. Here is the full error record: 
    [2019-03-29T10:38:55] 

    PowerShell Error Record:
    The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)
    PowerShell Stack Trace:
    at Expand-BaseImage, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe\converter_util\BaseImageOps.ps1: line 423
    at Setup-ExpandedImages, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe\Setup.ps1: line 360
    at Setup-DesktopAppConverter, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe\Setup.ps1: line 177
    at <ScriptBlock><Process>, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1: line 396
    at <ScriptBlock>, <No file>: line 1

    Inner Exception[0]:
    System.BadImageFormatException: The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)
       at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
    Inner Exception Stack Trace[0]
       at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
    [2019-03-29T10:38:55] The full error record is saved in the logs at C:\DesktopAppConverter\d3fe0122-c2e3-45a5-9700-e573bf2fad3d\logs

    ======================================


    Friday, March 29, 2019 6:30 PM