Hi James.

Thanks. I have a few more questions. I would like to create some dialogs,
how do you normally create these? With orca, VS.NET, nant xml or other
software? I guess there exists no Visio -> MSI dialog converter. Basicly
I need to retrieve information from the user and write some .config files.
I use MySQL for the database and would like for the installer to query
MySQL for existing databases and allow the user to select one of these
or create a new one. This means I need to fill a drop-down box with the
available databases from my custom action. How do I do this?

I know I can get the parameters in the custom action using:

                public override void Install(System.Collections.IDictionary stateSaver)
                {
                        base.Install(stateSaver);
                        string ParamA = this.Context.Parameters["ParamA"];
                }

but not how to manipulate GUI elements from the custom action.

Casper 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of James Geurts
> Sent: 10. april 2004 01:41
> To: 'Casper Hornstrup'; [EMAIL PROTECTED]
> Subject: RE: [NAntC-Dev] Custom action registration
> 
> Hi Casper, 
> 
> You have a couple options... 
> 
> 1) You can add the file to the binary table and call it from there:
> 
> <binaries>
>   <binary name="MyAssemblyDll" 
> value="${support.dir}\MyAssembly.dll" /> </binaries>
> 
> <!-- Type determined by:
>      1 - Key to Binary Table w/ target equal to DLL entry point
>     64 - Synchronous execution.  Fails if exit code is not 0 
> --> <customactions>
>   <customaction action="FILECA_MyAssembly" type="65" 
> source="MyAssemblyDll"
> target="MyEntryPoint" />      
> </customactions>
> 
> <sequences>
>   <sequence type="installexecute" action="FILECA_MyAssembly" 
> value="750" /> </sequence>
> 
> 
> 
> 2) You could manually specify the file id and call the custom 
> action from the file table
> 
> <component name="C__MyComponent" 
> id="{53EF2CD5-B44D-491c-9764-AFC405465CCE}"
> attr="2" directory="D__MYDIR">
>   <key file="SomeFile.xml" />
>   <fileset basedir="${support.dir}">
>     <includes name="*.*" />
>   </fileset>
>   <forceid file="MyAssembly.dll" 
> id="_E47B750515A840B89DCFB3926E0F1739" />
> </component>                  
> 
> <!-- Type determined by:
>     17 - Key to File Table w/ target equal to DLL entry point
>     64 - Synchronous execution.  Fails if exit code is not 0 
> --> <customactions>
>   <customaction action="FILECA_MyAssembly" type="81"
> source="_E47B750515A840B89DCFB3926E0F1739" target="MyEntryPoint"
> checkinterop="true" />        
> </customactions>
> 
> <sequences>
>   <sequence type="installexecute" action="FILECA_MyAssembly" 
> value="750" /> </sequence>
> 
> 
> There might be other ways to call the assembly, but these 
> should work.  Hope that helps
> 
> Jim
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Casper Hornstrup
> Sent: Friday, April 09, 2004 4:03 PM
> To: [EMAIL PROTECTED]
> Subject: [NAntC-Dev] Custom action registration
> 
> I try to run a custom action (implemented in a .NET assembly) 
> during installation of an MSI file. I have however run into a 
> problem which is that I do not know the GUID assigned to the 
> assembly in the File table. How can I get this GUID (File 
> column in the File table) so I can reference it in the Source 
> column in the CustomAction table? I am new to MSI and I may 
> be doing it wrong. What are my options?
> 
> Casper
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials Free 
> Linux tutorial presented by Daniel Robbins, President and CEO 
> of GenToo technologies. Learn everything from fundamentals to 
> system 
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> NAntContrib-Developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials Free 
> Linux tutorial presented by Daniel Robbins, President and CEO 
> of GenToo technologies. Learn everything from fundamentals to 
> system 
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> NAntContrib-Developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to