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!

codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Update Embedded msi

I have a deployment site that the updater will download an updated msi from. I have 1 aip that can create my deployment site on any of our regions (alpha, beta, prod). The embedded msi has a region property in it that I need to set depending on the deployment region being installed. Is there a way to update the embedded msi once it's layed down on the server? The update will have no user interactions when downloaded and installed, so I need to make sure the region property set before they are able to download it.

Thanks,
Scott
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update Embedded msi

Hi Scott,

You need a custom action to run as deferred with no impersonation, after Add Resources group, that updates the Properties table your embedded MSI. Here is a sample of code to update an MSI table.

You need to write a Windows Installer DLL in which to add the code for updating the tables, then call this DLL as a custom action.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: Update Embedded msi

I was actually using a vbscript to update it, but getting an error. Found the answers I needed here: http://www.advancedinstaller.com/user-g ... ialog.html
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update Embedded msi

VBS works too, but you might get the installer flagged/blocked by some antivirus software or the VBS engine might not work on some machines, that often happens.
This is why I recommended a DLL, it takes longer to write it, but its far more safe and stable, decreasing considerable the possibility to receive more support calls for failed installations.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”