This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to delete a line from a text file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 29, 2012
12:48 AM
How to delete a line from a text file
I have attached a text file.
In that there are several lines. If you notice it has a line with RhodeSensorInstall.bat and RsViNrp.dll. I need to delete both lines. Also after deleting there should be no extra space or empty line in the deleted place.
Please help me doing that.
My actual case is, if it is a windows 7 machine i need to delete that both lines. If it is XP, we should not delete that line.
In that there are several lines. If you notice it has a line with RhodeSensorInstall.bat and RsViNrp.dll. I need to delete both lines. Also after deleting there should be no extra space or empty line in the deleted place.
Please help me doing that.
My actual case is, if it is a windows 7 machine i need to delete that both lines. If it is XP, we should not delete that line.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 29, 2012
12:55 AM
In custom action and sequence we can put a condition, run this function script only if it is windows7. But it is hard to write the fuction how to delete the lines from a file.