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!

CalDLT
Posts: 1
Joined: Wed Apr 18, 2007 11:59 pm

Ability to leave ini files on uninstall

I am attempting to figure out a way to create an MSI using advance installer to:

load application files:
ex. C:\Entero\Entero Tracker\1.06.001.008 which works fine

but I also have a necessary ini file that needs to be loaded to
c:windows ([WindowsDirectory] only if it does not already exist and if the above files are uninstalled I would like to have the ini file stay. I cannot seem to do this. There seems to be options not to added sections to the ini file if they exist but there is no way to stop the uninstall or deletion of these sections when the MSI is uninstalled?

Is what I want to do possible?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The simplest way to do that is by making a dummy component (adding a dummy registry key for example) and marking it as permanent. This implies to add all the INI keys under this component.

If you don't want a dummy component then another solutions is by using a custom action. For a similar approach please see:
http://www.advancedinstaller.com/forums ... ght=backup

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”