/build/static/layout/Breadcrumb_cap_w.png

Directory as ComputerName

I want in my application to create the folder named as ComputerName(host name)
what should be the value in "defaultDir" column in Directory table

I tried putting [ComputerName] as DefaultDir but it is not getting resolved and a directory "[ComputerName]" is getting created and I want it to be as "DK829A47" which is my computer name.

Please let me know how to put variables in this column.



Thanks,

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Toupeiro 19 years ago
Senior Yellow Belt
0
If you're wanting to have the program install there, you can try modifying the INSTALLDIR property of the directory table to reflect the computername variable. outside of that, you can create a public property called [whatever] and have that equal your computername variable, or from your launch statement you might be able to call that public property and use the system variable %computername%. just make a new entry in your directory table calling the new public property you made. I'm not at my packaging workstation right now or I'd test it, but those are the first things I'd try. I hope it helps.
Posted by: Lillude 19 years ago
Senior Purple Belt
0
I tried that and added a new row in directory table as

NewDir INSTALLDIR %ComputerName%


But the new folder is getting created as "%Computername%" and not as the exact value of the property %computername%.

What should be the exact entry in the directory table so that it resolves the value of the property and creates a new directory as required.
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
Try using [%COMPUTERNAME]
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