all groups > dotnet setup > september 2006 >
You're in the

dotnet setup

group:

How do I add a directory in VS2003 setup project


How do I add a directory in VS2003 setup project Marcus
9/11/2006 8:09:24 AM
dotnet setup:
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
Re: How do I add a directory in VS2003 setup project Phil Wilson
9/12/2006 3:37:02 PM
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.
--
Phil Wilson
[Microsoft MVP Windows Installer]

[quoted text, click to view]

Re: How do I add a directory in VS2003 setup project Vadym Stetsyak
9/12/2006 4:51:13 PM
SGVsbG8sIE1hcmN1cyENCg0KIE0+IEkgcmlnaHRjbGljayB0aGUgbGVmdCB3aW5kb3cgaW4gZmls
ZSBzeXN0ZW0gZWRpdG9yIGluIFZTMjAwMyBzZXR1cA0KIE0+IHByb2plY3QgdG8gYWRkIGEgc3Bl
Y2lhbCBmb2xkZXIgYnV0IEkgY2FuIG5vdCBmaW5kIG9uZSB0aGF0IHNlZW1zIHRvIGJlDQogTT4g
d2hhdCBJIHdhbnQuDQoNCiBNPiBJZiBJIGNhbiBub3QgZG8gaXQgaW4gdGhlIHNldHVwIHByb2pl
Y3QgSSBoYXZlIHRvIGNyZWF0ZSB0aGUgZm9sZGVyIGluDQogTT4gbXkgYXBwIGR1cmluZyBhcHBs
aWNhdGlvbiBydW50aW1lIHVzaW5nIEFMTFVTRVJTUFJPRklMRSBzb21laG93LiBJIGRvbnQNCiBN
PiB3YW50IHRvIGRvIHRoYXQgdGhvdWdoLg0KDQp5b3UgbmVlZCAgQ29tbW9uQXBwRGF0YUZvbGRl
ciBwcm9wZXJ0eSBmb3IgdGhhdC4gSSdtIGFmcmFpZCB0aGF0IGl0IGNhbm5vdCBiZSBkb25lIA0K
dmlhIHNldHVwIHByb2plY3QuIA0KDQpXaGF0IHlvdSBjYW4gZG8gaXMsIGFkZCBjdXN0b20gZGly
ZWN0b3J5IGluIHRoZSBzZXR1cCBwcm9qZWN0LiBUaGVuIHVzaW5nDQpPcmNhIHRvb2sgb3BlbiBt
c2ksIGZpbmQgdGhhdCBjdXN0b20gZGlyZWN0b3J5IGluIHRoZSAiRGlyZWN0b3J5IiB0YWJsZSBh
bmQgDQpjaGFuZ2UgaXRzIG5hbWUgaW50byAiQ29tbW9uQXBwRGF0YUZvbGRlciINCg0KKCBodHRw
Oi8vbXNkbi5taWNyb3NvZnQuY29tL2xpYnJhcnkvZGVmYXVsdC5hc3A/dXJsPS9saWJyYXJ5L2Vu
LXVzL21zaS9zZXR1cC9zeXN0ZW1fZm9sZGVyX3Byb3BlcnRpZXMuYXNwICkNCg0KLS0NClJlZ2Fy
ZHMsIFZhZHltIFN0ZXRzeWFrDQp3d3c6IGh0dHA6Ly92YWRteXN0LmJsb2dzcG90LmNvbQ==
Re: How do I add a directory in VS2003 setup project Wolfgang Hauer
9/12/2006 5:46:17 PM
Hi!

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

wolfgang

"Vadym Stetsyak" <vadym_s@ukr.net> schrieb im Newsbeitrag
news:OqBZYIn1GHA.3644@TK2MSFTNGP03.phx.gbl...
[quoted text, click to view]

Re: How do I add a directory in VS2003 setup project Marcus
9/12/2006 10:22:01 PM
Phil Wilson skrev:

[quoted text, click to view]

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).
AddThis Social Bookmark Button