bpuser
Posts: 5
Joined: Tue Apr 05, 2011 7:10 am

Editing the File 'c:\Windows\System32\drivers\etc\services'

Hello all togehter,
I'm new here and I want to write my first Advanced Installer Enterprise Project.
During the installation I want to editing the File 'c:\Windows\System32\drivers\etc\services'. I want to add two lines:

BPNetzwerk 6000/tcp # Bodo Peters System Telenüp Netzwerk Dienst
BPModule 6001/tcp # Bodo Peters GmbH System Telenüp Module Dienst

How can I do this?
Thank you for your help
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Editing the File 'c:\Windows\System32\drivers\etc\services'

Hi,

For this you can try using our new feature called "Text File updates". Here are more details.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bpuser
Posts: 5
Joined: Tue Apr 05, 2011 7:10 am

Re: Editing the File 'c:\Windows\System32\drivers\etc\services'

Hi,
the new feature called "Text File updates" ist good, but I don't know, how I can add two new lines (at the end of the file).
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Editing the File 'c:\Windows\System32\drivers\etc\services'

Hi,

Indeed, in your case this feature is not useful. Another method is to use custom actions, like in the following example.
I shall add an improvement on our TODO list for the feature I first recommended so this behavior is supported in the future.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Pacman
Posts: 2
Joined: Wed Oct 12, 2011 12:17 pm

Re: Editing the File 'c:\Windows\System32\drivers\etc\servic

Hi. I believe you should just download a new host file and open it w/ notepad and then save it (in safe mode)
Last edited by Pacman on Wed Jun 20, 2012 6:52 am, edited 2 times in total.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Editing the File 'c:\Windows\System32\drivers\etc\servic

Hi,

Actually the improvement I mentioned in my previous post was added in Advanced Installer 8.3, so now the support for
"Text File updates" from Advanced Installer should do all the work.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”