Summary
The Support Files view of an InstallShield project allows files to be extracted to the temp location at run time. This article describes how to launch an executable from this location during the installation.Synopsis
The Support Files view of an InstallShield project allows files to be extracted to the temp location at run time. This article describes how to launch an executable from this location during the installation.
Discussion
Following these steps authors a custom action that calls an executable from the Support Files view.
-
Add the executable to be launched to the Language Independent node of the Support Files View (Advanced UI, Basic MSI, InstallScript Object, and Suite/Advanced UI Projects) or Support Files/Billboards View (InstallScript and InstallScript MSI Projects)
e.g.,MyApp.exe.
- Launch the Custom Action Wizard. For more information, see the References section of this article.
- On the Action Type dialog:
- Select Launch an Executable from the Type drop-down list.
- Select Stored in the Directory table from the Location drop-down list.
- On the Action Parameters dialog:
- Select TempFolder from the Source drop-down list.
- Set the Target to "
[SUPPORTDIR]\MyApp.exe".The square brackets resolve to the value of the SUPPORTDIR property. See the References section of this article for more information. The quotes are needed because SUPPORTDIR resolves to a long path. Finally, the backslash is required because SUPPORTDIR does not contain a trailing backslash.
- On the Insert into Sequence dialog:
- Select After CostFinalize from the Install Execute Sequence drop-down list.
- Set the Install Execute Condition to Not Installed.
Additional Information
- Go to the Direct Editor view in the Additional Tools folder and select the Directory table from the list of tables in the Direct Editor view.
- Create a new row at the bottom with the Directory column set to SUPPORTDIR, the Directory_Parent column set to TARGETDIR, the DefaultDir column set to ., and the ISAttributes column set to 0.
- Select SUPPORTDIR instead of TempFolder in step four above.
For more information on the Support Files view, see the Help Library topic Using Support Files.
The SUPPORTDIR property is further documented in the Help Library topic SUPPORTDIR.
Related Articles
Basic MSI Project: Launch Executable .exe File If the .exe File Is Found Using a System Search and Force a Reboot 8Number of Views Launch an Executable Using a Custom Action 3Number of Views Launching an Executable From a Subdirectory of SOURCEDIR 3Number of Views Windows Loads a Different Library or Launches a Different Executable than was Intended by the Author of a InstallShield Se… 51Number of Views FlexNet Manager Suite log files and locations 188Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
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. | |
Case id: 00001065
Activity: Status change: 2 hours ago