Hello Catalin,
Thanks for your hints so far, but to make our problem as transparent as possible, we send you the following examples via Email to "support at advancedinstaller dot com" with the following prefix before the title "[Quenteux1603]".
The examples includes following files:
"TestInstaller2.0.aip" - Project file with our settings
"Files.zip" - The files that will be included in the installation routine, by the AIP file
"CustomAction" - This includes all the compiled files for the custom action, as well as the used codelines in the visual studio solution
"ReturnCodeTest2.exe" -- This is our provided Execution File which will be called by the CustomAction
---
Our process should look like this:
Step 1) CMD/Powershell will start setupTest.exe, which will initiate the installation process of the advancedeinstaller package.
Step 2) Inside the setupTest.exe we have a customaction "call function from attached native DLL" that calls our own exe "ReturnCodeTest2.exe" which is also included in the "Files.zip" files which will be placed/installed by the installation routine
Step 3) The "ReturnCodeTest2.exe" will return a customized errorcode in our example 1001 (but it could be the range from e.g. 1000 till 1005, depending on the parameters that will be given into)
Step 4) The setupTest.exe should abort the setup process and print our Errorcode 1001 into the starting shell (Step 1)
---
As said in the Step2 we used the "call function from attached native DLL" method. In our first tries, we tried to call the "ReturnCodeTest2.exe" directly with the method "Launch installed file". But I read an article which preferred this to get our customaction passed through the shell. E.g -->
viewtopic.php?t=25528
---
For our company, the process, which is described in these small steps, is absolutely necessary to buy your product otherwise we unfortunately need to re-evaluate other solutions.
I hope you can now better get your head around this issue. If there are any other topics where we can support you, please feel free to reach out to me.
Best Regards
Pascal