We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

reiser
Posts: 4
Joined: Thu Mar 12, 2020 10:12 am

msi package wrapped setup

I created a msi wrapper for a software installer - setup.exe . It places the setup exe in the postinstall phase and the msi simply exits after starting setup.exe . I need it to wait until the setup completes. Shouldn't msi wait till it receives an exit code from the installer? It happens likewise with a simple compiled c# program.
I mention that I run setup with a silent switch so it installs unatended.
So how can I make it wait for the installer to finish?
I need to run an executable after the setup finishes ...
Thank you!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: msi package wrapped setup

Hello and welcome to Advanced Installer forums,

Unfortunately, that is not possible due to a Windows Installer limitation - this being that two installations can not happen at the same time.

The "Another installation is already in progress" message will be spawned.

Therefore, our executable which launches the post-install prerequisite will launch it asynchronously (the main installation not waiting for the prerequisite to finish installing) in order to avoid the above mentioned limitation.

Please let me know if there is anything else I could help you with and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
reiser
Posts: 4
Joined: Thu Mar 12, 2020 10:12 am

Re: msi package wrapped setup

Actually yes.

I can't get at least consistent negative results with the repackager module.

Tried some 5 times with the same package and I get like once 20000 files, next time 80000 files, next time 90000 files captured and so on ...

How is this possible? It looks like it randomly mocks me for whatever reason ...

Or better how can I get a complete capture of an install session.

Or at least consistent negative results for that sake?

Thank you!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: msi package wrapped setup

Hello,

This is quite strange, indeed.

Unfortunately, I can not say for sure why this happens.

In order for me to further investigate this issue, could you please let me know which setup you are trying to repackage? Maybe, if possible, could you please forward me a download link for it by e-mail at support at advancedinstaller dot com so I can further investigate this issue?

Looking forward to hearing from you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
reiser
Posts: 4
Joined: Thu Mar 12, 2020 10:12 am

Re: msi package wrapped setup

I can't upload the files because I would have to provide also the license file in order for you to test this ...
So I'm using the trial version of this.
I'm amazed that I can't even get solid negative results. Like one repackaging session finds some 20k files, next 80k files, next 60k files and so on.
So from my understanding this happens in a repackaging session:
1. AdvInst makes a snapshot of filesystem and registry
2. Install
3. AdvInst makes a snapshot of the after install filesystem and registry.
4. It compares the two and according to existing changes it creates the package.
So what is going wrong? Is there a random "funny" algorithm for the trial? Then how can I evaluate AdvInst it since ...
Can AV activity do something wrong for AdvInst?

Thank you.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: msi package wrapped setup

Hello,
I can't upload the files because I would have to provide also the license file in order for you to test this ...
I understand. Maybe you could try testing this with another application (if possible, one that I can also test) and see if you can replicate the same behavior. If so, please let me know which application is it so I can also test it?
So from my understanding this happens in a repackaging session:
1. AdvInst makes a snapshot of filesystem and registry
2. Install
3. AdvInst makes a snapshot of the after install filesystem and registry.
4. It compares the two and according to existing changes it creates the package.
This is indeed what happens during a repackager session.
Can AV activity do something wrong for AdvInst?
Usually, we recommend doing the repackager using a Virtual Machine, as on your developer machine there could be a lot processes (e.g. AntiVirus, Windows Updates, etc.) that could interfere with the repackaging process. Please find more information about this on our "Application Repackaging - Local vs Virtual Machine" article which I think you may find useful.
So what is going wrong? Is there a random "funny" algorithm for the trial? Then how can I evaluate AdvInst it since ...
No, of course not. During the trial period, you can access all the features Advanced Installer has to offer.

Please accept my apologies for this inconvenience.

Could you please try to repackage your application using a clean Virtual Machine and let me know if the outcome is the same?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
reiser
Posts: 4
Joined: Thu Mar 12, 2020 10:12 am

Re: msi package wrapped setup

The last three attempts were made on a clean Windows 10 Virtual machine with everything non-essential stopped aside Windows Defender ... Previous attempts were made on a regular machine with some AV and the usual crap installed but also mostly the strictly neccesary processes.

I can't understand why it gives different results for different sessions. It doesn't make sense.

Given this, I wouldn't recomend to anyone this product unfortunately. It should've been a walk in the park yet it was a nightmare.

Just out of curiosity, did you ever encounter this kind of situation with any software package?

Maybe we can help each other at least from at least a curiosity POV ...

But I repeat myself: from where I'm standing this is a no go for a product to purchase.

Have a nice evening.

Later edit: I am willing to share some of my findings on a more private channel like a webex session or so. I saved some of the reports, not all in .xml format, maybe that will help you solving some issues with AdvInst. Because it obviously has some. Kind regards.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: msi package wrapped setup

Hello,
Given this, I wouldn't recomend to anyone this product unfortunately. It should've been a walk in the park yet it was a nightmare.
I am really sorry to hear this and I apologize for the inconveniences encountered using our product.
Just out of curiosity, did you ever encounter this kind of situation with any software package?
To be fully honest with you, I did not encounter such a scenario in the past.

However, I may have a slight idea why this might happen. On the machine where you are performing the repackaging session, could you please make sure that there isn't any Windows Update going on in the background (or pending)? I can not think of another process that would cause such a 'noise', other than a Windows Update.

If possible, could you please try to disable (stopping the service is not enough as it will be restarted after some time automatically) the "Windows Update" service on the computer, make sure there is no Windows Update pending and then retry this scenario?

If this is still of no help and if you want to share some of your findings, you can do so by e-mailing me at support at advancedinstaller dot com.

Hope you'll find this information helpful and once again, I do apologize for the inconveniences encountered.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”