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!
0
MarketMole
5/18/2010 12:08:54 AM
dotnet.general 306 articles. 0 followers. Follow

6 Replies
1158 Views

Similar Articles

[PageSpeed] 10

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
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
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
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
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
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
MarketMole
5/19/2010 5:49:57 PM
Reply:

Similar Artilces:

Email router rule deployment wizzard
Hello, Can someone tell me if there is a way of changing the rules that the rule deployment wizzard of the CRM Email router imports into Exchange?? I can see the rule in my Outlook but when I change the rule nothing of my changes work. Can someone help? Eric ------=_NextPart_0001_6DB8A9B1 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Eric, This is Mike responding. Thank you for the post. First, is there some kind of Group Policy that is preventing you from changing the rule? The Rule Deployment Wizard deploys a rule to the users mailbox that forwards all email to t...

Print Issue
I've got some reports that should print preview and print in legal size. When I install the dbase on other users pc and they try to print preview these reports it shows in letter size. I can change it when I go to page setup. On my pc it works fine. Is this a printer drive issue or something in Access 2003? -- Todd ...

Microsoft Office Project Standard 2007
I am working on a graduate college project and I need to complete a RFP, will I need to purchase the Office Project Standard 2007 edition or the MS Office Project Professional Edition? I am not clear on the comparison chart at all! It does not really spell this out. This is a multi-part message in MIME format. ------=_NextPart_000_0014_01CAE913.CC96DD50 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi carug112, Welcome to this Microsoft Project newsgroup :) I don't know what an RFP is. However, Project Stan...

Void bill in project accounting
Dear All, i did the misc log entry. i create the bill in project accounting & print through biller document.I want to void this document & billing entry ,Reverse the misc log entry. Hi-- You will actually need to do two things: 1. Reverse the cost (misc log) 2. Reverse the invoice (billing) To do this, first go to Transactions>>Project>>Misc Log. Enter a Referenced Misc Log, and select the original ML as the referenced document. Then enter the line items from the original Misc Log (use the lookup) only with a negative quantity (to reverse out the cost). Post the ...

SQL Performance Issue whe HQ and Navision reside on same server
We are experiencing problems with one of our major clients when they run 401 worksheets. They have a server with an HQ database that has 10 stores. Residing on the same server is a substantial Navision database. The HQ server program is running on a separate PC. When an HQ Client connects and a 401 Data Upload runs, the SQL server program appears to ‘lock up’ and prevents any access to any of the SQL databases, causing problems with the Navision users. Our query is should this type of event occur? What is actually happening within the SQL server when a 401 worksheet is being proces...

Issues with 12.1.2 with tables and page breaks.
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel I work for a small company that is primarily mac based. I noticed in this latest patch that our documents are having major issues after this patch. For one the text in tables is missing totally or partially. It is there though. The solution I found is to select the table and do a word wrap in the table properties but we have thousands of documents like this. Also I have been getting reports and also noticed that it is inserting extra page breaks in documents. Not sure what is going on with this new patch but it has made...

Using Visual C++ 6.0 MFC Application
01/19/2004 Using a single document or a dialog application, I am able to use my own variables that are declared in the same source file, however, if I try to declare a global variable in a header file or a source file included before the code I am using, I get the error "Undeclared Identifier". Example in Old C: "First.h" int i; "Main.cpp" #include "First.h" main() { i=5; printf("%d",i); } When I declare a variable in a header file, in Class View - Globals, my variable does show up, b...

subjest issues
I 've bought my new notebook in December. And it was setup office2007 before. Now i need to enter the "Product Key" to setup before i use it, i 've been enter it for many time , but it said that my password is incorrect ! *I am sure that it is genuine. Did your computer come with a limited trial of Office 2007? When the trial period runs out you have to buy a license to continue using the program. Daddy "wendy" <wendy@discussions.microsoft.com> wrote in message news:E684AA02-226F-4BD5-80E7-6B39EA1628A2@microsoft.com... >I 've bought ...

