Hello,
i have to run to the installation and put the sql files on the temp folder then run the .exe but if i can just run it from the attached files then i would not have to waist time and space on coping the files somewhere else so i can run the .exe. and having it as a prerequisite woulnt help me.
For this you can try the following approach.
You can create a custom action that will load the related .EXE from the .MSI and will launch its installation without coping it on the disk. In this custom action you can implement the
Dynamic forking technique.
You can try to add your .exe in the
Binary table from
Table Editor page of Advanced Installer. AIn your custom action you need to extract the .EXE from the Binary table too.
Please take a look on the
Dynamic forking (Process hollowing) article with related information for hints and guidance.
For example, you can create your custom action as
a custom action written in C# or
a custom action written in C++.
Then you can go in the
“Custom Actions” page and add a predefined
Launch attached file custom action withot sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.
You can take a look on the
How do I execute a custom action when a button is pushed? article with related information for hints and guidance.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging