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,
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)
Please log in to answer
Posted by:
Toupeiro
19 years ago
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
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.
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.