Driver Scanner 2012 - Free Scan Now
Results 1 to 7 of 7

Thread: Visual Studio Deployment Project - AppData issue

  1. #1
    MarketMole Guest

    Default Visual Studio Deployment Project - AppData issue

    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!

  2. Sponsored Links



  3. #2
    Patrick A Guest

    Default Re: Visual Studio Deployment Project - AppData issue

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

  4. #3
    Family Tree Mike Guest

    Default RE: Visual Studio Deployment Project - AppData issue



    "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

  5. #4
    MarketMole Guest

    Default Re: Visual Studio Deployment Project - AppData issue

    On May 18, 8:54*am, 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 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.

  6. #5
    Wilson, Phil Guest

    Default Re: Visual Studio Deployment Project - AppData issue

    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!



  7. #6
    MarketMole Guest

    Default Re: Visual Studio Deployment Project - AppData issue

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



  8. #7
    MarketMole Guest

    Default Re: Visual Studio Deployment Project - AppData issue

    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

Similar Threads

  1. Visual Studio do make Deployment on Windows 7
    By linuxfedora in forum microsoft.public.dotnet.general
    Replies: 0
    Last Post: 7th April 2010, 11:59
  2. Re: Empty Project in Visual Studio 2008
    By Tieske in forum microsoft.public.dotnet.general
    Replies: 0
    Last Post: 31st December 2009, 00:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Recommended Download



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47