我在 VS2010 中为我的应用程序创建了一个安装项目。我使用应用程序项目中的主要输出将其添加到安装项目中,但我不知道如何添加快捷方式。
我用的是右键->创建新快捷方式->应用程序文件夹->用于创建快捷方式的主要输出。
这不会产生任何编译错误,但当我在客户端 PC 上使用安装程序时,快捷方式不起作用。
尽管我在VS中为快捷方式设置了图标,但现在该图标只是一个文档。当我单击该快捷方式时,它会打开“准备 Windows 安装程序”对话框,然后我将其取消。我必须转到 Program Files 文件夹才能运行我的应用程序。
I have created a a Setup Project for my application in VS2010. I used the Primary Output from my application-project to add it to the Setup Project, but I can't figure out how to add a shortcut.
I used the right-click -> create new shortcut -> application folder -> Primary Output to create a shortcut.
This didn't generate any compile-errors, but when I use the installer on a Client-PC the shortcut doesn't work.
Even though I set an icon for the shortcut in VS, the icon is just a document now. When I click the shortcut it open the "Preparing Windows Installer"-dialog, which I then cancel. I have to go to the Program Files-folder to run my application.
发布评论
评论(1)
您的安装程序似乎没有安装所有资源。这可以解释为什么快捷方式无效。也许这会帮助您找到问题: http://setupanddeployment.com/general -安装问题/准备安装-popping/
It looks like your installer doesn't install all resources. This would explain why the shortcut in invalid. Perhaps this will help you find the problem: http://setupanddeployment.com/general-installation-problems/preparing-install-popping/