Hi,
I have a script that I want to deploy as an MSI (created with script packager). That MSI will also have 2 files: 1 cfg file and one EXE utility file included in the MSI project. I intend to create a custom action in my packaged script that will call the EXE file during installation.
My problem is that I don't know how to create the custom action that will call the EXE. During the MSI installation process, the EXE will probably be extracted to a "cryptic" path in a temp folder somewhere on the PC. How can I make sure that the custom action (and the main packaged script) will be able to find the EXE wherever it is extracted on the PC.
Thanks!
Calling Included files in ScriptPackager MSI
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8615
- Last visit: Tue Jan 21, 2025 3:46 pm
- Been upvoted: 45 times
Re: Calling Included files in ScriptPackager MSI
If you install the exe with your MSI containing your script, the .cfg and .exe, it will all be in the same folder, designated as INSTALLDIR.
Please see https://www.sapien.com/blog/2018/02/26/ ... i-builder/
The important part for executing any file in a custom action that is installed and not pre-existing, is to select 'deferred' as execution time,
as this happens after files are copied and before the installation is completed.
Please see https://www.sapien.com/blog/2018/02/26/ ... i-builder/
The important part for executing any file in a custom action that is installed and not pre-existing, is to select 'deferred' as execution time,
as this happens after files are copied and before the installation is completed.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.