Replace file in MSI pack - Advanced Installer Community
bjornhmv
Posts: 3
Joined: Fri Mar 27, 2015 11:37 am

Replace file in MSI pack

Hi, I am trying to open a MSI file and replacing a config file inside it. Looks like it works fine and it creates a .cab file containing the new config file.
But when I install the MSI pack the config file is missing. Do I need to use a swith to install the cab file when installing the MSI? Who does this work?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Replace file in MSI pack

Hello and welcome to Advanced Installer forums,

Indeed, editing the .MSI file to replace the config file is the correct approach.

After this operation, you can save the results as a new MSI package or you can save them as an MST (transform) file and apply the MST file when deploying the .MSI file. You can take a look on the Create and edit an MST file and on the Alternative to AdminStudio/Wise articles which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bjornhmv
Posts: 3
Joined: Fri Mar 27, 2015 11:37 am

Re: Replace file in MSI pack

Hi Dan, thanks for your reply.
I did edit the .MSI file, replaced the config file and saved the result as a new MSI package. However when I install the new package the config file in completely missing. Neither the new config file nor the old one is there.
I actually wanted to try this out before buying the product, so I'm using a trial version, maybe that's what is causing this not to work for me?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Replace file in MSI pack

Hi,

No, there should not be any limitation that you are using the Advanced Installer in trial mode. During the trial you have access to all the features, without any limits. The setup packages will just include message boxes during the installation, saying they were built with a trial version of Advanced Installer.

In order to troubleshoot this, can you please send us the original .MSI and the edited one to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behaviour.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bjornhmv
Posts: 3
Joined: Fri Mar 27, 2015 11:37 am

Re: Replace file in MSI pack

I'm not able to send you the msi files. Your mail server rejects the message attachments.... I tryed zipping them an all but didn't work either.
Im working with the file StyleCop-4.7.49.0.msi and trying to replace this settings file Settings.stylecop, if that helps...
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Replace file in MSI pack

Hello,

In this case, can you please share the installation package with me on Dropbox or something similar?

Just send us the download link to support at advancedinstaller dot com so we can further investigate it.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”