Don't overwrite or delete imported XML files - 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!

timc
Posts: 20
Joined: Wed Apr 30, 2008 12:43 am

Don't overwrite or delete imported XML files

Hi,

I need to import and modify Windows Installer XML files during the
installation, but they also need to be permanent (don't delete on uninstall)
and never overwrite (don't replace on upgrade). To further complicate
things, these XML files are the only things that should be left behind on
uninstall, so there are no components available to contain the XML file as a
companion.

It's super-easy to import the XML files and edit them, which is great, but I
have not figured out how to mark them appropriately to ensure they are not
removed or overwritten, as these are only available to standalone components,
as far as I can tell.

Thanks,
Tim
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Don't overwrite or delete imported XML files

Hi Tim,

Since the XML files need to be associated with a component, your package needs to have a component which will not be uninstalled or overwritten. For this you can create a dummy registry entry in the Registry page. This will provide a component for the XML files and it's presence means that the XML files are installed.

After the registry entry is created, you can use the Organization page to move all the XML files and entries to its component. Now you can set the "Permanent" and "Never Overwrite" attributes in the Component Properties page to make sure that the XML files are not removed or overwritten.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
timc
Posts: 20
Joined: Wed Apr 30, 2008 12:43 am

Re: Don't overwrite or delete imported XML files

Thanks Cosmin.

That's essentially what I was planning to do, but wanted to see about alternatives first.

Tim

Return to “Common Problems”