使用Instalshield 2010的文件关联 [英] File Associations Using Instalshield 2010

查看:84
本文介绍了使用Instalshield 2010的文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

目前我正在使用Install shield 2010在我的项目中创建安装程序。用户可以创建一些文件并将其保存在不同的文件夹中。创建文件后,如果用户希望他可以双击它并用数据打开exe。



我能够用图标创建文件并双击它也是开放的exe。但是数据exe没有打开。



安装盾牌后面的步骤。

1.在HKCR下创建一个名为.t4ttul的新密钥和.t4ttup。

2.在默认值中,相应地将数据设置为T4T配置和T4T配置(生产)。

3.创建一个名为T4T配置和T4T配置(生产)的新HKCR键,以匹配在2中创建的内容。

4.在默认值中,将数据设置为描述性标签。例如T4T配置和T4T配置(生产)

5.创建一个名为shell的子项

6.创建一个名为open的子项

7.创建一个名为command的子项

8. 在命令键的默认值中,将值设置为[IntallPath] \ [appname.exe]%1

9.在T4T配置和T4T配置(生产)下创建一个名为DefaultIcon的子项,该子项指向将与资源管理器中的扩展名相关联的图标文件。



请建议我,如何继续前进。因此,双击文件时,它应该用数据打开exe。



提前谢谢。

解决方案

< blockquote>我知道当你点击一个文件时,应用程序会打开,但不会加载数据。这是你的意思吗?



  8   默认 命令键设置   [IntallPath] \ [appname.exe]  %1  





这意味着您的应用程序将接收文件名作为参数。您必须从应用程序中读取此参数并继续自己打开文件。


Hi All,
Currently i am using Install shield 2010 to create Setup in my Project. Where user can create some files and save it in different folders. After creating the files , if user want he can double click it and open the exe with data.

I am able to create the files with icon and on double click it is also opening exe. But with data exe is not opening.

Steps followed in Install shield.
1. Under HKCR create a new key named ".t4ttul" and ".t4ttup".
2. In the default value, set the data to "T4T configuration" and "T4T configuration (Production)" correspondingly.
3. Create a new HKCR key named "T4T configuration" and "T4T configuration (Production)" to match what created in 2.
4. In the default value, set the data to a descriptive label. For example " T4T configuration" and "T4T configuration (Production)"
5. Create a subkey called shell
6. Create a subkey called open
7. Create a subkey called command
8. In the default value of the command key set the value to be "[IntallPath]\[appname.exe]" "%1"
9. Create a subkey under "T4T configuration" and "T4T configuration (Production)" called DefaultIcon, which points to an icon file that will be associated with the extension in explorer.

Kindly suggest me, how to proceed further. So that on double click of the files it should open exe with data.

Thanks in advance.

解决方案

I understand that when you click on a file, the application opens, but does not loads the data. Is that what you meant ?

8. In the default value of the command key set the value to be "[IntallPath]\[appname.exe]" "%1"



This means that your application will receive the file name as a parameter. You have to read this parameter from the application and proceed to opening the file yourself.


这篇关于使用Instalshield 2010的文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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