Invalid Installation Location if directory doesn't exist...

%3CLINGO-SUB%20id%3D%22lingo-sub-255035%22%20slang%3D%22en-US%22%3EInvalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-255035%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20per%20the%20attached%20screenshot%20when%20specifying%20the%20installation%20location%20in%20the%20MSIX%20Packaging%20Tool%20you%20get%20an%20message%20stating%20that%20the%20%22Directory%20provided%20is%20not%20valid%22%20if%20the%20directory%20doesn't%20exist%20on%20the%20device%20that%20the%20packaging%20tool%20is%20running%20on.%26nbsp%3B%20This%20is%20even%20the%20case%20when%20I%20select%20to%20capture%20on%20a%20local%20VM%2C%20i.e.%20if%20I%20pre-create%20the%20directory%20on%20the%20target%20VM%20I%20still%20get%20the%20error%20but%20if%20I%20create%20the%20directory%20on%20the%20host%20device%20where%20the%20Packaging%20Tools%20is%20running%20from%20the%20error%20goes%20away.%26nbsp%3B%20I%20cannot%20proceed%20whilst%20the%20invalid%20directory%20message%20is%20displayed.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F50141iB2D644D9120560B2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22msix_packaging_tool_invalid_installation_location.PNG%22%20title%3D%22msix_packaging_tool_invalid_installation_location.PNG%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EInvalid%20directory%20message%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDoes%20the%20installation%20really%20need%20to%20pre-exist%2C%20e.g.%20for%20specific%20monitoring%3F%26nbsp%3B%20In%20the%20above%20scenario%20where%20I%20was%20using%20a%20local%20VM%20I%20have%20successfully%20captured%20an%20application%20without%20pre-creating%20the%20specified%20install%20location%20on%20the%20VM%20(albeit%20I%20had%20to%20create%20it%20on%20the%20MSIX%20packaging%20Tool%20device.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20location%20does%20need%20to%20exist%20then%20a%20%22Create%20installation%20location%20directory%20if%20it%20doesn't%20exist%22%20checkbox%20would%20be%20useful%20and%20would%20obviously%20have%20to%20be%20actioned%20in%20the%20appropriate%20environment%2C%20otherwise%20is%20this%20error%20message%20not%20redundant%20as%20the%20installer%20will%20ultimately%20create%20the%20directory%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-260681%22%20slang%3D%22en-US%22%3ERe%3A%20Invalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-260681%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Andrew%2C%20we%20appreciate%20the%20feedback.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-260615%22%20slang%3D%22en-US%22%3ERe%3A%20Invalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-260615%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3E%40John%20Vintzel%3C%2FA%3E%2C%20feedback%20added%26nbsp%3Bon%20the%20Feedback%20Hub%20with%20the%20same%20Subject%20as%20well%20as%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149589%22%20target%3D%22_blank%22%3E%40Tim%20Mangan%3C%2FA%3E's%20and%20my%20follow%20up%20comments%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-260273%22%20slang%3D%22en-US%22%3ERe%3A%20Invalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-260273%22%20slang%3D%22en-US%22%3EThis%20is%20great%20feedback.%20Would%20you%20be%20able%20to%20file%20feedback%20in%20the%20tool%20and%20we%20can%20track%20it%20as%20an%20item%20to%20address%3F%3CBR%20%2F%3E%3CBR%20%2F%3E(Click%20the%20settings%20icon%20%5Bgear%5D%2C%20then%20Feedback%20%26gt%3B%20Send%20Feedback)%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3CBR%20%2F%3E%3CBR%20%2F%3EJohn.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-259887%22%20slang%3D%22en-US%22%3ERe%3A%20Invalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-259887%22%20slang%3D%22en-US%22%3EI%20agree%2C%20if%20the%20folder%20needs%20to%20be%20present%20before%20the%20vendor%20installer%20starts%20when%20specifying%20an%20Install%20Location%20then%20the%20packaging%20tool%20should%20create%20it.%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20said%20I%20can%20recall%20at%20least%20one%20app%20that%20I%20have%20packaged%20in%20the%20past%20where%20the%20installer%20has%20complained%20about%20the%20target%20location%20already%20existing%20and%20refusing%20to%20install%20even%20though%20the%20folder%20was%20empty.%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20the%20%E2%80%9CCreate%20folder%E2%80%9D%20check%20box%20should%20be%20a%20preselected%20option%20on%20the%20prepare%20packaging%20device%20screen%20so%20you%20can%20deselect%20it%20by%20exception.%3CBR%20%2F%3E%3CBR%20%2F%3ERegarding%20where%20or%20not%20to%20specify%20the%20install%20location%20I%20expect%20that%20it%20will%20largely%20be%20down%20to%20whether%20the%20app%20in%20question%20works%20with%2Fwithout%20the%20location%20being%20specified%20much%20the%20same%20way%20some%20apps%20did%2Fdidn%E2%80%99t%20like%20the%20PVAD.%3CBR%20%2F%3E%3CBR%20%2F%3EI%E2%80%99m%20also%20curious%20as%20to%20whether%20there%20will%20be%20a%20noticeable%20difference%20in%20performance%20for%20large%20apps%20or%20apps%20with%201000%E2%80%99s%20of%20files%20when%20the%20install%20location%20is%2Fisn%E2%80%99t%20specified.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-259833%22%20slang%3D%22en-US%22%3ERe%3A%20Invalid%20Installation%20Location%20if%20directory%20doesn't%20exist...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-259833%22%20slang%3D%22en-US%22%3E%3CP%3EI%20feel%20your%20pain.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20that%20if%20the%20directory%20needs%20to%20be%20present%20for%20the%20tool%20to%20do%20it's%20monitoring%2C%20the%20tool%20should%20just%20create%20it%20for%20you%20automagically.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20as%20an%20aside...%20I%20haven't%20determined%20if%20installing%20into%20the%20folder%20you%20name%20should%20be%20the%20best%20or%20worst%20practice.%26nbsp%3B%20Both%20work%20in%20most%20cases%2C%20some%20in%20one%20and%20others%20in%20the%20other.%20%26nbsp%3BBut%20until%20more%20of%20the%20missing%20VFS%20pathing%20becomes%20automatic%20in%20the%20runtime%2C%20I'm%20not%20sure%20which%20will%20make%20sense%20in%20the%20long%20term.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

