Forum Discussion
Andrew Mason
Sep 19, 2018Copper Contributor
Invalid Installation Location if directory doesn't exist...
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 exis...
Tim Mangan
Sep 20, 2018MVP
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.
Andrew Mason
Sep 20, 2018Copper Contributor
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.
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.
- jvintzelSep 21, 2018
Microsoft
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.- Andrew MasonSep 22, 2018Copper Contributor
Hi jvintzel, feedback added on the Feedback Hub with the same Subject as well as Tim Mangan's and my follow up comments
- jvintzelSep 22, 2018
Microsoft
Thanks Andrew, we appreciate the feedback.
John.