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!

xtreampb
Posts: 5
Joined: Thu Dec 19, 2013 3:26 am

Preserving a file

I have a file that is installed in the installer. However I would like to preserve this file and leave it untouched (currently it is being cleared) when the software is uninstalled. Can anyone point me in the right direction?

Thank you,

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

Re: Preserving a file

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve this you can go in the Organization page, select the component related to your file and set the "Permanent" flag for it. For more details you can also take a look on the How do I prevent a file or registry entry from being uninstalled or repaired article.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xtreampb
Posts: 5
Joined: Thu Dec 19, 2013 3:26 am

Re: Preserving a file

I have that selected. When the uninstaller runs, the file remains, but the contents are removed.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving a file

Hi,

Can you please tell me what is the extension of your file? Is it a ".ini" file or a ".xml" file?

If you want to preserve a folder with all its content, you can go in the Files and Folders page, right-click on that folder and user the "Uninstall Cleanup" option.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xtreampb
Posts: 5
Joined: Thu Dec 19, 2013 3:26 am

Re: Preserving a file

My file has no extension but it is essentially a text file. I have tried using the cleanup option but when i use that, my file gets deleted. Also there are 2 files that don't get deleted that the installer installs. These are a custom extension of .vec (again esentially a txt file)
xtreampb
Posts: 5
Joined: Thu Dec 19, 2013 3:26 am

Re: Preserving a file

@Eusebiu
I don't know if I explained this well. The text inside my file gets deleted when the uninstaller runs and I have the component set to permanent.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving a file

Hi,

Sorry for the delayed reply.

I'm not sure why this happens. Can you try to right-click on the file, select "Properties", go in the "Operations" tab, check the "Do not overwrite existing file" option and see if the behavior persists?

If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xtreampb
Posts: 5
Joined: Thu Dec 19, 2013 3:26 am

Re: Preserving a file

I've found my issue. Someone made a bug in my code with a repository push. I overlooked that issue as i was trying to make the installer the day after he pushed the changes. Thank you for your kind help. The permanent option in the organization section is exactly want I needed.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Preserving a file

You're welcome. I'm glad you got this working.

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

Return to “Building Installers”