all groups > dotnet setup > january 2004 >
You're in the

dotnet setup

group:

Installutil - when using reference to another assembly


Installutil - when using reference to another assembly Gopi
1/27/2004 9:16:05 PM
dotnet setup: Hi,
I have created the MyInstaller.dll which inherits System.Configuration.Install.Installer and uses MyOtherAssemb.dll.
If I do "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe C:\myfolder\MyInstaller.dll" is not working until and unless I place the file "MyOtherAssemb.dll" explicitly in the folder where InstallUtil exists. Pls let me know that how can I call the Install method successfully without placing the MyOtherAssemb.dll file in the InstallUtil's folder. MyOtherAssemb.dll resides in the MyInstaller.dll's folder.

I have tired the different options of executing the MyInstaller.dll as shown below.

e.g. "InstallUtil.exe C:\myfolder\MyInstaller.dll" - from "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" folder.
e.g."C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe MyInstaller.dll" - from "C:\myfolder" folder.

But none of these worked out and throwing an exception "System.InvalidCaseException: Return argument has an invalid type.".
I have to palce MyOtherAssemb.dll file in the InstallUtil's folder in order this to work.

Or is it known bug of InsatllUtil.exe?

TIA
Re: Installutil - when using reference to another assembly Helene Day
1/28/2004 2:13:39 PM
To install a service add a Custom Actions for the Install, Rollback and
Uninstall events with the MyInstaller.dll.

Helene

[quoted text, click to view]
C:\myfolder\MyInstaller.dll" is not working until and unless I place the
file "MyOtherAssemb.dll" explicitly in the folder where InstallUtil exists.
Pls let me know that how can I call the Install method successfully without
placing the MyOtherAssemb.dll file in the InstallUtil's folder.
MyOtherAssemb.dll resides in the MyInstaller.dll's folder.
[quoted text, click to view]

Re: Installutil - when using reference to another assembly Gopi
1/28/2004 8:56:08 PM
I have added custom actions already for calling the installer events such as Install, Uninstall etc. But the issue i am facing is that any assembly referenced by the my installer needs to be present in the InstallUtil.exe's folder.
Re: Installutil - when using reference to another assembly Helene Day
1/29/2004 12:22:22 PM
Strange.....very strange. In our case the services and all the dependent
files are located in the same directory such as
[ProgramFilesFolder]\[Manufacturer]\[Product Name]\Services

Helene


[quoted text, click to view]
as Install, Uninstall etc. But the issue i am facing is that any assembly
referenced by the my installer needs to be present in the InstallUtil.exe's
folder.
[quoted text, click to view]

Re: Installutil - when using reference to another assembly Helene Day
2/2/2004 10:07:39 AM
Gopi,

I hope I am not too late to help you. This morning I ran into the same
problem as you.
To fix it I install my referenced assembly file in the system folder.

Helene

[quoted text, click to view]

Re: Installutil - when using reference to another assembly Phil Wilson
2/2/2004 10:54:20 AM
Why are you using installutil.exe? When Helene says that you can
install/uninstall a service with custom actions, she doesn't mean that you need
custom actions that run installutil.exe. Have you tried just adding custom
actions for install/uninstall/commit/rollback with direct calls to your DLL?
Perhaps you don't realize that installutil.exe has nothing to do with installing
services with these custom action calls into your DLL. --
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]
Install, Uninstall etc. But the issue i am facing is that any assembly
referenced by the my installer needs to be present in the InstallUtil.exe's
folder.
[quoted text, click to view]

AddThis Social Bookmark Button