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
Answers (2)
See the below answer
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
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