Hi i am relatively new to packaging, i am currently packaging an application that needs to write unique machine names for ebery machine that the package is deployed to.
We only recently started to package applications in my company, before now we just ran the setup.exe on each individual machine and configured the registry setting. Now we are packaging and want to ensure the package dynamicly looks for and populates the unique machine name each time it is deployed.

Can anyone who has come accross this before assist.

0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


assuming you are using MSI. use the following property [%COMPUTERNAME] to return the computername of the current machine.
Answered 04/19/2007 by: Moley
Senior Yellow Belt

Please log in to comment
Hi Moley,
I'll try this. So if i just create a public property and put th %COMPUTERNAME% each time the msi gets deployed, it picks out the machines unique name?
Answered 04/20/2007 by: sina
Yellow Belt

Please log in to comment
no that is not correct.

There is a property built into MSI which contains the machine details already.

[ComputerName] or [%ComputerName]

not %computername%

whereever you specify [% ] you can reference any machine environment variable.

for examples of such jump to a dos prompt and type


this will give you a list of current machine based environment var's. All of them can be accesed from MSI via [%EnvironmentVar]
Answered 04/22/2007 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
you dont need the last % simply use [%COMPUTERNAME] . You need the square brackets also.
Answered 04/23/2007 by: Moley
Senior Yellow Belt

Please log in to comment
I use [ComputerName] as during baremetal builds a renamed computer wont actually show the new [%ComputerName] variable name until after a reboot.
Answered 04/23/2007 by: Tone
Second Degree Blue Belt

Please log in to comment