/build/static/layout/Breadcrumb_cap_w.png

Run an executable from installed files

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


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
See the below answer
Posted by: jagadeish 12 years ago
Red Belt
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.


Comments:
  • Thanks a million that helped a lot. - Sidhugadu 12 years ago
Posted by: piyushnasa 12 years ago
Red Belt
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.


Comments:
  • 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 - jagadeish 12 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