Link to home
Start Free TrialLog in
Avatar of SITPL
SITPL

asked on

Create App Package using Desktop App Convertor

Hi Expert

I have converted my Exe using Desktop App Converter tool using following commands :

PS C:\Windows\system32> DesktopAppConverter.exe -Installer C:\Installer\Technician.exe -InstallerArguments "/S" -Destination C:\Newfolder -PackageName "Technician" -Publisher "CN=30910EF5-407B-4B34-B55F-DD7136DDCA98" -Version 5.5.0.0 -Verbose

Output :
PackageFilesPath           C:\Newfolder\Technician\PackageFiles

No when I Try to create App Package using MakeAppx commands :

PS C:\Windows\system32> MakeAppx pack -d "C:\Newfolder\Technician\PackageFiles" -p "C:\Technician.appx"

MakeAppx : The term 'MakeAppx' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

+ FullyQualifiedErrorId : CommandNotFoundException

Not able to create App Package using  MakeAppx commands.
I am using Windows 10 Enterprise 64 bit Os Version 10.0.14393 and SDK (C:\Program Files (x86)\Windows Kits\10\bin\x64) 10.0.16299.0

 Thanks in Advance
SOLUTION
Avatar of Hello There
Hello There

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SITPL
SITPL

ASKER

Hi LVL 3

Thanks for Reply
I try on CMD like given on this page :
https://social.msdn.microsoft.com/Forums/expression/en-US/ebb7931b-bdd9-4a51-90d3-62cd20f312ac/makeappx-not-recognized?forum=wpdevelop 

Now when I want to create Package using makeappx.exe it give Access is denied error.

C:\Program Files (x86)\Windows Kits\10\bin\x64>makeappx.exe pack -d "C:\Newfolder\Technician\PackageFiles" -p "C:\Technician.appx"

Microsoft (R) MakeAppx Tool
Copyright (C) 2013 Microsoft.  All rights reserved.

The path (/p) parameter is: "C:\Technician.appx"
The content directory (/d) parameter is: "C:\Newfolder\Technician\PackageFiles"
Enumerating files from directory "C:\Newfolder\Technician\PackageFiles"
Packing 57 file(s) in "C:\Newfolder\Technician\PackageFiles" (content directory) to "C:\Technician.appx" (output file name).

MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80070005 - Access is denied.

How I can resolved this  Access  denied problem ?

Thanks in Advance
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SITPL

ASKER

Hi LVL 4
Thanks for Reply

Run CMD as Run As Administrator and then run the Makeappx command successfully create the package.
Thanks  LVL 4 for your Helpful solution.

Thanks
I am glad I could help.