Run .NET Installer Class usage

Got a problem you cannot solve? Try here.
Post Reply
Frank
Posts: 59
Joined: Tue Oct 27, 2009 9:16 am
Location: Netherland

Run .NET Installer Class usage

Post by Frank »

To install one of our products by hand you must do a:
installutil /account="user" /user=%1 /password=%2 ".\WindowsServices\Host.exe"

I'm trying to recreate this step in my IA script. If I understand correctly I can use a Run .NET Installer Class in my script.
What I don't understand is how I can pass the arguments (/account="user" /user=%1 /password=%2) with this call.

I understand that I could do a Run Program to handle the situation above, but I was just wondering if it could be done different?
The reason is that I'd like the installer to remove the Host.exe on uninstall. And if I use Run Program then the installer doesn't 'know' it installed this file.
Can I use the Install Service perhaps?

Next to that I see problem reports on the usage of Run .NET Installer Class in IA9 (I'm running Build Moya.sp1.070409).
Are there any known problem with my version (in other words: use Run Program and be done with it? :) )
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Run .NET Installer Class usage

Post by mills »

I would go with Install Service.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Frank
Posts: 59
Joined: Tue Oct 27, 2009 9:16 am
Location: Netherland

Re: Run .NET Installer Class usage

Post by Frank »

Could you elaborate? I'm trying to find out what Run .NET Installer Class does compared to Install Service?
I can't get Run .NET Installer Class to work (the service isn't appearing in the Services console), but Install Service does work.
So from that point of view it's obvious to see that I should use Install Service, but I'm the curious type. I can't find differences in either the manual or via this forum.

Thank you!
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Run .NET Installer Class usage

Post by mills »

In short, Run .NET Installer allows you to install and uninstall server resources (assemblies).

Install Service installs a service (basically by calling installutil.exe)
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Frank
Posts: 59
Joined: Tue Oct 27, 2009 9:16 am
Location: Netherland

Re: Run .NET Installer Class usage

Post by Frank »

Ah! So Run .NET Installer Class and Install Service are different altogether.
Alright! I'll use Install Service.
Thanks for your effort!
Post Reply