all groups > visual studio .net setup > april 2005 >
You're in the

visual studio .net setup

group:

Setting DWORD registry entries in setup.


Setting DWORD registry entries in setup. TonyC
4/22/2005 1:04:04 PM
visual studio .net setup:
I have a VS.NET 2003 setup project. This collects items from the user usinhg
the custom TextBoxes, and sets up variables to hold the answers. I need to
set a registry DWORD value from one of these. Is there any way to convert
the data from string to number to achieve this, or do I have to write a
custom action (again!). The documentation appears a bit trite in this
respect.

Also, how do I install files into the 'All Users' area. The only options
appear to be for the users. As 'Limited' users will have to run the program
and they cannot install it seems to be a bit of an ommission, and at setup
time I do not know which or how many users may want to use it.

Thanks

Tony
--
Re: Setting DWORD registry entries in setup. Phil Wilson
4/23/2005 10:12:08 AM
Visual Studio doesn't behave well in this area - it apparently won't let you
put a string in there that actually works. If I edit the raw MSI file
Registry table Value entry with {#[VersionNT]} it puts the correct value in
the registry in REG_DWORD format. So you could use Orca or a post-build step
to do something like that, using your own property instead of VersionNT.

The CommonAppDataFolder property might be what you're looking for.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button