Click here to Skip to main content
15,918,404 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 17-Apr-14 19:31pm

1 solution

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

VB
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900