Hello,
Unfortunately this cannot be achieved.
However, you can try to create another package that will execute the related custom action. You can add this package as a
pre-install one,
before your prerequisites.
In this package which will be added in the prerequisite section, to launch your custom action you can go in the
“Custom Actions” page and add the predefined
Launch attached file custom action with
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.
Also you should disable the "Register product with Windows Installer" option from the
"Product details" page.
If you need any help, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging