Summary
This article discusses how to launch an executable using a custom action.Synopsis
This article discusses how to launch an executable using a custom action.
Discussion
The following steps can be followed in order to configure the installation to launch a Readme File installed by your setup program, using the copy of Notepad found in the user?s WindowsFolder directory.
- Create a new Basic MSI project
- In the Project Assistant tab, select the Application Files view and add a Readme.txt file.
- Go to the Installation Designer tab -> Behavior and Logic -> Custom Actions and Sequences.
- Right click the Custom Actions icon and select New Exe -> Path referencing a directory then name it appropriately (ex. Launch_readme)
- In the Working Directory setting, select WindowsFolder, which represents the directory containing the executable (Notepad in this case)
- In the Filename & Command line setting, enter the following value: notepad.exe ?[INSTALLDIR]Readme.txt?
- Change the In-Script Execution setting to Deferred Execution. This is necessary because the action refers to a file being installed, and system changes are not performed until deferred execution.
- Change the Install Exec Sequence setting to After InstallFiles. Because the file to be launched is being installed, the action must be scheduled after the standard InstallFiles action.
- Set the Install Exec Condition to ?Not Installed? which ensures the action runs only during a first time installation and not during the uninstall where the file would no longer exist.
- Save and build the project, and then test your installer.
Was this helpful?
Related Articles
PowerShell cmdlet get-property Used in a Custom Action 6Number of Views Windows Add/Remove Programs lists MongoDB 4.2.13 after Snow License Manager 9.27.1 upgrade 41Number of Views Can I Launch a Custom Action from SUPPORTDIR in Express? 5Number of Views Launch a Custom Executable 16Number of Views Launch a Custom Action Only When Uninstall is Selected From Add/Remove Programs 10Number of Views
Revenera Assistant - Beta
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago