为什么安装我的Visual Studio时,如果没有我的帮助,我的程序就无法工作? [英] Why my program doesnt work without the help me visual studio when I install it?

查看:87
本文介绍了为什么安装我的Visual Studio时,如果没有我的帮助,我的程序就无法工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很困惑!如果我的电脑中没有Visual Studio,我的程序将无法正常工作.为了测试它,我已经卸载了Visual Studio.但是我的程序无法运行,尽管那里有Flash播放器(我已经以第一种形式使用Flash动画了).为了更加确定,我已经安装了Flash.但是它不起作用!这意味着Flash动画文件(.swf)没问题!它需要Visual Studio的支持才能开始.这是否意味着某些文件未随安装文件一起附加,因此需要Visual Studio才能运行?让我告诉您如何创建程序的安装文件.

项目> WindowsApplication1属性>编译>高级编译

option>目标CPU:AnyCPU目标框架(全部

配置):. NET Framework 3.5>确定

文件>添加>新项目>其他项目类型>设置和

部署>设置项目>确定

设置>属性>前提条件>选择创建安装程序以

安装必备组件Windows Installer 3.1和.NET

框架3.5和从与我的
相同的位置下载先决条件
申请>确定>申请>确定

设置>查看>文件系统>选择文件的应用程序文件夹

目标计算机上的系统>>添加>项目输出>主要

输出>配置>活动>确定>消息将显示

" Microsoft Visual Studio> "以下文件可能具有

无法自动确定的依赖项.请确认

所有依赖项都已添加到项目中.

d:\ windows \ speech \ vtext.dll d:\ windows \ system32

\ macromed \ flash \ flash10i.ocx d:\ windows \ system32msadodc.ocx

d:\ windows \ system32mshflxgd.ocx>确定

应用程序文件夹将获取文件

应用

文件夹>添加> FileWindowsApplication1> bin> Debug> Animation.sw

f>打开

应用程序文件夹将获得Animation.swf文件

应用

文件夹>添加> FileWindowsApplication1> bin> Debug> CrystalRepor

t1 CrystalReport2 CrystalReport3 CrystalReport4 CrystalReport5

CrystalReport6>打开

应用程序文件夹将获得CrystalReport1 2 3 4 5& 6个文件

应用程序文件夹>从SUIMT(活动)中选择主要输出

>从SUIMT(活动)创建指向主输出的快捷方式

申请文件夹>选择该快捷方式文件&把它带到

用户的桌面文件夹

用户程序菜单>创建文件夹(使用程序名称作为文件夹名称)

申请文件夹>创建另一个快捷方式&将其带到用户的

程序菜单>文件夹(程序名称作为文件夹名称)

构建>构建解决方案

构建>构建设置

这是错误的方式吗?如果不是,那为什么我的程序需要Visual Studio才能运行?请帮助我.

I am really confused! My program doesnt work if I dont have visual studio here in my pc. To test it I have uninstalled visual studio. But my program doesnt work though flash player is present there(I have used flash animation in first form). To be more sure about it I have installed Flash. But its not working! That means flash animation file(.swf) is not making problem! It needs support from visual studio to start. Doesnt it mean that some files are not attached with setup file as a result it needs visual studio to run? Let me tell you how do I create setup file of my program.

Project>WindowsApplication1 properties>Compile>Advance compile

option>Target CPU : AnyCPU Target framework(all

configurations): .NET Framework 3.5>OK

File>Add>New Project>Other Project Types>Setup and

Deployment>Setup Project>OK

Setup>Properties>Prerequisites>Select Create setup program to

install prerequisite components & Windows Installer 3.1 & .NET

Framework 3.5 & Download prerequisites from the same location as my

application>OK>Apply>OK

Setup>View>File system> Select Application folder of File

System on Target Machine>Add>Project output>Primary

output>Configuration>Active>OK>Message will be shown

"Microsoft Visual Studio> "The following files may have

dependencies that cannot be determined automatically. Please confirm

that all dependencies have been added to the project.

d:\windows\speech\vtext.dll d:\windows\system32

\macromed\flash\flash10i.ocx d:\windows\system32msadodc.ocx

d:\windows\system32mshflxgd.ocx>OK

Application Folder will get files

Application

Folder>Add>FileWindowsApplication1>bin>Debug>Animation.sw

f>Open

Application Folder will get Animation.swf file

Application

Folder>Add>FileWindowsApplication1>bin>Debug>CrystalRepor

t1 CrystalReport2 CrystalReport3 CrystalReport4 CrystalReport5

CrystalReport6>Open

Application Folder will get CrystalReport1 2 3 4 5 & 6 files

Application Folder>Select Primary output from SUIMT(Active)

>Create shortcut to Primary output from SUIMT (Active)

Application Folder> Select that shortcut file & bring it to

User`s desktop Folder

User`s Programs Menu>Create Folder(Use program`s name as folder`s name)

Application Folder> Create another shortcut & bring it to User`s

Programs Menu>Folder(program`s name as folder`s name)

Build>Build Solution

Build>Build Setup

Is it wrong way? If not then why does my program need visual studio to run? Please help me.

推荐答案

好像您需要在计算机上安装.NET Framework 3.5才能运行程序.当您安装Visual Studio时,它会自动安装,并且在您卸载Visual Studio时,我似乎也要卸载.NET Framework 3.5.

因此,在一台新机器上,安装.NET Framework 3.5,然后尝试运行该程序并查看其运行方式.您可以在此处)下载. [ ^ ]
Looks like you need to have .NET framework 3.5 installed on your machine to run your program. When you install Visual Studio, it gets installed automatically and it looks to me that you are uninstalling .NET Framework 3.5 as well when you uninstall Visual Studio.

So, on a fresh machine, install .NET Framework 3.5 and then try to run the program and see how it goes. You can download it here.[^]


这篇关于为什么安装我的Visual Studio时,如果没有我的帮助,我的程序就无法工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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