Hi,

Can anybody help me in telling me how to execute an exe file from installed files. I am using wise studio to package this application. Any suggestions would really help me a lot.

Sid

Answer Summary:
See the below answer
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

You can use the following custom action

Execute Program From Installed Files
This custom action calls an .EXE file that is installed by this installation.

Note:
Before you add this custom action, add the file to be called to the Files page in Installation Expert

Ensure that you have added the file to be called to the current package

Shaded areas of MSI Script indicate restricted placement for this custom action; because this custom action calls an installed file, it must run after files are installed.

Usage


Double-click the custom action and complete the Details tab:

Custom Action Name

Enter a unique name for custom action

Executable File

Specify the .EXE file to run. It must have already been added to this installation.

Command Line

(Optional)

Enter command-line options to pass to the .EXE file.

On the Properties tab, In-Script Options is unavailable for this custom action.

Answered 07/18/2012 by: jagadeish
Red Belt

  • Thanks a million that helped a lot.
Please log in to comment

Answers

1

The best place to run this action is just before Install Finalize.

If you have to launch an execuatable and want it to keep running and want the MSI to finish its actions then run it after InstallFinalize action in Async No wait.

Answered 07/18/2012 by: piyushnasa
Red Belt

  • Forgot to mention that part.. Thanks for pointing out..
    This custom action can not be sequenced before InstallFinalize standard action in Immediate Sequence... Can be sequenced after InstallFinalize standard action in Immediate Sequence..
    Also, It can be sequenced after InstallFiles standard action in Execute Deferred sequence..

    As Piyushnasa mentioned, you can sequence it after InstallFinalize standard action in Execute Deferred
Please log in to comment
Answer this question or Comment on this question for clarity