Patch an application's .config file. - Advanced Installer Community

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!

gjcradle
Posts: 4
Joined: Tue Mar 29, 2011 2:12 pm

Patch an application's .config file.

Hi,

Apologies up front if this has already been asked and answered. My searches didn't come back with what I'm struggling with.

I've hit a problem with patching.

In my patching installer project I've got an application (let's call it fred.exe). This app has a configuration file (fred.exe.config). The config file is included in the project as a 'real' file as well as an XML File (Windows Installer) which is then used to update some of the values in the file when it's installed (set server name etc.). This works fine installing the msi created from that project.

The problem comes when trying to build the patch (msp) file. In my patch project I've got the 2 images for the different versions of the project specified and it builds the msp file but when I apply the patch it doesn't update the values in the config file. It leaves the config file alone.

I've gone through things a few times but can't work out where I'm going wrong.

Any suggestions would be much appreciated.

Gav
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch an application's .config file.

Hi Gav and welcome to the Advanced Installer Projects,

Can you please send us the .AIPs ( target, upgraded and patch ) and a verbose log of the failing installation to support at advancedinstaller dot com so we can investigate them?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gjcradle
Posts: 4
Joined: Tue Mar 29, 2011 2:12 pm

Re: Patch an application's .config file.

Email sent - many thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch an application's .config file.

Hi Gav,

I have looked into your projects and .AIPs and everything seems to be ok. Can you please isolate this behavior on separate clean test projects that contain only the config file and reproduce this patch behavior?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gjcradle
Posts: 4
Joined: Tue Mar 29, 2011 2:12 pm

Re: Patch an application's .config file.

Will look at this first thing tomorrow morning and get back to you.

Cheers

Gavin
gjcradle
Posts: 4
Joined: Tue Mar 29, 2011 2:12 pm

Re: Patch an application's .config file.

Apologies for delay in replying. This is now working thanks.

Return to “Common Problems”