Copying Files to Default User Profile Folder
Hi all...
Is there a clean method for placing files in the Default User profile folder with Wise?
Specifically I need to copy two files to \Default User\Application Data\<App Name>\.
Thanks
Is there a clean method for placing files in the Default User profile folder with Wise?
Specifically I need to copy two files to \Default User\Application Data\<App Name>\.
Thanks
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
jonasm
18 years ago
Posted by:
OldWiseMan
18 years ago
Good question.
Because the developers of this application have included a configuration utility that updates an XML file in the Default User profile, so we would want new users to receive any changes made to this file after the installation, rather than the original version from the MSI.
Not ideal at all, but that's the way they have coded it.
Because the developers of this application have included a configuration utility that updates an XML file in the Default User profile, so we would want new users to receive any changes made to this file after the installation, rather than the original version from the MSI.
Not ideal at all, but that's the way they have coded it.
Posted by:
timmsie
18 years ago
Posted by:
OldWiseMan
18 years ago
Posted by:
timmsie
18 years ago
Posted by:
jonasm
18 years ago
I Understand your question, but I don't really see any reason for having the new users into the new XML while the old users has the old XML.
If I really needs to use the Default User, I would have used the [WindowsVolume] and created a subfolder named Documents and settings and so on in the MSI-project.
/Jonas
If I really needs to use the Default User, I would have used the [WindowsVolume] and created a subfolder named Documents and settings and so on in the MSI-project.
/Jonas
Posted by:
OldWiseMan
18 years ago
ORIGINAL: jonasm
I Understand your question, but I don't really see any reason for having the new users into the new XML while the old users has the old XML.
If I really needs to use the Default User, I would have used the [WindowsVolume] and created a subfolder named Documents and settings and so on in the MSI-project.
/Jonas
The old users will have their config files updated by the application based on the time/date stamp on the XMLs in the Default User profile. Call it bad coding, but I'm just the packager. [8D]
The only problem with that solution is that Documents and Settings will not necessarily reside on the Windows volume, right?
Posted by:
OldWiseMan
18 years ago
For future reference I found a solution, albeit not a bulletproof one.
1. Created a folder named "Default User" in the root of my install.
2. Used the System Search page in Wise to check for the existance of ntuser.dat under \Documents and Settings\All Users\ on both C: and D: drives.
3. Used a Set Directory custom action before InstallInitialize to redirect my Default User folder accordingly, by checking the properties set in step 2.
Of course this would all probably go up in flames in a Citrix environment for example. Oh well.
1. Created a folder named "Default User" in the root of my install.
2. Used the System Search page in Wise to check for the existance of ntuser.dat under \Documents and Settings\All Users\ on both C: and D: drives.
3. Used a Set Directory custom action before InstallInitialize to redirect my Default User folder accordingly, by checking the properties set in step 2.
Of course this would all probably go up in flames in a Citrix environment for example. Oh well.
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.