安装项目visual studio 2010文件无法执行

时间:2023-01-15 00:25:44

I have a solution in visual studio with two project, windows service in .NET 4.0 and a GUI in .net 4.5 , i moved the service to .net 4.0 so i could use visual studio 2010 setup project and just move the files in setup.

我在Visual Studio中有一个解决方案,有两个项目,.NET 4.0中的Windows服务和.net 4.5中的GUI,我将服务移动到.net 4.0,所以我可以使用visual studio 2010安装项目,只需在安装程序中移动文件。

The install process succeed but when i run the UI files the program crush , i find out that it's working if i run the UI as Administrator , but the project manifest does not require it and the compile files before the setup work fine and i need it to be able to run by any user, how can i fix that ?

安装过程成功,但是当我运行UI文件程序粉碎时,我发现它是有效的,如果我以管理员身份运行UI,但项目清单不需要它,并且设置之前的编译文件工作正常,我需要它能够由任何用户运行,我该如何解决?

1 个解决方案

#1


0  

So let me see if I understand - You tried to open your project in VS2010 instead of VS2012, to create a setup file, that requires an Admin Permission. If so, you have to put this line in your manifest file:

所以让我看看我是否理解 - 你试图在VS2010而不是VS2012中打开你的项目来创建一个需要管理员权限的安装文件。如果是这样,您必须将此行放在清单文件中:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

I think this thread can easily answer your question.

我认为这个主题很容易回答你的问题。

#1


0  

So let me see if I understand - You tried to open your project in VS2010 instead of VS2012, to create a setup file, that requires an Admin Permission. If so, you have to put this line in your manifest file:

所以让我看看我是否理解 - 你试图在VS2010而不是VS2012中打开你的项目来创建一个需要管理员权限的安装文件。如果是这样,您必须将此行放在清单文件中:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

I think this thread can easily answer your question.

我认为这个主题很容易回答你的问题。