how to del the updated context during uninstall in a file. - Advanced Installer Community
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

how to del the updated context during uninstall in a file.

HI Team,

how to del the updated context during uninstall in a file.

Am using New text file update feature to append the new data to an .txt file which is already available in the target machine.
Where as am able to append the text to the xxx.txt file which is already available on the target machine, But during uninstallation am not able to delete the appended data from the target file.

Can you suggest any workaround for that or is there any another alternative to resolve this .


With Regards,
Pradeep.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to del the updated context during uninstall in a fil

Hi Pradeep,

In order to achieve that you can create another Text File Updates operation which will be executed during Uninstall.
Just make sure you select the Component Uninstall operation for the Run On option from the Text File Properties.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: how to del the updated context during uninstall in a fil

HI dan,

I got ur answer I want the appended data need to be removed from the xxxx.txt not the whole file :?:

With Regards
pradeep
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to del the updated context during uninstall in a fil

Hi Pradeep,

You don't remove the .txt file. In your second text file update that will run during Uninstall you can remove the appended text during installation with an empty string.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 142
Joined: Wed Oct 12, 2016 2:57 pm

Re: how to del the updated context during uninstall in a file.

Good information, but I wasn't able to add another text file update because duplicate file names are not allowed. I had to create another text file update and use a wildcard name (file*.txt).

Return to “Common Problems”