From: MarketMole on
Tribe,

I have a .NET setup and deployment project which writes to the Users's
Application Data Folder.

I've got about 20 folders that I want to place here.

Some of them contain files I want every user to have.

I can build the project, create the MSI and install the app just fine.

But when I got to run it, and the /AppData/Roaming/[productname]/
directory is created - NONE of the folders with files in them get
created.

In addition, I've noticed that in the /AppData/Roaming/ directory,
after installation my folders which contain files are installed here -
Surprise Surprise.

How can I get my whole tree of folders, some of which may contain
files, to get placed into the [username]/AppData/Roaming/[productname]
location?

Thanks for any help.

MM.

Leximize your word!
From: Patrick A on
What code are you using to create the folders and files, and how are
you "determining" the user's [username]/AppData/Roaming/[productname]
location?
From: Family Tree Mike on


"MarketMole" wrote:

> Tribe,
>
> I have a .NET setup and deployment project which writes to the Users's
> Application Data Folder.
>
> I've got about 20 folders that I want to place here.
>
> Some of them contain files I want every user to have.
>
> I can build the project, create the MSI and install the app just fine.
>
> But when I got to run it, and the /AppData/Roaming/[productname]/
> directory is created - NONE of the folders with files in them get
> created.
>
> In addition, I've noticed that in the /AppData/Roaming/ directory,
> after installation my folders which contain files are installed here -
> Surprise Surprise.
>
> How can I get my whole tree of folders, some of which may contain
> files, to get placed into the [username]/AppData/Roaming/[productname]
> location?
>
> Thanks for any help.
>
> MM.
>
> Leximize your word!
> .
>

Are the files you want to deploy showing up in the correct folders in your
deployment project's file view?

Mike
From: MarketMole on
On May 18, 8:54 am, Family Tree Mike
<FamilyTreeM...(a)discussions.microsoft.com> wrote:
> "MarketMole" wrote:
> > Tribe,
>
> > I have a .NET setup and deployment project which writes to the Users's
> > Application Data Folder.
>
> > I've got about 20 folders that I want to place here.
>
> > Some of them contain files I want every user to have.
>
> > I can build the project, create the MSI and install the app just fine.
>
> > But when I got to run it, and the /AppData/Roaming/[productname]/
> > directory is created - NONE of the folders with files in them get
> > created.
>
> > In addition, I've noticed that in the /AppData/Roaming/ directory,
> > after installation my folders which contain files are installed here -
> > Surprise Surprise.
>
> > How can I get my whole tree of folders, some of which may contain
> > files, to get placed into the [username]/AppData/Roaming/[productname]
> > location?
>
> > Thanks for any help.
>
> > MM.
>
> > Leximize your word!
> > .
>
> Are the files you want to deploy showing up in the correct folders in your
> deployment project's file view?
>
> Mike

Patrick, no code is used to create the [username]/AppData/Roaming/
[productname] structure. Simply the fact that I included a "User's
Application Data Folder" in the File System on TargetMachine tree, and
filled it with content which I expect to be placed in this location
upon either installation or first use (apparently).

Mike, the structure I've created in the deployment project's file view
is exactly as I would expect it to be deployed for a user. All is
visible as expected.

Are there restrictions as to what can be made part of a "first run"
AppData directory tree? It seems that every folder that contains files
is NOT copied during first run but IS copied into the root /AppData/
upon installation.

Perhaps using Visual Studio's deployment project setup is not the way
to go. I thought I read about one on SourceForge that MS will be
adopting.

Thanks for your replies.
From: Wilson, Phil on
Folders aren't created automatically - if you want 20 folders under User's
Application Data you have to create them and add the files to each
sub-directory. There's no "automatically create the directory structure I
have on my dev machine".

ProductName is case-sensitive, like all Windows Installer properties, so I
assume the spelling you're using is just an example and not exact syntax.

--
Phil Wilson


"MarketMole" <davecline(a)gmail.com> wrote in message
news:e6e64d27-33e1-43b2-9dc5-6705e648ba82(a)q36g2000prg.googlegroups.com...
> Tribe,
>
> I have a .NET setup and deployment project which writes to the Users's
> Application Data Folder.
>
> I've got about 20 folders that I want to place here.
>
> Some of them contain files I want every user to have.
>
> I can build the project, create the MSI and install the app just fine.
>
> But when I got to run it, and the /AppData/Roaming/[productname]/
> directory is created - NONE of the folders with files in them get
> created.
>
> In addition, I've noticed that in the /AppData/Roaming/ directory,
> after installation my folders which contain files are installed here -
> Surprise Surprise.
>
> How can I get my whole tree of folders, some of which may contain
> files, to get placed into the [username]/AppData/Roaming/[productname]
> location?
>
> Thanks for any help.
>
> MM.
>
> Leximize your word!