AppDataFolder pointing to C?
I'm creating an MST for Open Text eDocs DM5.3. I'm trying to place some files in the AppData\Roaming folder, using the Property AppDataFolder.
Unfortunatley, my files end up installed at the root of C: instead of in my roaming folder.
Any idea why AppDataFolder points to C? It is supposed to point to \%userprofile%\AppData\Roaming.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa367565(v=VS.85).aspx
Unfortunatley, my files end up installed at the root of C: instead of in my roaming folder.
Any idea why AppDataFolder points to C? It is supposed to point to \%userprofile%\AppData\Roaming.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa367565(v=VS.85).aspx
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
whenriksen
13 years ago
These are the row entrys I've created in the directory table:
DIRECTORY
DIRECTORY_PARENT
DEFAULTDIR
TARGET_PATH
SOURCE_PATH
DM_OpenText
OpenText
DM
AppDataFolder\OpenText\DM
OpenText\DM
OpenText
User_Roaming
OpenText
AppDataFolder\OpenText
OpenText
Settings_DM_OpenText
DM_OpenText
Settings
AppDataFolder\OpenText\DM\Settings
OpenText\DM\Settings
User_Roaming
<null>
AppDataFolder
AppDataFolder
<null>
I browsed the msi install log and AppDataFolder is set to the expected userpath:
"Property(S): AppDataFolder = C:\Users\%UserProfile%\AppData\Roaming\"
However, the file is installing to C.
"MSI (s) (40:90) [16:07:55:495]: File: C:\OpenText\DM\Settings\SaveUIConfig.xml; To be installed; Won't patch; No existing file"
DIRECTORY
DIRECTORY_PARENT
DEFAULTDIR
TARGET_PATH
SOURCE_PATH
DM_OpenText
OpenText
DM
AppDataFolder\OpenText\DM
OpenText\DM
OpenText
User_Roaming
OpenText
AppDataFolder\OpenText
OpenText
Settings_DM_OpenText
DM_OpenText
Settings
AppDataFolder\OpenText\DM\Settings
OpenText\DM\Settings
User_Roaming
<null>
AppDataFolder
AppDataFolder
<null>
I browsed the msi install log and AppDataFolder is set to the expected userpath:
"Property(S): AppDataFolder = C:\Users\%UserProfile%\AppData\Roaming\"
However, the file is installing to C.
"MSI (s) (40:90) [16:07:55:495]: File: C:\OpenText\DM\Settings\SaveUIConfig.xml; To be installed; Won't patch; No existing file"
Posted by:
jmaclaurin
13 years ago
I've seen this on corrupted user profiles. It could be a problem with a system/user environment variable. Open a cmd and enter SET to see what the environment variables are. It could also be a problem with how you are getting an environmental variable in to a value you are creating, if you happen to be doing that.
Posted by:
whenriksen
13 years ago
Posted by:
anonymous_9363
13 years ago
"Property(S): AppDataFolder = C:\Users\%UserProfile%\AppData\Roaming\"Properties listed in the log file should show resolved folders, so the problem is here. I suspect that you have it being set somewhere like this:
AppDataFolder = C:\Users\%UserProfile%\AppData\Roaming
whereas it should be like this:
AppDataFolder = [%UserProfile]AppData\Roaming
or, much better:
AppDataFolder = [%AppData]
This last resolves correctly in XP, Vista and Windows 7.
Posted by:
whenriksen
13 years ago
To clarify, Win7 shows the AppData environment variable to be "C:\Users\whenriksen\AppData\Roaming", which is correct. Property AppDataFolder does not exist.
If I use AppData in the directory table, I receive an error indicating it is not a valid property. According to Microsoft, AppDataFolder is supposed to point to "C:\Users\whenriksen\AppData\Roaming", but is only point to "C:". When I build my directory string to add additional folders, e.g. AppDataFolder\Open Text\DM, the file is delivered to C:\Open Text\DM instead of the roaming folder.
Has anyone used AppDataFolder in the directory table to point to the \%userprofile\AppData\Roaming folder?
If I use AppData in the directory table, I receive an error indicating it is not a valid property. According to Microsoft, AppDataFolder is supposed to point to "C:\Users\whenriksen\AppData\Roaming", but is only point to "C:". When I build my directory string to add additional folders, e.g. AppDataFolder\Open Text\DM, the file is delivered to C:\Open Text\DM instead of the roaming folder.
Has anyone used AppDataFolder in the directory table to point to the \%userprofile\AppData\Roaming folder?
Posted by:
jmaclaurin
13 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.