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 / .NET Framework / Setup / September 2006

Tip: Looking for answers? Try searching our database.

How do I add a directory in VS2003 setup project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcus - 11 Sep 2006 16:09 GMT
I want to add a folder to C:\Documents and Settings\All
Users\Application Data in my setup project.

I rightclick the left window in file system editor in VS2003 setup
project to add a special folder but I can not find one that seems to be
what I want.

If I can not do it in the setup project I have to create the folder in
my app during application runtime using ALLUSERSPROFILE somehow. I dont
want to do that though.

how do I do it in the setup project
Vadym Stetsyak - 12 Sep 2006 14:51 GMT
Hello, Marcus!

M> I rightclick the left window in file system editor in VS2003 setup
M> project to add a special folder but I can not find one that seems to be
M> what I want.

M> If I can not do it in the setup project I have to create the folder in
M> my app during application runtime using ALLUSERSPROFILE somehow. I dont
M> want to do that though.

you need  CommonAppDataFolder property for that. I'm afraid that it cannot be done
via setup project.

What you can do is, add custom directory in the setup project. Then using
Orca took open msi, find that custom directory in the "Directory" table and
change its name into "CommonAppDataFolder"

( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/syste
m_folder_properties.asp
 )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Wolfgang Hauer - 12 Sep 2006 16:46 GMT
Hi!

Add a custom installer to your app and use the aftercommit event.

wolfgang

> Hello, Marcus!
>
[quoted text clipped - 21 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
Phil Wilson - 12 Sep 2006 23:37 GMT
Visual Studio isn't very good at the folders thing. However if you
right-click on File System on Target Machine in the setup projects's IDE you
can add one of these folders as a destination choice: User's Application
Data or User's Personal Data. I think they would be a better choice because
when I look at Documents&Settings\All Users\Application Data ordinary users
can't write to it.
Signature

Phil Wilson
[Microsoft MVP Windows Installer]

> Hello, Marcus!
>
[quoted text clipped - 21 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
Marcus - 13 Sep 2006 06:22 GMT
Phil Wilson skrev:

> Visual Studio isn't very good at the folders thing. However if you
> right-click on File System on Target Machine in the setup projects's IDE you
[quoted text clipped - 3 lines]
> can't write to it.
> --

I did manage to create my folder in VS2003 setup project (at
Documents&Settings\All Users\Application Data).
But as you says Phil, limited users cant access the files in it (that
is if the files were created by an administrator). For test purpose I
had a limited user create a file in the folder and that file could be
accessed by both the limited creator and the administrator though.

I really need to have one file that everyone can read/write. Where
should a put such a file? Isn't there any globally accessible folder?
(Off scope a bit, but if someone knows the answer to this it would
really make my day).

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.