Visual Studio Deployment Project - AppData issue

M

MarketMole

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!
 

My Computer

P

Patrick A

What code are you using to create the folders and files, and how are
you "determining" the user's [username]/AppData/Roaming/[productname]
location?
 

My Computer

W

Wilson, Phil

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" <[email protected]ewsgroup> wrote in message
news:[email protected]

> 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!
 

My Computer

M

MarketMole

But folders ARE created automatically upon first use of the
application.

Put a tree of 20 empty folders in a "User's Application Data Folder"
which points to "AppDataFolder" ( %APPDATA% environment variable), and
when you install the app those folders are NOT created in your /
AppData/Roaming/[ProductName] directory. However, upon first run, this
tree is magically created right where it should be. If you log out and
log in as another user; run the app, this login too will get an
identical tree structure of the 20 folders.

I'm cool with this. Great. Except that the folders must be empty to
get automatically created. Those with subfolders or files will be
ignored.

These folders with files in them, oddly enough, got installed in /
AppData/Roaming/ proper upon original installation.

[VS08 on Win7 64]



On May 18, 10:25 am, "Wilson, Phil" <[email protected]>
wrote:

> 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" <[email protected]> wrote in message
>
> news:[email protected]
>
>
>

> > 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.
>
>

> > Leximize your word!
 

My Computer

Top