quick question on variables...
I forgot how to do this... What I'd like to do is use an item from my directory table as a variable.
"CLIENT", points to one directory while
"Client", points to another.
I'd like to apply a variable for, "Client" not "CLIENT". using [CLIENT] returns a value... using [Client] returns nothing. I think the format is [~Client]? I'm not sure. I'd give it a shot but this app takes so damned long to compile, I'll probably get an answer here faster than the recompile!
Thanks!
"CLIENT", points to one directory while
"Client", points to another.
I'd like to apply a variable for, "Client" not "CLIENT". using [CLIENT] returns a value... using [Client] returns nothing. I think the format is [~Client]? I'm not sure. I'd give it a shot but this app takes so damned long to compile, I'll probably get an answer here faster than the recompile!
Thanks!
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Where are you trying to use the variable? Obviously 'CLIENT' is a public property (being all upper-case) whereas 'Client' isn't. You could simplify the entire exercise by changing the _Directory name 'Client' in the Directory table to, say, 'CLIENT2'. As long as the actual directory name remains as 'Client', there's no problem: the former is just aan alias, in effect.
Posted by:
jmcfadyen
14 years ago
user profile directories cannot be accessed like that. the problem is that on installation it will cache the user profile directory to the msi cache and successive repairs attempt to repair to the same location regardless of the logged in user.
the way to get files deployed to the user profile is to use an HKCU entry as the keypath to the component.
if it is not a file you are talking about then simply using [CLIENT] should suffice alternatively you can makes calls to the session object
xxx = session.property("CLIENT")
Or session.TargetPath
the way to get files deployed to the user profile is to use an HKCU entry as the keypath to the component.
if it is not a file you are talking about then simply using [CLIENT] should suffice alternatively you can makes calls to the session object
xxx = session.property("CLIENT")
Or session.TargetPath
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.