hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Launch file action does not open with the associated program

Hi

I have added a the predefined custom action "Launch File or Open URL" to my project

in the command line field i have something like (including quotes): "[some_dir]file.xml"

When the custom action is executed the xml file is opened with IE.

I have associated XML files with an editor. why does it not open with that editor?
It works just fine when i double click the file in explorer.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch file action does not open with the associated pro

Hello,

I am not sure why this is happening on your machine. I have discussed the matter with the development team and found that the open verb is used in the custom action. If that verb doesn't exist the default verb is used in its place.

There must be something wrong in your machine's configuration causing this behavior. For testing purposes you can try the package on other machines and see the result.

Are you associating the files with the editor during installation?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Re: Launch file action does not open with the associated pro

I've tried this on 2 machines.
1 WinXP and 1 Win7

What i did in both cases was that i used the "open with.." in the context menu of an .xml-file.
I then browsed to my editor (notepad++) and checked "Always use the selected program to open files of this type"
(I'm not in front of an english windows so text may not be entirely correct)

In other words I don't create the association with my .msi file.

Afterwards double-click on .xml files open in the editor.

Still. When my msi executes the custom action: the file open in IE.
hans
Posts: 11
Joined: Mon Mar 14, 2011 3:41 pm

Re: Launch file action does not open with the associated pro

I found it. :)
Now it's obvious :)

Don't select a Execute Options with "... with no impersonation" for the custom action

Return to “Common Problems”