Uservariable in Property | Acad 2007
Hey there!
I am having a little problem in a Transform i have made from the Autocad 2007 MSI that will be deployed at a customer hopfully next week :)
The problem is :
The property Table contains direct filepaths. this i can handle.
The property Table contains Directory pointers for stuff INSIDE the userprofile ( C:\documents And Settings\customerUser\Application Data.
How can i make the " CustomerUsers" a variable that the right userprofile is selected. The Msi will repair when its placed in the wrong path.
I hope you can shed some light on it.
Kind Regards,
I am having a little problem in a Transform i have made from the Autocad 2007 MSI that will be deployed at a customer hopfully next week :)
The problem is :
The property Table contains direct filepaths. this i can handle.
The property Table contains Directory pointers for stuff INSIDE the userprofile ( C:\documents And Settings\customerUser\Application Data.
How can i make the " CustomerUsers" a variable that the right userprofile is selected. The Msi will repair when its placed in the wrong path.
I hope you can shed some light on it.
Kind Regards,
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
spartacus
18 years ago
The AppDataFolder property holds the full path to the Application Data folder for the current user, so this could help you out.
Unfortunately you can't just use the Property table to set a property to the value of another property (either in whole, or in part). Instead, in the transform you could remove the relevent entries from the property table and then use a Type 51 Custom Action (Set Property) to set each property to the value [AppDataFolder]mumble (where mumble = whatever you wish to follow the path to the Application Data folder).
Note that if any of the properties are used in a condition on a component or feature, the Type 51 custom action(s) must come before the CostFinalize action in the action sequence.
Regards,
Spartacus
Unfortunately you can't just use the Property table to set a property to the value of another property (either in whole, or in part). Instead, in the transform you could remove the relevent entries from the property table and then use a Type 51 Custom Action (Set Property) to set each property to the value [AppDataFolder]mumble (where mumble = whatever you wish to follow the path to the Application Data folder).
Note that if any of the properties are used in a condition on a component or feature, the Type 51 custom action(s) must come before the CostFinalize action in the action sequence.
Regards,
Spartacus
Posted by:
The Packeteer
18 years ago
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.