Re: How do I add a directory in VS2003 setup project

Tech-Archive recommends: Fix windows errors by optimizing your registry



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]

"Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
news:OqBZYIn1GHA.3644@xxxxxxxxxxxxxxxxxxxxxxx
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/system_folder_properties.asp )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com


.



Relevant Pages

  • Re: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
    ... As for the special directoriesand the Speical folders in setup project, there does exists difference between them. ... For the "AllUsersApplicationData " in VBNET SpecialDirectories class, it is a parituclar one implemented in VB.NET which doesn't quite conform to the CommonApplicationData Location. ... Is there a reason the AllUsersApplicationData differs from CommonAppDataFolder? ...
    (microsoft.public.vsnet.general)
  • Syncing Outlook data across 2 Windows OSes
    ... I imagine you'll have no trouble understanding the setup below, ... the profile files on a common 'files only' partition, ... Connector add-in from the default set of folders. ... if you ever choose to change the default account associated with the ...
    (microsoft.public.outlook.installation)
  • Re: Organising My Documents?
    ... If you're keeping your old setup, use TweakUI and change their paths. ... PC I now have temporary folders preserving the old PC structure, ... hundreds of shortcuts that use the existing structure, ... editors and burning programs have a fixation on 'My Videos', ...
    (microsoft.public.windowsxp.general)
  • Re: Adding non vb files to project
    ... If your files are relatively static, use the Cab Builder utility to ... You can then automate the extract.exe utility with a custom setup to deal ... > to ship a CD with about 14 folders and different files in each one, ... > folders, that way, based on how my install works, I could access the files ...
    (microsoft.public.vb.controls)
  • convert.exe with /cvtarea: parameter during XP installation from network share
    ... drive is an NTFS drive _before_ the GUI part of setup starts, ... folders are inherited from the root folder. ... has higher security permissions like in NT4 or W2K, ...
    (microsoft.public.windowsxp.general)