HOW A EDIT SHOW THE SYSTEM PROPERTY - Advanced Installer Community
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

HOW A EDIT SHOW THE SYSTEM PROPERTY

hi , i came into an problem
when i diy a diaglog ,there are many edits to write,could the Advcanced Installer help me fill this edit by getting the system property?
eg:
i could let the edit show an default number like this ( i manual input theses numbers!)
DIY_LOG_PROPERTY_1.jpg
DIY_LOG_PROPERTY_1.jpg (142.7 KiB) Viewed 2858 times

OR what should i do ,when i wan to write something or variables in "default value" to show the correct computername?
DIY_LOG_PROPERTY_2.jpg
DIY_LOG_PROPERTY_2.jpg (148.33 KiB) Viewed 2858 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: HOW A EDIT SHOW THE SYSTEM PROPERTY

Hello,

The ComputerName property is the computer name of the current system. The installer sets this property at runtime.

Since the Default Value property field is of Formatted Data Type, then you can add a reference to the related property. e.g.

Code: Select all

[ComputerName]
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

Re: HOW A EDIT SHOW THE SYSTEM PROPERTY

Dan wrote:Hello,

The ComputerName property is the computer name of the current system. The installer sets this property at runtime.

Since the Default Value property field is of Formatted Data Type, then you can add a reference to the related property. e.g.

Code: Select all

[ComputerName]
If you have other questions, please let us know.

Best regards,
Dan
hi Dan,

that works ,ths
BTW,now i can get all kinds of properties in system property.
if i want to get the ip address or NET MASK or gateway on the current system(consider as win7 system),what should i write in property?

can you give me an example?thanks a lot
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: HOW A EDIT SHOW THE SYSTEM PROPERTY

You're welcome,

To get the ip address or NET MASK or gateway of the target machine, you need to create a custom action.
Please take a look on the How to get my own IP address in C#? thread which may be useful to you.

In order to integrate your custom action in your installation package, you can follow the steps from the Options to integrate and debug custom actions article.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”