Hi All

I have an Activex Exe created in VB and I created an installer file using Windows Installer (Ver 2). Whn am installing on client PC am getting one error "Can not register file myAxExe.Exe." If I select CONTINE system completes the installation. Bt my server application (which using this myAxExe), is not able to find myAxExe. am getting one error -"Class not registered".

After the installtion, I couln't find any any entries in regirty for myAxExe. I belive MSI file did not regiter myAxExe.

How can i solve this.

Thanks in Advance.
Toks
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
It sounds like there is more of a problem with the .exe than the MSI package.

I assume you are successfully able to register the .exe using the regsvr32.exe utility?

If you are able to, then try removing the 'self-reg' option from this file in the MSI package and attempt to use regsvr32.exe as a Custom Action.

Sounds a little weird though....

[8D]
Answered 07/14/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
Thanks for the reply

Active Exe is working Here. becz am working smoothly with VB packge&dev wizrd.

more over this AtivxExe. So I can not use regsvr32. I have to use folowing command "C:\myAxticxExe.Exe /register".

if u don't mind, can u tell me the steps for including custm action during the step preparation.
Answered 07/14/2005 by: tok
Senior Yellow Belt

Please log in to comment
0
Ahh, well thats the problem then. Remove the self-tag setting and include a custom action to register the com server.

What application are you using to create the MSI package?
Answered 07/14/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
Visual Studio Windows Installer. (a free utility from MS)
Answered 07/14/2005 by: tok
Senior Yellow Belt

Please log in to comment
0
OK, I don't think that has support (?) for creating Custom Actions, so you'll need something like Orca. You should be able to download Orca from just about anywhere on the web, or go to the Microsoft website and do a search.

Creating a custom action requires entries in a minimum of two different tables (CustomAction table, and a sequence table).

Create the custom action first in the CustomAction table:

Action Type Source Target
myAction01 3170 *1 *2

where *1 = reference to directory table of where .exe is stored
where *2 = command-line to run (eg: "[#component_name_with_exe_in_it]" /regserver)

NB: You'll actually need two of these actions; one to /regserver the exe, and another to /unregserver the exe.

Then add the Custom Action to the sequence table, usually the InstallExecuteSequence table.
You have to be careful when adding the /unregserver CA into the sequence table, because you obviously need the .exe on the computer to run it. If you place the /unregserver CA too late in the installation it will error because the CA can't be run because the file has already been removed from the computer.

So, add the first CA (/regserver) into the table:
Action Condition Sequence
myAction01 NOT Installed (place this action after the SelfRegModules action)
myAction02 REMOVE~="ALL" (place this action after the SelfUnRegModules action)



Good luck!
Answered 07/14/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
Thank You.

Let me try this.

Any other idea to solve it using Visual Studio Installer...
Answered 07/14/2005 by: tok
Senior Yellow Belt

Please log in to comment
0
I downloaded Orca and its working fine..... THANKS...

one more dout

Am developing custom application for other main products. So during the installation process I wish to poup a Directory selection browse window(other than default installation folder; but same as this) and copy few files into this folder.

Can u give me some tips to do this.
Answered 07/16/2005 by: tok
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity