Install4j setting the file association of my exe to a file extension - install4j

Ive written a pdf viewer and used install4J to create an exe launcher. I'd like to prompt to change the file association for .pdf to be my exe.

Add a "File associations" screen to your installer and then a "Create a file association" action to the "Installation" screen. The "File associations" screen will pick up the action and ask the user if the action should be performed.

Related

Install4J: desktop icon is not created during installation

Install4J does not create desktop shortcut, even for sample apps (Hello world). All icon files are included. exe file properties show that shortcut file is found, but shortcut is not created. Did anyone encounter this problem?
I see no such problem here with 7.0.8.
Most likely you have added the "Add a desktop link" action before the "Install files" action has run. In that case the link is not created because the target file is not found.
Desktop shortcut appears on my computer (Win 10) only after desktop refresh. After installation with install4j try right click on desktop and select Refresh in popup menu.

How to rename file in Install4j?

How can I rename file in install4j?
I have a step to choose the file by user, and if user uploads the file with different name then x.txt i need to rename it back with some post action back to x.txt
I see that install4j has option to Move files and directories, but I see only the destination as a folder, not a file name.
I see only one way how to do it by creating "Run script" post action and write code in Java to actually rename the file.
Is any other standard options in Install4j to do it?
If the "Source files or directories" property of the "Move files and directories" action is set to a single file, the "Destination directory" property can be a file name as well and then the action will rename the file.

How do you setup project to use ini file in Developer Studio?

I use a ini file to setup fonts and colors (instead of the registry). I have linked the ini file like this:
Properties->ProgressOpenEdge->Startup parameters->
"-basekey ini -ininame C:\somepath\ini\progress11.ini"
If I make a small run file (and press run) the ini file is correctly loaded:
run start.w
But if I press run on the start file the ini file is not loaded (getting font errors). How to setup eclipse to load the ini file correct?
Edit: Had to have 2 more reputation to show images.
On the "run" button there's a "downarrow". Click on that, and then click on "run configurations" - that'll enable you to set the startup parameters for the run button.

How to add an application shortcut but not display on the start menu

I need to have a shortcut to my application that has command line options pre-configured. This would only be used for troubleshooting so I don't want it "easily" found by a user. My thought was to create a shortcut in the program directory during install. This shortcut would not be on the start menu. During troubleshooting, the user would navigate to the program directory and double click on the shortcut thus invoking the program with the debugging options.
Is there a way using Install4j actions to create an application shortcut that is NOT on the start menu?
You can do that with a "Create start menu entry" action by setting the "Entry name" property to an absolute path name, like:
${installer:sys.installationDir}/Debug Launcher link
You can replace "Debug Launcher link" with a path in your installation directory.

Application Deployment

I deployed an application using this method and it worked very good. However, there are 2 missing things that I been trying to find but can't:
1) How do I include resource files in the installation? I have a folder with files that have some user data, and those need to be there after the installation so the application can run, this is an oversimplified example I'm working on (I need to include NecessaryFile1.xml, NecessaryFile2.xml and NecessaryFile3.xml and the folder they're in):
alt text http://img193.imageshack.us/img193/7782/resources.png
2) How can I put the application in the start -> programs menu? It doesn't seem to do that either. It just puts it in the C:\Program Files\My Company Name\ApplicationName\ directory.
Thanks for any suggestion!
Go to your Setup project in Visual Studio. In the "File System" tab, locate "Application Folder". Right-click and then click Add | Folder. Name the new folder "Data". Right-click on the new "Data" folder and click Add File, then add the needed XML files. Repeat for as many different folders and/or files as required by your application.
When you compile and run your setup project, the "Data" folder and its contents will be deployed along with the application.
Click on each XML file in the Solution Explorer and then in the Properties window below (see your screenshot) you click and change "Build Action" to "Copy" and "Copy to Output Directory" to "Copy If Newer". That does the trick for me, at least with ClickOnce...