Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

Deployment project - How to put a file into Common Application Data folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roy Chastain - 23 Sep 2005 19:21 GMT
I have a merge module that needs to place a file in to the Common Application Data folder
(C:\Documents and Settings\All Users\Application Data\)

I have created a folder in the File System Editor that I called CommonDataFolder.
The default location is blank and the Property is COMMONAPPDATAFOLDER.
I then put a folder under it called KMSYS Worldwide (our company name) and under that folder I placed my new file.

When I run the install, the KMSYS Worldwide folder and my new file are placed under the product install directory.

How do I get the KMSYS Worldwide directory and its contents under
C:\Documents and Settings\All Users\Application Data\

Thanks
-------------------------------------------
Roy Chastain
KMSYS Worldwide, Inc.
http://www.kmsys.com
"Gary Chang[MSFT]" - 24 Sep 2005 11:05 GMT
Hi Roy,

The general convention to do such task under VS.NET 2003 IDE is adding a
special folder in the "File System on Target Machine", but there is no such
"Common Application Data" special folder in the VS2003.

Another approach is adding a custom folder instead, then specify its
Property as COMMONAPPDATAFOLDER, but there is no corresponding
DefaultLocation available in VS.NET 2003. So you may need to modify the
compiled .msi package outside the VS2003 IDE. I suggest you post this
question to the microsoft.public.platformsdk.msi newsgroup, you may get
more specific help there.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Phil Wilson - 27 Sep 2005 03:04 GMT
This works for me:
Create a custom folder in VS. Make the DefaultLocation
[CommonAppDataFolder]MyCompany. These property names are case-sensitive, so
don't be sloppy! Make the Property CRAP.  I used that because it's
non-existent and therefore the DefaultLocation will be used.

Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

>I have a merge module that needs to place a file in to the Common
>Application Data folder
[quoted text clipped - 17 lines]
> KMSYS Worldwide, Inc.
> http://www.kmsys.com 
Roy Chastain - 28 Sep 2005 16:11 GMT
Phil,
I have tried to do what you said, but it is not working at all.  I get an error message telling me that it 'can not locate the
network location' .  Depending on what else I do, it sometimes puts the name of the 'company' folder at the end of the message or
it might put [COMMONAPPDATAFOLDER]

Perhaps I need a little more hand holding.

Thanks

>This works for me:
>Create a custom folder in VS. Make the DefaultLocation
>[CommonAppDataFolder]MyCompany. These property names are case-sensitive, so
>don't be sloppy! Make the Property CRAP.  I used that because it's
>non-existent and therefore the DefaultLocation will be used.
-------------------------------------------
Roy Chastain
KMSYS Worldwide, Inc.
http://www.kmsys.com
"Gary Chang[MSFT]" - 29 Sep 2005 03:54 GMT
Hi Roy,

I have also tried Phil's suggestion, that works for me:

For a default VS.NET's setup project, create a custom folder in the file
system. Then specify the "[CommonAppDataFolder]KMSYS" in the "Default
Location" entry of that custom folder's properties window, and specify
"COMMONAPPDATAFOLDER" in the below "Property" entry...

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Roy Chastain - 28 Sep 2005 17:46 GMT
Phil,
I have determined what I was doing wrong.  I had missed the [] when I tried the first time.
Thank you very much.

>This works for me:
>Create a custom folder in VS. Make the DefaultLocation
>[CommonAppDataFolder]MyCompany. These property names are case-sensitive, so
>don't be sloppy! Make the Property CRAP.  I used that because it's
>non-existent and therefore the DefaultLocation will be used.
-------------------------------------------
Roy Chastain
KMSYS Worldwide, Inc.
http://www.kmsys.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.