Page 1 of 1

Run .NET Installer Class usage

Posted: Mon Oct 18, 2010 9:13 am
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? :) )

Re: Run .NET Installer Class usage

Posted: Mon Oct 18, 2010 2:24 pm
by mills
I would go with Install Service.

Re: Run .NET Installer Class usage

Posted: Tue Oct 19, 2010 12:09 am
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!

Re: Run .NET Installer Class usage

Posted: Tue Oct 19, 2010 9:51 pm
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)

Re: Run .NET Installer Class usage

Posted: Wed Oct 20, 2010 12:33 am
by Frank
Ah! So Run .NET Installer Class and Install Service are different altogether.
Alright! I'll use Install Service.
Thanks for your effort!