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!

Ollie__
Posts: 4
Joined: Mon Jan 09, 2017 6:16 pm

Replace file through QuickEdit transform

Hi all,

I'm looking to work on a vendor given MSI where I need to add in a customised XML file to replace the original in the MSI. Firstly I imported the MSI so that the resources would be exported, so then I could get ahold of the XML file. I've made a copy, customised and its ready to be used instead of the original. Because I do not want to make changes to the MSI I've gone for the MST approach.

In Files and Folders i've removed the original file and then added in the customised XML file. I also moved the XML into its own cab, cab1, so that it doesn't get mixed in with media1 of the MSI. It built fine, with the MST as well as the cab1 outside the MSI - but on installation it is still using the original XML file that does not have the customisations.

I'd like to keep to the transform approach if possible, instead of rebuilding the file into the MSI. Has anyone else had similar issues? Any pointers would be great.

Ollie
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace file through QuickEdit transform

Hi Ollie and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

I tested your scenario and the file was replaced as expected. Can you isolate the behavior in a sample and send it us to support at advancedinstaller dot com, so we can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ollie__
Posts: 4
Joined: Mon Jan 09, 2017 6:16 pm

Re: Replace file through QuickEdit transform

Hi Eusebiu,

Thanks for your reply and apologies for my late response. I've sent a ZIP with the MSI as well as the config file that I am attempting to do the below with. Is the ZIP suffice or do you require more?

In addition to what I've written I noticed that both the specified location, where I go to import the MSI to get the resources, and also a folder in temp with the resources is created. Does it matter where I put the config file I'd like to replace for when I go to create the MST?

For example, I specified C:\Resource to be where it dumps the resources on import of the MSI, but i also noticed that in C:\Users\<username>\AppData\Local\Temp\ it references the physical source to be when I am in QuickEdit Mode.

Ollie
Ollie__
Posts: 4
Joined: Mon Jan 09, 2017 6:16 pm

Re: Replace file through QuickEdit transform

Hi again,

I seem to be having issues emailing to that address, though I have emailed it perfectly fine before. Are ZIP files accepted at your address or blocked?

Ollie

Update: The support address you specified seems undeliverable, as I have tried both with and without attachments to support@advancedinstaller.com
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace file through QuickEdit transform

Hi Ollie,
Does it matter where I put the config file I'd like to replace for when I go to create the MST?
No, is should not matter where the modified file is located.

I'm not sure why our support email address was not accessible for you. Indeed, attachments larger than 10 MB as well as EXE files are not allowed, but an email without attachment should be received without problems. Can you try to send an email without attachment again and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ollie__
Posts: 4
Joined: Mon Jan 09, 2017 6:16 pm

Re: Replace file through QuickEdit transform

Hi Eusebiu,

Miraculously I've managed to do the customisation I described in the original post, with no change or alternative steps that I provided. I'll try an email again without an attachment, but will raise a new post if I have further problems contacting at the email address. My apologies for the wasted time.

Regards,


Ollie
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace file through QuickEdit transform

No problem Ollie. I'm glad you got this working.

Just let us know anytime you encounter a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”