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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 03/27/2006 by: jonasm
Blue Belt

Please log in to comment
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.
Answered 03/27/2006 by: OldWiseMan
Senior Yellow Belt

Please log in to comment
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
Answered 03/27/2006 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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?
Answered 03/27/2006 by: OldWiseMan
Senior Yellow Belt

Please log in to comment
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)
Answered 03/27/2006 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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
Answered 03/27/2006 by: jonasm
Blue Belt

Please log in to comment
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?
Answered 03/28/2006 by: OldWiseMan
Senior Yellow Belt

Please log in to comment
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.
Answered 03/29/2006 by: OldWiseMan
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity