DesktopAppConverter error : qualified file name must be less than 260

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When working with Desktop Converter, you might get following error:

C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.0.2.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : The
specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and
the directory name must be less than 248 characters.
At line:1 char:1
+ &'C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.0.2.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1

This error has nothing to do with the length f any of your application files. The problem is destination argument of following command:

> DesktopAppConverter.exe -Installer C:\Temp\NodejsApp\NodejsApp -AppExecutable node.exe -Destinat
ion C:\Temp\NodejsApp\NodejsApp\packages -PackageName "MyNodeApp" -Publisher "CN=MyPublisher" -Version 0.0.0.1

This command creates the package from application in path ‘C:\Temp\NodejsApp\NodejsApp ’ and will try to store it to path C:\Temp\NodejsApp\NodejsApp\packages .

Because creating process will read specified path, but in the same time will create packages under the reading path, it will recursively grow until it crashes.

Solution is very easy. You should create a package out of application root:

DesktopAppConverter.exe -Installer C:\Temp\NodejsApp\NodejsApp -AppExecutable node.exe -Destinat
ion C:\Temp\NodejsApp\packages -PackageName "MyNodeApp" -Publisher "CN=MyPublisher" -Version 0.0.0.1

Posted Jul 22 2017, 02:53 PM by Damir Dobric
Filed under: ,
developers.de is a .Net Community Blog powered by daenet GmbH.