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.

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


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.
Answered 03/31/2005 by: Toupeiro
Senior Yellow Belt

Please log in to comment
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.
Answered 03/31/2005 by: Lillude
Senior Purple Belt

Please log in to comment
Answered 04/01/2005 by: MSIMaker
Second Degree Black Belt

Please log in to comment