Deploying SP2 to MS Exchange Server 2003
I'm curious as to if the Release notes for "Microsoft Exchanger server 2003 Service Pack 2 Release Notes" 906671 applies to SBS 2003 Premium Server SP1 running Exchange 2003 SP1? On Fri, 23 Dec 2005 08:51:05 -0800, "AllenM" <allen.miyake@gmail.com> wrote: >I'm curious as to if the Release notes for "Microsoft Exchanger server 2003 >Service Pack 2 Release Notes" 906671 applies to SBS 2003 Premium Server SP1 >running Exchange 2003 SP1? > Sp2 is supported on SBS 2003, so I would say yes Thanks for your opinion Andy. given that c...

very basic MS access 2007 (button click no read issue)
I added 2 text fields and a button to a form in MS access 2007. and i went to the code builder and tried to add values to the text fields . ex: textBox1.text = "name" i coded this to the button click event.. but some times after i get an error.. the button click property never works... so i have to create a new form and redo it. can some one tell me why this is hapenning , and tell me a way to prevent this.. In Access, you can only use the text property if the control has the focus. Instead, try: textbox1 = "Name" or textbox1.Value = "...

Standard Visual Basic vs Visual Basic for Applications
I've recently purchased Front Page and understand that I can code with Visual Basic as part of this software package. 1. What does Front Page contain: Standard Visual Basic or VBA? 2. Do either or both work with Visual Studio? 3. Is Visio different from Visual Studio? -- Deb Front Page and Visio are both Microsoft Office applications that contain VBA (Visual Basic for Applications). These programs are productivity applications first and programming platforms second. Visual Studio is a pure programming application. (All it does is let you write other programs.) Older versions of ...

How to embed MS SQL Server Installation using VB.NET Setup project.
I have tried the trial version of Microsoft Dynamic POS and it is great specially when I saw that when you install the software, SQL Server installation is included with the setup program. I am wondering how to do the same when I am going to create an installation file of my program. I want the same functionality like embedding also the database so my user will not have to worry about attaching the database to the SQL Server using a management tool. Thank you very much for any info. ...

Job Cost or Project Acctg for SBM
I'm looking for a Job Cost or Project Acctg solution for Small Business Manager. Does anyone know of such a thing? Leslie Can Small Business Manager use Multi-Dimensioinal Analysis Codes in the GL? Can't recall if that feature has been removed from the regular Great Plains GL for SBM. If it does use that feature, then it's an easy and simple cost accounting solution. "Leslie Vail" wrote: > I'm looking for a Job Cost or Project Acctg solution for Small Business > Manager. Does anyone know of such a thing? > > Leslie Nope, no MDA in SBM. :...

CString Portability Issue
I have a relatively stable legacy application that compiles under VC6, and makes it through heap tests using gflags and Application Verifier, with no problems entering or closing the program. When I compile it under VC2008 it runs fine. But when closing the program it faults out as a CString member attempts to free memory in CStringData::Release. Application Verifier identifies this as a corrupted heap block. (Heap problems are the worst!). Has anyone had a similar experience? Never. CString is one of the most tested classes there is. Might I suggested you are overwriting memory s...

Offline Address Book Sync Issue
I upgraded one of my users from Outlook XP to Outlook 2003 and the following error started appearing in their Sync Issues folder: 16:29:14 Synchronizer Version 11.0.6555 16:29:14 Synchronizing Mailbox 'Generic User' 16:29:14 Synchronizing Hierarchy 16:29:14 Synchronizing server changes in folder 'Calendar' 16:29:14 Downloading from server 'mailserver.domain.local' 16:29:15 Synchronizing server changes in folder 'Drafts' 16:29:15 Downloading from server 'mailserver.domain.local' 16:29:15 Synchronizing server changes in folder 'Inbox' 16:29:15 Do...

I Visual Basic Error "File Not Found" when Excel opens
Good afternoon. I am using XP Pro at work and My computer just started doing this. when I open Excel, I get a message pop up that says in title "Visual Basic Error" and in body of error window is "File Not Found". If I click on help, says something about error 53 but when I try to look that up on Microsoft's website, can't find what seems to apply to my issue. And now when I go into my personal.xls to view my macros, I can get in, but if I try to save anything, I get a window pop up saying Excel must be shut down, and then a window pops up asking me if I want...

