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