As per the attached screenshot when specifying the installation location in the MSIX Packaging Tool you get an message stating that the "Directory provided is not valid" if the directory doesn't exist on the device that the packaging tool is running on.  This is even the case when I select to capture on a local VM, i.e. if I pre-create the directory on the target VM I still get the error but if I create the directory on the host device where the Packaging Tools is running from the error goes away.  I cannot proceed whilst the invalid directory message is displayed.Invalid directory messageInvalid directory message

Does the installation really need to pre-exist, e.g. for specific monitoring?  In the above scenario where I was using a local VM I have successfully captured an application without pre-creating the specified install location on the VM (albeit I had to create it on the MSIX packaging Tool device.)

 

If the location does need to exist then a "Create installation location directory if it doesn't exist" checkbox would be useful and would obviously have to be actioned in the appropriate environment, otherwise is this error message not redundant as the installer will ultimately create the directory?

5 Replies
Highlighted

I feel your pain.  

 

I think that if the directory needs to be present for the tool to do it's monitoring, the tool should just create it for you automagically.

 

And as an aside... I haven't determined if installing into the folder you name should be the best or worst practice.  Both work in most cases, some in one and others in the other.  But until more of the missing VFS pathing becomes automatic in the runtime, I'm not sure which will make sense in the long term.

Highlighted
I agree, if the folder needs to be present before the vendor installer starts when specifying an Install Location then the packaging tool should create it.

That said I can recall at least one app that I have packaged in the past where the installer has complained about the target location already existing and refusing to install even though the folder was empty.

Maybe the “Create folder” check box should be a preselected option on the prepare packaging device screen so you can deselect it by exception.

Regarding where or not to specify the install location I expect that it will largely be down to whether the app in question works with/without the location being specified much the same way some apps did/didn’t like the PVAD.

I’m also curious as to whether there will be a noticeable difference in performance for large apps or apps with 1000’s of files when the install location is/isn’t specified.
Highlighted
This is great feedback. Would you be able to file feedback in the tool and we can track it as an item to address?

(Click the settings icon [gear], then Feedback > Send Feedback)

Thanks!

John.
Highlighted

Hi @John Vintzel, feedback added on the Feedback Hub with the same Subject as well as @Tim Mangan's and my follow up comments

Highlighted

Thanks Andrew, we appreciate the feedback.

 

John.