/build/static/layout/Breadcrumb_cap_w.png

Creating Dynamic Machine name in package

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.

Thanks

0 Comments   [ + ] Show comments

Answers (5)

Posted by: Moley 17 years ago
Senior Yellow Belt
0
assuming you are using MSI. use the following property [%COMPUTERNAME] to return the computername of the current machine.
Posted by: sina 17 years ago
Yellow Belt
0
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?
Posted by: jmcfadyen 17 years ago
5th Degree Black Belt
0
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

>set

this will give you a list of current machine based environment var's. All of them can be accesed from MSI via [%EnvironmentVar]
Posted by: Moley 17 years ago
Senior Yellow Belt
0
you dont need the last % simply use [%COMPUTERNAME] . You need the square brackets also.
Posted by: Tone 17 years ago
Second Degree Blue Belt
0
I use [ComputerName] as during baremetal builds a renamed computer wont actually show the new [%ComputerName] variable name until after a reboot.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