cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
venkatramu_c
Level 4

how to call a installer class from installer shield.

how to call a installer class from installer shield.
i want add any .dlls ?
please help me . thanks in advance.
Labels (1)
0 Kudos
(10) Replies
abrasha
Level 4

Hi,

What type of InstallShield project do you use?

If MSI:
- Create new component
- Add your assembly to "Files"
- Set ".NET Installer Class" property of the component to "Yes"

If InstallScript project:
- Create new component
- Add your assembly to "Files"
- Set ".NET Assembly" property of the component to "Local Assembly"
0 Kudos
venkatramu_c
Level 4

Thank u for u r replay.
i am using web Project.
please help me.


What type of InstallShield project do you use?

If MSI:
- Create new component
- Add your assembly to "Files"
- Set ".NET Installer Class" property of the component to "Yes"

If InstallScript project:
- Create new component
- Add your assembly to "Files"
- Set ".NET Assembly" property of the component to "Local Assembly"
0 Kudos
abrasha
Level 4

Web project = MSI
so:
- Create new component
- Add your assembly to "Files"
- Set ".NET Installer Class" property of the component to "Yes"

If this doesn't work - try execute manually InstallUtil.exe

Maybe this assembly has dependencies, so you should deploy all dependencies too.
0 Kudos
venkatramu_c
Level 4

if i set ".NET Installer Class" property of the component to "Yes".
when i am running the application i am getting Error like.
---------------------------
InstallShield DLL Custom Action
---------------------------
Unknown source '¦'.
---------------------------
OK
---------------------------.
what i have to do now?
0 Kudos
venkatramu_c
Level 4

if i set ".NET Installer Class" property of the component to "Yes"
when i am running the application i am attaching Error or Error like.
---------------------------
InstallShield DLL Custom Action
---------------------------
Unknown source '¦'.
---------------------------
OK
---------------------------
0 Kudos
abrasha
Level 4

Did you try InstallUtil.exe with this assembly?
0 Kudos
venkatramu_c
Level 4

i am not geting please explain properly.
0 Kudos
abrasha
Level 4

"Installer" class may be added to any .NET assembly :
open your project in Visual Studio -> add new item -> Installer class

This class may be executed during setup process (you actually want this) or manually using .NET Framework utility:

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe

So:
Does your assembly have Installer-class or not?
If yes - Did you try execute your Installer class using InstallUtil?
0 Kudos
venkatramu_c
Level 4

by using InstallUtil.exe it is working fine. but in installshield 2009
it is throwing Error When run application i am geting Error Like


---------------------------
InstallShield DLL Custom Action
---------------------------
Unknown source '¦'.
---------------------------
OK
---------------------------

please help me.
0 Kudos
abrasha
Level 4

You get error in:
"InstallShield DLL Custom Action"

Why do you think this is related to any Installer Class?
Anyway - a little example of Installer Class using is attached.
Installer Class constructor creates text file in root of disk c:.

It works.
0 Kudos