Groups | Blog | Home
all groups > visual studio .net setup > march 2004 >

visual studio .net setup : Passing data from customer information to a custom action



Hartmut Schroth
3/18/2004 7:16:09 AM
Hi
how can I pass the data entered in the customer information user interface dialog box to a custom action that should be started automatically after installation. The method described in the 'Walkthrough: Passing Data to a Custom Action' seems not be applicable (No equivalent to 'In the Properties window, select the CustomActionData property and type /ServerName=[EDITA1]. '
Thanks in advanc
Hartmu
Phil Wilson
3/18/2004 3:57:19 PM
It sounds like this "after installation" is the key part of this, and if it
really is "after", then it's not really a custom action. You can use APIs in
your app to get that data - see MsiGetProductInfo passing RegCompany and
RegOwner strings. Or if you want a home-grown solution, just create Registry
entry that stores [COMPANYNAME] and [USERNAME] and get them from there.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]
dialog box to a custom action that should be started automatically after
installation. The method described in the 'Walkthrough: Passing Data to a Custom
Action' seems not be applicable (No equivalent to 'In the Properties window,
select the CustomActionData property and type /ServerName=[EDITA1]. ' )
[quoted text, click to view]

v-felwa NO[at]SPAM online.microsoft.com
3/19/2004 7:19:23 AM
Hi Hartmut,

Thanks for posting. Phil is right that [COMPANYNAME] and [USERNAME] shall
work. You may find more properties at the following site:

http://msdn.microsoft.com/library/?url=/library/en-us/msi/setup/property_ref
erence.asp?frame=true

I hope the information is useful to you.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button