none
Installing and running UWP through command prompt, with parameters / local files (Unity UWP Hololens development) RRS feed

  • Question

  • Hello,

    We are using a feature of Unity3D (2018.2) that enables sending frames to the Hololens, but the feature only works with a UWP app, not typical exe. The app will not be given as a standalone, it just gets installed/runs as part of our main software.

    Is there a way after building the Appx, to install it and run it through code? 
    I checked WinAppDeployCmd, but it only installs the application (without running it) and it requires that the root certificate is trusted (which as far as I ve seen, can only be done by manually navigating to the properties of the Appx file).

    Finally we want to pass a couple of arguments to our app through CMD, like the location of a file that we want to use for our application.

    So something like :  >> WinAppDeployCmd install -file "path of app" -ip 127.0.0.1  (or in general, on the same machine it's run from)  And afterwards(assuming we register an Alias with the app)
    >> myAppsAlias -s "c:\DL\fileIwantToprocess.png"

    It seems that one or more of those requirements cannot be achieved through UWP.
    I would really appreciate some insight on whether what we are planing is doable or not, and if yes some hints/links to the right direction. 

    Thanks!
    Monday, July 23, 2018 11:57 AM

All replies

  • Hi,

    Since the problem relates to the HoloLens and Unity, I suggest that you might need to ask about this in the MR Forum here:https://forums.hololens.com/. You could get more professional support there.

    Thank you for your patience.

    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.

    Tuesday, July 24, 2018 2:43 AM