Phil Wilson
7/13/2007 12:17:00 AM
Inline.....
--
Phil Wilson
[MVP Windows Installer]
"JerryWEC" <JerryWEC@newsgroups.nospam> wrote in message
news:eNokZpNxHHA.4076@TK2MSFTNGP06.phx.gbl...
> Hi all! Package and Deployment questions using the setup project (VB.net
> 2005)...
>
> Q1] I'm wanting to know if there is an easy way to call an .exe with
> switches with out having to use a custom action? I want to call regasm.exe
> with a /tlb: switch. I know this should work with a custom action and a
> installer class but It seems like there should be a way to invoke an
> executable after the installation.
[[ You don't need to. Use tlbexp to create the typelib on your dev system,
add the tlb file to your setup project and mark the Register property (I
think the project will give it the right registration property value
automatically). ]]
> Q2] If you create a custom action and need to add a installer class to add
> custom code for the install and uninstall overidable mehods, then can you
> add this class library to any class library in your solution or can you
> create new class library and add the installer to that class library?
[[ If you're just running your own managed code and not using existing
installer classes (like ServiceInstallers) there's no advantage to Installer
classes, and lots of gotchas. Just pass the parameters and property values
to a command line managed code executable. ]]
Q3] I really don't want to add this installer code to my existing classes.
> I'm also thinking I'd like to start a deploy class library for the
> customized but standard things I need to do like registering object for
> COM, invoking .exe, running .bat files, etc... Any suggestions on last
> comment?
[[ COM registration can be done for you by the setup project - that Register
property again - and see Q3 response. ]]
Q4] Related to Q1, how do you run a .bat file without using a custom action
> in your setup project? Or do you need to do a custom action?
[[You need a custom action. It depends what the bat file does though -
everything specific you've asked about so far can be done with setup project
features. ]]
>
> TIA!!! Jerry
>