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!

anoop
Posts: 40
Joined: Tue Jan 10, 2012 12:07 pm

Retain XML files and Kill Process

Hi,

I'm having problem in building installers, There are two problem where I'm facing difficulties.

1. While upgrading from 1.1.0 to 1.2.0 i need to retain some of the files (.xml and .mdb), where in the files get overwritten during up-gradation. This xml and mdb files contains user preference's. And one more thing is that if this is a new installation the .xml and .mdb files should be placed. I tried some of the posts from forum, still not able to find proper fix.

2. During uninstall I'm trying to kill a process, But not able to do that. Even after un-installation i can still see the process in task manager. Below mentioned things which i have tried.
a. Terminate process
b. Stop process.

Still no way to resolve this!!

Regards,
Anoop
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Retain XML files and Kill Process

Hello Anoop,
1. While upgrading from 1.1.0 to 1.2.0 i need to retain some of the files (.xml and .mdb), where in the files get overwritten during up-gradation. This xml and mdb files contains user preference's. And one more thing is that if this is a new installation the .xml and .mdb files should be placed. I tried some of the posts from forum, still not able to find proper fix.
In order to achieve what you want you can enable for the related files, in the upgrade project, the "Do not overwrite existing file" option with OLDPRODUCTS condition in "File Properties -> Operations" tab.
Also, you can take a look on our "Prevent repair or uninstall" article.
2. During uninstall I'm trying to kill a process, But not able to do that. Even after un-installation i can still see the process in task manager. Below mentioned things which i have tried.
a. Terminate process
b. Stop process.
Can you run your "Terminate process" custom action as deferred with no impersonation and see if the behavior still persist?

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”