Visual Studio Deployment Project - AppData issue

  • Follow


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!
0
Reply MarketMole 5/18/2010 12:08:54 AM

What code are you using to create the folders and files, and how are
you "determining" the user's [username]/AppData/Roaming/[productname]
location?
0
Reply Patrick 5/18/2010 3:52:25 PM


"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
0
Reply Utf 5/18/2010 3:54:01 PM

On May 18, 8:54=A0am, Family Tree Mike
<FamilyTreeM...@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 you=
r
> 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.
0
Reply MarketMole 5/18/2010 4:49:36 PM

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@gmail.com> wrote in message 
news:e6e64d27-33e1-43b2-9dc5-6705e648ba82@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! 

0
Reply Wilson 5/18/2010 5:25:37 PM

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=A0am, "Wilson, Phil" <ph...@wonderware.nospam.com>
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" <davecl...@gmail.com> wrote in message
>
> news:e6e64d27-33e1-43b2-9dc5-6705e648ba82@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!

0
Reply MarketMole 5/18/2010 5:53:42 PM

Apologies.

1) On first run the APPLICATION was creating the directory tree under /
APPDATA/[productname] NOT some magical win7 process.
2) Because the application was doing this I thought the installation
was supposed to create a location for each user /APPDATA/
[programname]. And therefore I was placing my entire tree at the
Users's Application Data/ location which of course, upon install,
placed the tree in /AppData/Roaming/ just fine.
3) I had assumed (ass out of me really) that because these directories
where showing up that I should not place my tree in a parent folder.
4) Once I DID place my tree in a parent folder inside the setup's
User's Application Data Folder/ everything worked swimmingly.

- File System On Target Machine
 - User's Application Data Folder
  -  -  ProductNameHere
  -  -  -  product's folder tree here
  -  -  -  [more ...]

So, apologies all-round. consider my boot booted.
MM
0
Reply MarketMole 5/19/2010 5:49:57 PM

6 Replies
816 Views

(page loaded in 0.06 seconds)

6/10/2014 6:06:39 AM


Reply: