Groups | Blog | Home
all groups > visual studio .net setup > september 2007 >

visual studio .net setup : How to set a registry value that depends on the user input?


Sharon
9/4/2007 5:56:01 AM
In a VS.2005 setup program...

I need to enter a registry settings, but the value of this setting is not
fixed and depends on the user input during installation.

How can I set a registry value that depends on the user input during the
installation?


--
Thanks
Phil Wilson
9/4/2007 3:29:10 PM
I assume you're collecting the data into a property with an uppercase name,
like MYPROPERTY. In the registry view, just create an item with the value
[MYPROPERTY].
--
Phil Wilson
[MVP Windows Installer]

[quoted text, click to view]

Sharon
9/4/2007 11:50:03 PM
Thanks Phil,
I'm new to the Installer, it's my first setup project. I know the 'Install
Shield' better.
I don't know how to use the properties. Can you please elaborate on:
How to define it?
How to set it's value depending on the user input during install?
How to use the property value in my setup project?

--
Thanks
Sharon


[quoted text, click to view]
Phil Wilson
9/5/2007 12:18:42 PM
Well if you're using Visual Studio you've probably got a dialog like
Textboxes (A) that you added to the setup. This dialog behaves like
InstallShield and other tools because the internal mechanism is the same -
you associate the value of a control with a property. In the Textboxes
example the default property name for the first edit box is EDITA1.
--
Phil Wilson
[MVP Windows Installer]

[quoted text, click to view]

Paul Russell
9/9/2007 3:50:06 AM
Sharon

i realized you have been posting quite a few MSI related questions, have you
posted in microsoft.public.platformsdk.msi ?

vsnet.setup is about vs product install not isntallers built w/ VS


[quoted text, click to view]
Sharon
9/9/2007 6:44:01 AM
No, I haven't posted posted in microsoft.public.platformsdk.msi.

I'm note sure what do you mean when you say "vsnet.setup is about vs product
install not isntallers built w/ VS".

Can you please explain?

--
Thanks
Sharon


[quoted text, click to view]
Phil Wilson
9/12/2007 12:46:33 PM
I don't think anyone is very clear about where to post questions about VS
Setup&Deployment projects. There have been lots of postings here because it
seems like the only Usenet-related location that sounds close. The only
place where support for Setup&Deployment projects is specifically named is
in MSDN forums, Windows Forms section, ClickOnce and Setup&Deployment
projects, but some find web forums tedious.
If the question is more about the way that MSI setups behave, the
platformsdk.msi newsgroup is more relevant than a VS forum.
--
Phil Wilson
[MVP Windows Installer]


[quoted text, click to view]

Michel LAPLANE (MVP)
9/13/2007 12:00:00 AM
You must use an installshield installscript project type.
In the script you can use the AskText built in function and do whatever you
want in the registry.

Hope it can help

"Sharon" <SharonG@newsgroups.nospam> a écrit dans le message de
news:642A3DA9-6B3F-4373-9D20-2890BE04D293@microsoft.com...
[quoted text, click to view]
AddThis Social Bookmark Button