Change file contents by placing the hostname - Advanced Installer Community
diegodtl
Posts: 3
Joined: Thu May 21, 2020 5:52 am

Change file contents by placing the hostname

Hello friends! I am creating an installation package and I need your help. The package has an .TRP file in which it must have the hostname of the machine installed, if there is another machine running the software with the same hostname the connection to the application is dropping. Using Text File Updates or another resource, is there a way to create a package so that at the time of installation it identifies the hostname of the machine and automatically changes the .TRP file?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Change file contents by placing the hostname

Hello and welcome to Advanced Installer forums,

To achieve that, you can use the [ComputerName] property.

This property is set, at install time, to the computer name (hostname) of the target machine.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
diegodtl
Posts: 3
Joined: Thu May 21, 2020 5:52 am

Re: Change file contents by placing the hostname

Hello friend, watch the video on the youtube channel and that's exactly what I want, now in an automated way. Could you help me?
https://www.youtube.com/watch?v=x7_J6PcKcxY
diegodtl
Posts: 3
Joined: Thu May 21, 2020 5:52 am

Re: Change file contents by placing the hostname

Thank you friend! Your tip made me understand how it works and I did it. :) :) :) :)
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Change file contents by placing the hostname

You are always welcome! :)

I am really glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”