带有InstallShield安装程序的桌面应用程序转换器-W_DISCOVERED_EXE_NOT_FOUND [英] Desktop App Converter with InstallShield installer - W_DISCOVERED_EXE_NOT_FOUND

查看:86
本文介绍了带有InstallShield安装程序的桌面应用程序转换器-W_DISCOVERED_EXE_NOT_FOUND的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的桌面应用程序 Computator.NET 转换为UWP(用WinForms编写)的安装程序正在使用InstallShield,但DAC似乎找不到可执行文件.似乎它认为exe文件是一些临时安装程序文件.该过程的日志如下:

I am trying to convert to UWP my desktop application Computator.NET (written in WinForms) which is using InstallShield for it's installer but DAC does not seem to find executable. It looks like it thinks that exe file is some temporary installer file. Log from the process is below:

警告:DesktopAppConverter:警告"W_PACKAGE_DEPENDENCY_ADDED":A 依赖于框架包'Microsoft.VCLibs.140.00.UWPDesktop' 已添加到AppxManifest.xml.看 ' http://go.microsoft.com/fwlink/?LinkId=821959 '为指导 在本地部署之前安装软件包.否则,如果这 错误,请从相关性"中删除相应的条目 在打包和部署您的应用程序之前,请选择AppxManifest.xml. 警告:DesktopAppConverter:警告"W_DISCOVERED_EXE_NOT_FOUND": 发现的快捷方式指示应用程序可执行文件应为 '\ WINDOWS \ Installer {FA089B43-0451-420A-968B-DCC3C55644C7} _8C37B49DBB16422C8EF917F2AEA02293.exe', 但是找不到该文件.警告:DesktopAppConverter:警告 'W_DISCOVERED_EXE_NOT_FOUND':发现的快捷方式指示该应用 可执行文件应该是 '\ WINDOWS \ Installer {FA089B43-0451-420A-968B-DCC3C55644C7} _A9A8E5CA913F4E1EB7F6ACDB86DAFB8B.exe', 但是找不到该文件.警告:DesktopAppConverter:警告 'W_DISCOVERED_EXE_NOT_FOUND':发现的快捷方式指示该应用 可执行文件应为"\ Windows \ SysWOW64 \ msiexec.exe",但此文件 找不到.警告:DesktopAppConverter:警告 'W_EXE_NOT_DISCOVERED':应用程序可执行文件不能为 从任何快捷方式确定. MakeAppx将失败,直到您修复 AppxManifest.xml中的应用程序可执行文件"属性警告: DesktopAppConverter:警告"W_INSTALL_PATH_NOT_DISCOVERED": Converter无法确定您的应用程序的安装路径.请 使用-AppInstallPath参数将应用程序二进制文件移出VFS. 警告:DesktopAppConverter:警告 'W_CANNOT_MAKEAPPX_WITHOUT_EXE':无法创建没有以下内容的appx包 在AppxManifest.xml中设置"Application Executable"属性. 请在 在手动调用makeappx之前,请先选择AppxManifest.xml.警告摘要: W_PACKAGE_DEPENDENCY_ADDED对框架包的依赖 'Microsoft.VCLibs.140.00.UWPDesktop'已添加到 AppxManifest.xml.请参阅" http://go.microsoft.com/fwlink/?LinkId=821959 ' 有关在本地部署之前安装软件包的指导. 否则,如果这是错误的,请从以下位置删除相应的条目 打包和部署之前,AppxManifest.xml中的依赖项 您的应用程序.

