/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (8)

Posted by: jonasm 18 years ago
Blue Belt
0
I am sorry for asking, but why would you need to place files in Default User?
Does not all users already have a created profile?

/Jonas
Posted by: OldWiseMan 18 years ago
Senior Yellow Belt
0
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.
Posted by: timmsie 18 years ago
Fourth Degree Brown Belt
0
There's a "built in" directory in the "directory table" - AppDataFolder

So you'd just need to create your folder and file off this
Posted by: OldWiseMan 18 years ago
Senior Yellow Belt
0
ORIGINAL: timmsie

There's a "built in" directory in the "directory table" - AppDataFolder

So you'd just need to create your folder and file off this


But wouldn't this just create my folder under All User\Application Data or <Current User>\Application Data?
Posted by: timmsie 18 years ago
Fourth Degree Brown Belt
0
<Current User>\Application Data folder. Which is what you want isn't it?

create a new wsi and test it. Create a component and set the installtion directory to "Windows\Profiles\Application Data" (which is AppDataFolder)
Posted by: jonasm 18 years ago
Blue Belt
0
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
Posted by: OldWiseMan 18 years ago
Senior Yellow Belt
0
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
Senior Yellow Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