应用程序注册外部工具 [英] Application Registration for external tools

查看:95
本文介绍了应用程序注册外部工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的公司开发了一个Word模板应用程序,它调用可执行文件来生成条形码并将其插入到文档中。我编写的宏代码使用shell调用调用可执行文件,并使代码知道
可执行文件的位置,我在注册表中的App Paths中注册了它。这很好用。但是,将计算机更新到Windows 7后,它再也无法找到可执行文件。我打开一个命令窗口并验证可执行文件是否有效,但是除非指定了完整路径,否则找不到
。是否在Windows 7中不再使用注册表中的应用程序路径?

I developed a Word Template application for my company that called an executable to generate a bar code and insert it into the document. The macro code I wrote called the executable using a shell call, and to make the code aware of the location of the executable I registered it in App Paths in the registry. This worked well. However, after updating the computer to Windows 7, it was no longer able to find the executable. I opened a command window and verified that the executable worked but was not found unless the full path was specified. Are App Paths put in the registry no longer used in Windows 7?

推荐答案

您好RichHill,

Hi RichHill,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

针对此问题,在Windows 7中找不到应用程序路径。 您可能需要在Windows 7上重置应用程序的路径。

For the issue, the App path is not found in windows 7.  You could need to reset the path for the application on windows 7.

请参考以下方法:

1.从桌面右键单击计算机图标。

2.从上下文菜单中选择属性

3.单击高级系统设置链接。

4.单击环境变量。在系统变量部分中,找到
PATH环境变量并选择它。单击编辑。如果PATH环境变量不存在,请单击"新建"。

5.在"编辑系统变量"(或"新建系统变量")窗口中,指定PATH环境变量的值。单击确定。单击"确定"关闭所有剩余的窗口。

6.重新打开命令提示符窗口,然后运行您的应用程序。

1.From the desktop, right click the Computer icon.
2.Choose Properties from the context menu.
3.Click the Advanced system settings link.
4.Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
5.In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
6.Reopen Command prompt window, and run your application.

这是我的屏幕截图:

我希望回复对您有所帮助。

I hope that the reply would be helpful for you.

如果您的问题已经解决,请记得通过将有用的帖子标记为可以回答的问题来关闭您的帖子对有同样问题的其他人有帮助。

If your issue has been resolved, please remember to close your thread by marking useful posts as answer that can be helpful for other person with same issue.

最好的问候,

Hart


这篇关于应用程序注册外部工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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