WARNING: DesktopAppConverter : warning 'W_PACKAGE_DEPENDENCY_ADDED': A dependency on framework package 'Microsoft.VCLibs.140.00.UWPDesktop' was added to the AppxManifest.xml. See 'http://go.microsoft.com/fwlink/?LinkId=821959' for guidance on installing the package prior to local deployment. Otherwise, if this is in error, remove the corresponding entry from Dependencies in the AppxManifest.xml before packaging and deploying your application. WARNING: DesktopAppConverter : warning 'W_DISCOVERED_EXE_NOT_FOUND': Discovered shortcut indicates the app executable should be '\WINDOWS\Installer{FA089B43-0451-420A-968B-DCC3C55644C7}_8C37B49DBB16422C8EF917F2AEA02293.exe', but this file cannot be found. WARNING: DesktopAppConverter : warning 'W_DISCOVERED_EXE_NOT_FOUND': Discovered shortcut indicates the app executable should be '\WINDOWS\Installer{FA089B43-0451-420A-968B-DCC3C55644C7}_A9A8E5CA913F4E1EB7F6ACDB86DAFB8B.exe', but this file cannot be found. WARNING: DesktopAppConverter : warning 'W_DISCOVERED_EXE_NOT_FOUND': Discovered shortcut indicates the app executable should be '\Windows\SysWOW64\msiexec.exe', but this file cannot be found. WARNING: DesktopAppConverter : warning 'W_EXE_NOT_DISCOVERED': The application executable could not be determined from any shortcut. MakeAppx will fail until you fix the Application Executable property in the AppxManifest.xml WARNING: DesktopAppConverter : warning 'W_INSTALL_PATH_NOT_DISCOVERED': Converter could not determine your application's install path. Please use the -AppInstallPath parameter to move app binaries outside of VFS. WARNING: DesktopAppConverter : warning 'W_CANNOT_MAKEAPPX_WITHOUT_EXE': Unable to create appx package without setting the 'Application Executable' property in the AppxManifest.xml. Please set the 'Application Executable' property in the AppxManifest.xml before calling makeappx manually. Warning Summary: W_PACKAGE_DEPENDENCY_ADDED A dependency on framework package 'Microsoft.VCLibs.140.00.UWPDesktop' was added to the AppxManifest.xml. See 'http://go.microsoft.com/fwlink/?LinkId=821959' for guidance on installing the package prior to local deployment. Otherwise, if this is in error, remove the corresponding entry from Dependencies in the AppxManifest.xml before packaging and deploying your application.

W_DISCOVERED_EXE_NOT_FOUND发现的快捷方式指示该应用程序 可执行文件应该是 '\ WINDOWS \ Installer {FA089B43-0451-420A-968B-DCC3C55644C7} _8C37B49DBB16422C8EF917F2AEA02293.exe', 但是找不到该文件.

W_DISCOVERED_EXE_NOT_FOUND Discovered shortcut indicates the app executable should be '\WINDOWS\Installer{FA089B43-0451-420A-968B-DCC3C55644C7}_8C37B49DBB16422C8EF917F2AEA02293.exe', but this file cannot be found.

W_DISCOVERED_EXE_NOT_FOUND发现的快捷方式指示该应用程序 可执行文件应该是 '\ WINDOWS \ Installer {FA089B43-0451-420A-968B-DCC3C55644C7} _A9A8E5CA913F4E1EB7F6ACDB86DAFB8B.exe', 但是找不到该文件.

W_DISCOVERED_EXE_NOT_FOUND Discovered shortcut indicates the app executable should be '\WINDOWS\Installer{FA089B43-0451-420A-968B-DCC3C55644C7}_A9A8E5CA913F4E1EB7F6ACDB86DAFB8B.exe', but this file cannot be found.

W_DISCOVERED_EXE_NOT_FOUND发现的快捷方式指示该应用程序 可执行文件应为"\ Windows \ SysWOW64 \ msiexec.exe",但此文件 找不到.

W_DISCOVERED_EXE_NOT_FOUND Discovered shortcut indicates the app executable should be '\Windows\SysWOW64\msiexec.exe', but this file cannot be found.

W_EXE_NOT_DISCOVERED无法执行该应用程序 从任何快捷方式确定. MakeAppx将失败,直到您修复 AppxManifest.xml中的Application Executable属性