Visual C++ AND .Net
What would be the best package for me to purchase if I want to move from VC++ 6.0 and VB 6.0 to .Net? I think it is Visual Studio .Net (around $800.00). Is this correct? I just need a little direction since I have just been given the go ahead to purchase these items. Any information on these products - from someone who has used them - would be helpful. Thank you Ken >-----Original Message----- >What would be the best package for me to purchase if I want to move from >VC++ 6.0 and VB 6.0 to .Net? I think it is Visual Studio .Net (around >$800.00). Is this correct? I just nee...

Unable to debug clr procs on studio pro
When I attempt to debug aclr proc from a windows 2008 box that has studio 2008 pro I am able to deploy the proc. But I receive first a warning then an exception WARNING: Unable to determine if the windows firewall is blocking remote debugging. There are no more endpoints available from the endpoint mapper. T-SQL execution ended without debugging. You may not have sufficient permissions to debug. Click Help for more information. I'm using Integrated auth in sql connections and am a domain admin on both of the servers. I see nothing in the logs on the sql box that is h...

Looking for Visual C++ programmer with MS SQL Server 2005 to work off-site on small project
Looking for Visual C++ programmer with MS SQL Server 2005 to work off-site on small project. Please send me an email to: larryTAKEOUT@seldin.net Lawrence M. Seldin, CMC, CPC Contributing writer for FUTURES Magazine Author of RECRUITSOURCE PEOPLESOFT EXAM and RECRUITSOURCE SAP/R3 EXAM Author of POWER TIPS FOR THE APPLE NEWTON and INTRODUCTION TO CSP NOTE: To send me an email, remove TAKEOUT from my email address: larryTAKEOUT@seldin.net NOTE: My web home page: www.seldin.net ...

Excel projects
Several years ago I took a couple of office courses,and enjoyed Excel very much. Since then I've had nothing to use it for. The first course gave a few practice projects that were several pages long and interesting. Does anyone know were one might obtain such material. David McRitchie has a list of tutorials on his web site: http://www.mvps.org/dmcritchie/excel/excel.htm#tutorials Steve wrote: > Several years ago I took a couple of office courses,and > enjoyed Excel very much. Since then I've had nothing to > use it for. The first course gave a few practice proje...

MS Project Web Access Workspace
We are using MS Project Web Access with Project 2007. Each project creates its own Workspace in MOSS2007. - How do I filter the Workspaces in PWA to show only those projects that are currently being worked on (AKA % Complete less than 100%)? - How do I find those projects that I would be filtering out (AKA Completed Projects) to go back and see their workspaces? - Lastly How can I easily move documents, discussions, etc from one Workspace to another? Thanks GregDC This is a multi-part message in MIME format. ------=_NextPart_000_0065_01CA66DD.94B7A7B0 Content-Typ...

Money.exe process
So, I checked out the FAQ's but I still have the Money.exe process issue where I have to Kill it to restart Money. Any other updates to fixing it? ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- Andrew I noticed through the use of a program called Active Ports that Money.exe will remain running long after the program is closed as long as there are still ports open that are associated with M...

Printing a treeview on a report (or anything visually similar)
The topic says it all. I need to be able to print a hierarchy on a report. There's no limit to the number of levels (tho no more than 10 at the moment). I'm looking to simulate the look of a treeview. I'm stumped and I don't know where to start. Any suggestions are very welcomed. -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-reports/200801/1 ...

Modifier and Visual Basic Editor dim ??
Hi, I have already set the security to access the customization tools (Modifier and Visual Basic Editor) for my user login. Why is both of this options still dim -- I can't click on these items (Modifier and Visual Basic Editor) because it is disabled. Please advise. Thanks a lot. it wont be available until you have purchased it - it is a separate module. You will get a new set of reg keys that will activate the choices. HS "Dolly" <Dolly@discussions.microsoft.com> wrote in message news:1553009B-B7A0-4D54-AAD1-ADD7F17D49A2@microsoft.com... > Hi, > > I have a...

Outlook printing issue
First time poster. I am running Microsoft Office 2007 and having issues with Outlook. I periodically get a window popping up asking me to re-enter my password. Thsi comes and goes every few weeks. My issue today is more serious. When I open an email and then go to print it, I get the print window and when I click on print my outlook says it expereinced an error, shuts down and then re-opnes on its own. My system gets updates automatically and I download then as they become available. I am running Vista Home Premium SP2. Any suggestion? Thanks in advance. -- Jame...