Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to add entries of the directorytable in the propertytable ?

Updated: 21 May 2010 | 1 comment
Atom's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

 

How to add entries of the directorytable in the propertytable  ?

Question: In some property values I have to resolve directory names,
for example ALLUSERSPROFILE has to be resolved in it.
On a windows xp system this has to resolved to C:\Documents and Settings\All Users.

I have added them in the property table as below:
"COMMONAOC","[ALLUSERSPROFILE]\Aoc\"
"COMMONCONFIG","[ALLUSERSPROFILE]\Config\"
"COMMONTEMP","[ALLUSERSPROFILE]\Temp\"

I get the following error in my log file

MSI (s) (94:E8) [13:15:47:259]: Note: 1: 1606 2: [ALLUSERSPROFILE]Temp\
Error 1606.Could not access network location [ALLUSERSPROFILE]Temp\.

I have also tried the following

I have added them in the property table as below:
"COMMONAOC","[%ALLUSERSPROFILE]\Aoc\"
"COMMONCONFIG","[%ALLUSERSPROFILE]\Config\"
"COMMONTEMP","[%ALLUSERSPROFILE]\Temp\"

I get the following error in my log file

MSI (s) (94:E8) [13:15:47:259]: Note: 1: 1606 2: [%ALLUSERSPROFILE]Temp\
Error 1606.Could not access network location [%ALLUSERSPROFILE]Temp\.

discussion Filed Under:

Comments

EdT's picture
18
Mar
2010
1 Vote +1
Login to vote

You cannot set property

You cannot set property values in the property table to other property values as this is not allowed by Microsoft due to recursion risks.
You need to either use the Set Property custom action to set a property to a value, which can be another property name, or you can reference environment variables directly using the syntax: [%ENVIRONMENTVARIABLENAME], for example in the registry table.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.