W_EXE_NOT_DISCOVERED The application executable could not be determined from any shortcut. MakeAppx will fail until you fix the Application Executable property in the AppxManifest.xml

W_INSTALL_PATH_NOT_DISCOVERED转换器无法确定您的 应用程序的安装路径.请使用-AppInstallPath参数 将应用程序二进制文件移出VFS.

W_INSTALL_PATH_NOT_DISCOVERED Converter could not determine your application's install path. Please use the -AppInstallPath parameter to move app binaries outside of VFS.

W_CANNOT_MAKEAPPX_WITHOUT_EXE在没有以下情况下无法创建appx包 在AppxManifest.xml中设置"Application Executable"属性. 请在 手动调用makeappx之前使用AppxManifest.xml.

W_CANNOT_MAKEAPPX_WITHOUT_EXE Unable to create appx package without setting the 'Application Executable' property in the AppxManifest.xml. Please set the 'Application Executable' property in the AppxManifest.xml before calling makeappx manually.

我正在使用相当简单的命令来运行Dekstop App Converter:

I am runing Dekstop App Converter using fairly simple command:

DesktopAppConverter.exe-安装程序C:\ Computator.NET \ Computator.NET.Installer.v2.1.0.beta.exe -InstallerArguments"/S"-目标C:\ Computator.NET \ Appx -PackageName"Computator.NET "-Publisher" CN = Pawel Troka"-2.1.0.0版-MakeAppx

DesktopAppConverter.exe -Installer C:\Computator.NET\Computator.NET.Installer.v2.1.0.beta.exe -InstallerArguments "/S" -Destination C:\Computator.NET\Appx -PackageName "Computator.NET" -Publisher "CN=Pawel Troka" -Version 2.1.0.0 -MakeAppx

推荐答案

似乎此问题是由于InstallShield安装程序的工作方式引起的. 幸运的是,有一种简单的方法可以解决此问题-我们需要将路径传递给可执行文件,就像-AppExecutable "path_to_your_exe_file_after_installation"

It seems like this issue is because of the way InstallShield installer is working. Fortunetely there is an easy way to resolve this - we need to pass path to executable, just like it -AppExecutable "path_to_your_exe_file_after_installation"

所以我的最终命令如下:

So my final command looked like this:

DesktopAppConverter.exe-安装程序 C:\ Computator.NET \ Computator.NET.Installer.v2.1.0.beta.exe -InstallerArguments"/S"-目标C:\ Computator.NET \ Appx -PackageName"Computator.NET"-发布者"CN = Pawel Troka" -2.1.0.0版-MakeAppx -AppExecutable"C:\ Program Files(x86)\ Computator.NET \ Computator.NET.exe"-Sign

DesktopAppConverter.exe -Installer C:\Computator.NET\Computator.NET.Installer.v2.1.0.beta.exe -InstallerArguments "/S" -Destination C:\Computator.NET\Appx -PackageName "Computator.NET" -Publisher "CN=Pawel Troka" -Version 2.1.0.0 -MakeAppx -AppExecutable "C:\Program Files (x86)\Computator.NET\Computator.NET.exe" -Sign

请注意,我还添加了-MakeAppx-Sign参数,这是因为我希望它可以进行测试-只需在转换后将证书auto-generated.cer安装到Trusted Root Certification Authorities,并且我的appx准备好即可已在我的开发人员计算机上安装并测试.

Note that I also added -MakeAppx and -Sign arguments, this is because I wanted it to be ready for testing - just needed to install certificate auto-generated.cer to Trusted Root Certification Authorities after conversion and my appx was ready to be installed and tested on my developer machine.

本教程在此过程中确实很有帮助,并且这篇文章对我有所帮助.

This tutorial was really helpful during the process and also this article helped me a bit.

这篇关于带有InstallShield安装程序的桌面应用程序转换器-W_DISCOVERED_EXE_NOT_FOUND的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