如何运行 MSVC++ 6.0 脱离 USB 驱动器作为便携式应用程序
无需使用任何第三方程序即可执行此操作(即无需 VMware ThinApp、U3 或 MojoPac 等)。 如何将 MSVC++ 6.0 从 C: 上的安装移动到 USB 驱动器? 这样它就可以在没有管理员权限且无需在主机 PC 上安装任何东西的情况下在不同的 PC 上使用吗? 即使它只能用作控制台应用程序也可以,但如果拥有包含 Visual Assist 等的 GUI 就更好了。
Without using any third party program to do this (i.e. without VMware ThinApp, U3 or MojoPac etc.) How to move MSVC++ 6.0 from from its install on C: over to a USB drive? So that it can be used on different PCs with no admin rights and without installing anything on the host PC? Even if it's only usable as a console application would be fine, although to have the GUI including Visual Assist etc. would be even better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将在
c:\program files\
下创建的两个安装文件夹移动到 USB 驱动器(例如e:\progs\msvc\msvc6
和e:\ progs\msvc\vc98
),并附加到文件e:\progs\msvc\vc98\bin\vcvars32.bat
以适合例如使用 vcvars32.bat 的快捷方式然后可以正常工作用于进行任何简单的控制台编程,这就是我迄今为止使用它的全部内容。 我不知道工具文件夹中的 GUI 类型程序的运行情况如何。
Move the two folders that install created under
c:\program files\
to the USB drive (e.g. toe:\progs\msvc\msvc6
ande:\progs\msvc\vc98
), and append to the filee:\progs\msvc\vc98\bin\vcvars32.bat
to suit e.g.Using a shortcut to vcvars32.bat then works fine for doing any simple console programming, which is all I’m using it for so far. I don’t know how well any of the GUI type programs in the tools folder will function.
我不确定人们会如何做到这一点。
这里有一些想法。
安装过程至少创建两组目录,因此您可以将它们都定向到 USB 驱动器。
安装过程会创建一个bat 文件,该文件为命令行执行正确设置环境变量。 当您的记忆棒加载到另一台计算机上时,将其修改为指向正确的驱动器号可能很重要。
还有 vc 6 的注册表项。提取它们并使用某种脚本在需要时将它们加载到目标计算机上可能会很有用。
需要 vc 6 有什么具体原因吗? 另一个编译器可以吗?
I am not sure exactly how one would do that.
Here are a few ideas.
The installation procedure creates at least two sets of directories, so you could direct both of them onto the usb drive.
The installation procedure creates a bat file, that sets up the environment variables correctly for command line execution. Modifying it to point to the correct drive letter when your memory stick loads on the other machine may be important.
There are also registry entries for vc 6. Extracting them, and having a script of some sort to load them onto your target machine when needed, might be useful.
Is there a specific reason why vc 6 is required? Would another compiler do?
我还没有这样做,但它应该“只是”一个问题:
在我看来,这是一项艰巨的工作,但收效甚微。 我认为可能有一个仅命令行版本的 Visual C++ 工具链可能更适合您的要求。 IIRC 的发布是为了帮助人们为开源项目(例如 Mozilla Tinderbox)创建构建机器人,并包含 VC++ 7.0 编译器。
I haven't done this, but it should "just" be a matter of:
That's a heck of a lot of work, for little gain in my opinion. I think there may be a command line only version of the Visual C++ tool chain that may better suit your requirements. IIRC it was released to help people create build bots for open source projects, like the Mozilla Tinderbox, and includes the VC++ 7.0 compiler.