If I understand you correctly, I think you need some sort of bootstrapper to
accomplish this. If it's really this simple, then you could write a simple
console application that read the key and then called msiexec with the
TARGETDIR specified on the command line. If you could ensure that you
already had the .NET framework on the target machine then it's even simpler
(if not, then you probably want to build something with no pre-requisites).

call "%SystemRoot%\System32\msiexec.exe" /i "yourVSsetup.msi"
TARGETDIR=theRegistrySettingFromHKLM... /passive

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Petko
Sent: Friday, December 02, 2005 4:49 AM
To: [email protected]
Subject: [ADVANCED-DOTNET] Reading registry key and writing it into propety
during installation

Hello everyone.

I have a setup project in VS.NET 2003. I know how to write a registry
key during installation. But I already need the opposite. I need to read
a key from registry and write its value into some property. To be
concrete, I need to read a value from
HKLM\Software\[Manufacturer]\SomeKey and write it to property
[TARGETDIR], before setup wizard's dialog for installation directory is
displayed, so this value is predefined.

Thanks a lot for any help, Stano

===================================
This list is hosted by DevelopMentorŽ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŽ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to