How do you register an ActiveX EXE on Vista?

Posted: 02-27-2007, 05:57 PM
MyApp.exe /RegServer
MyApp.exe /UnregServer

As far as I am aware, the specs state that running a VB6 ActiveX EXE results
in the silent launch of the executable, the registration of the COM details
into the registry (or unregistration) and then the termination of the
executable.

Why has this changed on Vista?

With Vista, launching the application results in the application continuing,
even if these command line switches are passed. This is throwing a monkey
wrench into my installer; all I want to do is register these programs during
the install, I don't actually want to run these programs during the install.

Thanks for your help!

- Joseph Geretz -



How do you register an ActiveX EXE on Vista?


Responses to "How do you register an ActiveX EXE on Vista?"

Joseph Geretz
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 07:44 PM
Why won't the ActiveX EXE launch elevated when it is launched from an MSI
which is runnign elevated?

First of all, the installer is running elevated. I get the Vista prompt
screen An unidentified program, etc... Once I click to proceed, the MSI
should be running elevated, no?

But for some unidentified reason, the launch of the executable from within
the MSI is not occurring elevated. The error I get during the install is
"Unexpected error; quitting" which is the same error I get when running
MyExe.exe /RegServer from the Start | Run.

So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe launched
as elevated from within the MSI?

Hey all you Microsoft gurus. Can't I get some help with a simple question?

Thanks!

- Joseph Geretz -

"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
> MyApp.exe /RegServer
> MyApp.exe /UnregServer
>
> As far as I am aware, the specs state that running a VB6 ActiveX EXE
> results
> in the silent launch of the executable, the registration of the COM
> details
> into the registry (or unregistration) and then the termination of the
> executable.
>
> Why has this changed on Vista?
>
> With Vista, launching the application results in the application
> continuing,
> even if these command line switches are passed. This is throwing a monkey
> wrench into my installer; all I want to do is register these programs
> during
> the install, I don't actually want to run these programs during the
> install.
>
> Thanks for your help!
>
> - Joseph Geretz -
>
>
>

Jon
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 08:03 PM
Have you installed the VB6 runtime files?

--
Jon


"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:ertE8dqWHHA.528@TK2MSFTNGP03.phx.gbl...
> Why won't the ActiveX EXE launch elevated when it is launched from an MSI
> which is runnign elevated?
>
> First of all, the installer is running elevated. I get the Vista prompt
> screen An unidentified program, etc... Once I click to proceed, the MSI
> should be running elevated, no?
>
> But for some unidentified reason, the launch of the executable from within
> the MSI is not occurring elevated. The error I get during the install is
> "Unexpected error; quitting" which is the same error I get when running
> MyExe.exe /RegServer from the Start | Run.
>
> So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe launched
> as elevated from within the MSI?
>
> Hey all you Microsoft gurus. Can't I get some help with a simple question?
>
> Thanks!
>
> - Joseph Geretz -
>
> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
> news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
>> MyApp.exe /RegServer
>> MyApp.exe /UnregServer
>>
>> As far as I am aware, the specs state that running a VB6 ActiveX EXE
>> results
>> in the silent launch of the executable, the registration of the COM
>> details
>> into the registry (or unregistration) and then the termination of the
>> executable.
>>
>> Why has this changed on Vista?
>>
>> With Vista, launching the application results in the application
>> continuing,
>> even if these command line switches are passed. This is throwing a monkey
>> wrench into my installer; all I want to do is register these programs
>> during
>> the install, I don't actually want to run these programs during the
>> install.
>>
>> Thanks for your help!
>>
>> - Joseph Geretz -
>>
>>
>>
>
>


Joseph Geretz
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 08:53 PM
Hi Jon,
> Have you installed the VB6 runtime files?
Of course. (This is an installer which has been running successfully,
pre-Vista, for years.)

To add to the problem description:
>> But for some unidentified reason, the launch of the executable from
>> within the MSI is not occurring elevated. The error I get during the
>> install is "Unexpected error; quitting" which is the same error I get
>> when running MyExe.exe /RegServer from the Start | Run.
If I create shortcut which links to "MyExe.exe / RegServer" then right-click
and select Run as Administrator then the program runs and registers as
normal. So the registration will succeed if the program is launched as
elevated. However, I can't figure out how to do this from my MSI and I don't
understand why it's not happening naturally, since hte MSI itself is already
running elevated.

- Joe Geretz -

"Jon" <Email_Address@SomewhereOrOther.com> wrote in message
news:O8SdlpqWHHA.3652@TK2MSFTNGP04.phx.gbl...
> Have you installed the VB6 runtime files?
>
> --
> Jon
>
>
> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
> news:ertE8dqWHHA.528@TK2MSFTNGP03.phx.gbl...
>> Why won't the ActiveX EXE launch elevated when it is launched from an MSI
>> which is runnign elevated?
>>
>> First of all, the installer is running elevated. I get the Vista prompt
>> screen An unidentified program, etc... Once I click to proceed, the MSI
>> should be running elevated, no?
>>
>> But for some unidentified reason, the launch of the executable from
>> within the MSI is not occurring elevated. The error I get during the
>> install is "Unexpected error; quitting" which is the same error I get
>> when running MyExe.exe /RegServer from the Start | Run.
>>
>> So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe
>> launched as elevated from within the MSI?
>>
>> Hey all you Microsoft gurus. Can't I get some help with a simple
>> question?
>>
>> Thanks!
>>
>> - Joseph Geretz -
>>
>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>> news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
>>> MyApp.exe /RegServer
>>> MyApp.exe /UnregServer
>>>
>>> As far as I am aware, the specs state that running a VB6 ActiveX EXE
>>> results
>>> in the silent launch of the executable, the registration of the COM
>>> details
>>> into the registry (or unregistration) and then the termination of the
>>> executable.
>>>
>>> Why has this changed on Vista?
>>>
>>> With Vista, launching the application results in the application
>>> continuing,
>>> even if these command line switches are passed. This is throwing a
>>> monkey
>>> wrench into my installer; all I want to do is register these programs
>>> during
>>> the install, I don't actually want to run these programs during the
>>> install.
>>>
>>> Thanks for your help!
>>>
>>> - Joseph Geretz -
>>>
>>>
>>>
>>
>>
>
>
>

Jon
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 09:37 PM
Yes, that is odd.

It sometimes seems that some extensions are favoured more than others. For
example, you can right-click on a .exe file or a .bat file and choose to run
them as administrator, but you can't do the same for a .vbs file or a .msi
file.

Not that that helps at all, but thought it worth mentioning.

--
Jon


"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:Osd6VErWHHA.488@TK2MSFTNGP06.phx.gbl...
> Hi Jon,
>
>> Have you installed the VB6 runtime files?
>
> Of course. (This is an installer which has been running successfully,
> pre-Vista, for years.)
>
> To add to the problem description:
>
>>> But for some unidentified reason, the launch of the executable from
>>> within the MSI is not occurring elevated. The error I get during the
>>> install is "Unexpected error; quitting" which is the same error I get
>>> when running MyExe.exe /RegServer from the Start | Run.
>
> If I create shortcut which links to "MyExe.exe / RegServer" then
> right-click and select Run as Administrator then the program runs and
> registers as normal. So the registration will succeed if the program is
> launched as elevated. However, I can't figure out how to do this from my
> MSI and I don't understand why it's not happening naturally, since hte MSI
> itself is already running elevated.
>
> - Joe Geretz -
>
> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
> news:O8SdlpqWHHA.3652@TK2MSFTNGP04.phx.gbl...
>> Have you installed the VB6 runtime files?
>>
>> --
>> Jon
>>
>>
>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>> news:ertE8dqWHHA.528@TK2MSFTNGP03.phx.gbl...
>>> Why won't the ActiveX EXE launch elevated when it is launched from an
>>> MSI which is runnign elevated?
>>>
>>> First of all, the installer is running elevated. I get the Vista prompt
>>> screen An unidentified program, etc... Once I click to proceed, the MSI
>>> should be running elevated, no?
>>>
>>> But for some unidentified reason, the launch of the executable from
>>> within the MSI is not occurring elevated. The error I get during the
>>> install is "Unexpected error; quitting" which is the same error I get
>>> when running MyExe.exe /RegServer from the Start | Run.
>>>
>>> So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe
>>> launched as elevated from within the MSI?
>>>
>>> Hey all you Microsoft gurus. Can't I get some help with a simple
>>> question?
>>>
>>> Thanks!
>>>
>>> - Joseph Geretz -
>>>
>>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>>> news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
>>>> MyApp.exe /RegServer
>>>> MyApp.exe /UnregServer
>>>>
>>>> As far as I am aware, the specs state that running a VB6 ActiveX EXE
>>>> results
>>>> in the silent launch of the executable, the registration of the COM
>>>> details
>>>> into the registry (or unregistration) and then the termination of the
>>>> executable.
>>>>
>>>> Why has this changed on Vista?
>>>>
>>>> With Vista, launching the application results in the application
>>>> continuing,
>>>> even if these command line switches are passed. This is throwing a
>>>> monkey
>>>> wrench into my installer; all I want to do is register these programs
>>>> during
>>>> the install, I don't actually want to run these programs during the
>>>> install.
>>>>
>>>> Thanks for your help!
>>>>
>>>> - Joseph Geretz -
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
Joseph Geretz
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 10:42 PM
The name of the msi incorporates the 'magic term' Setup (yippee!) so the msi
is running elevated. When the msi is launched, I get the Vista elevation
prompt, so after responding in the affirmative, the msi is running elevated.
Consequently, any applications launched from within the MSI should be
granted elevated status as well.

But this just doesn't work!!!

Heeeeellllooooo! Microsoft? Do you have any interest in supporting the
deployment of ActiveX executables, or have you finally decided that these
are ready for the garbage heap? Your marketing guys getting tired of
marketing ActiveX?

- Joseph Geretz -

"Jon" <Email_Address@SomewhereOrOther.com> wrote in message
news:%23ivu6drWHHA.496@TK2MSFTNGP06.phx.gbl...
> Yes, that is odd.
>
> It sometimes seems that some extensions are favoured more than others. For
> example, you can right-click on a .exe file or a .bat file and choose to
> run them as administrator, but you can't do the same for a .vbs file or a
> .msi file.
>
> Not that that helps at all, but thought it worth mentioning.
>
> --
> Jon
>
>
> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
> news:Osd6VErWHHA.488@TK2MSFTNGP06.phx.gbl...
>> Hi Jon,
>>
>>> Have you installed the VB6 runtime files?
>>
>> Of course. (This is an installer which has been running successfully,
>> pre-Vista, for years.)
>>
>> To add to the problem description:
>>
>>>> But for some unidentified reason, the launch of the executable from
>>>> within the MSI is not occurring elevated. The error I get during the
>>>> install is "Unexpected error; quitting" which is the same error I get
>>>> when running MyExe.exe /RegServer from the Start | Run.
>>
>> If I create shortcut which links to "MyExe.exe / RegServer" then
>> right-click and select Run as Administrator then the program runs and
>> registers as normal. So the registration will succeed if the program is
>> launched as elevated. However, I can't figure out how to do this from my
>> MSI and I don't understand why it's not happening naturally, since hte
>> MSI itself is already running elevated.
>>
>> - Joe Geretz -
>>
>> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
>> news:O8SdlpqWHHA.3652@TK2MSFTNGP04.phx.gbl...
>>> Have you installed the VB6 runtime files?
>>>
>>> --
>>> Jon
>>>
>>>
>>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>>> news:ertE8dqWHHA.528@TK2MSFTNGP03.phx.gbl...
>>>> Why won't the ActiveX EXE launch elevated when it is launched from an
>>>> MSI which is runnign elevated?
>>>>
>>>> First of all, the installer is running elevated. I get the Vista prompt
>>>> screen An unidentified program, etc... Once I click to proceed, the MSI
>>>> should be running elevated, no?
>>>>
>>>> But for some unidentified reason, the launch of the executable from
>>>> within the MSI is not occurring elevated. The error I get during the
>>>> install is "Unexpected error; quitting" which is the same error I get
>>>> when running MyExe.exe /RegServer from the Start | Run.
>>>>
>>>> So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe
>>>> launched as elevated from within the MSI?
>>>>
>>>> Hey all you Microsoft gurus. Can't I get some help with a simple
>>>> question?
>>>>
>>>> Thanks!
>>>>
>>>> - Joseph Geretz -
>>>>
>>>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>>>> news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
>>>>> MyApp.exe /RegServer
>>>>> MyApp.exe /UnregServer
>>>>>
>>>>> As far as I am aware, the specs state that running a VB6 ActiveX EXE
>>>>> results
>>>>> in the silent launch of the executable, the registration of the COM
>>>>> details
>>>>> into the registry (or unregistration) and then the termination of the
>>>>> executable.
>>>>>
>>>>> Why has this changed on Vista?
>>>>>
>>>>> With Vista, launching the application results in the application
>>>>> continuing,
>>>>> even if these command line switches are passed. This is throwing a
>>>>> monkey
>>>>> wrench into my installer; all I want to do is register these programs
>>>>> during
>>>>> the install, I don't actually want to run these programs during the
>>>>> install.
>>>>>
>>>>> Thanks for your help!
>>>>>
>>>>> - Joseph Geretz -
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>

Jon
Guest
Posts: n/a
 
Re: How do you register an ActiveX EXE on Vista?
Posted: 02-27-2007, 10:58 PM
Try it in a one-line batch file "wrapper" for your .msi file
ie containing

c:\<...path to msi file>mysetupfile.msi

and then set the batch file to run as admin via right-click > properties

If that works, then you could work out ways of running that invisibly to
avoid black boxes all over the screen.

--
Jon


"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:%23flC9AsWHHA.3652@TK2MSFTNGP04.phx.gbl...
> The name of the msi incorporates the 'magic term' Setup (yippee!) so the
> msi is running elevated. When the msi is launched, I get the Vista
> elevation prompt, so after responding in the affirmative, the msi is
> running elevated. Consequently, any applications launched from within the
> MSI should be granted elevated status as well.
>
> But this just doesn't work!!!
>
> Heeeeellllooooo! Microsoft? Do you have any interest in supporting the
> deployment of ActiveX executables, or have you finally decided that these
> are ready for the garbage heap? Your marketing guys getting tired of
> marketing ActiveX?
>
> - Joseph Geretz -
>
> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
> news:%23ivu6drWHHA.496@TK2MSFTNGP06.phx.gbl...
>> Yes, that is odd.
>>
>> It sometimes seems that some extensions are favoured more than others.
>> For example, you can right-click on a .exe file or a .bat file and choose
>> to run them as administrator, but you can't do the same for a .vbs file
>> or a .msi file.
>>
>> Not that that helps at all, but thought it worth mentioning.
>>
>> --
>> Jon
>>
>>
>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>> news:Osd6VErWHHA.488@TK2MSFTNGP06.phx.gbl...
>>> Hi Jon,
>>>
>>>> Have you installed the VB6 runtime files?
>>>
>>> Of course. (This is an installer which has been running successfully,
>>> pre-Vista, for years.)
>>>
>>> To add to the problem description:
>>>
>>>>> But for some unidentified reason, the launch of the executable from
>>>>> within the MSI is not occurring elevated. The error I get during the
>>>>> install is "Unexpected error; quitting" which is the same error I get
>>>>> when running MyExe.exe /RegServer from the Start | Run.
>>>
>>> If I create shortcut which links to "MyExe.exe / RegServer" then
>>> right-click and select Run as Administrator then the program runs and
>>> registers as normal. So the registration will succeed if the program is
>>> launched as elevated. However, I can't figure out how to do this from my
>>> MSI and I don't understand why it's not happening naturally, since hte
>>> MSI itself is already running elevated.
>>>
>>> - Joe Geretz -
>>>
>>> "Jon" <Email_Address@SomewhereOrOther.com> wrote in message
>>> news:O8SdlpqWHHA.3652@TK2MSFTNGP04.phx.gbl...
>>>> Have you installed the VB6 runtime files?
>>>>
>>>> --
>>>> Jon
>>>>
>>>>
>>>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>>>> news:ertE8dqWHHA.528@TK2MSFTNGP03.phx.gbl...
>>>>> Why won't the ActiveX EXE launch elevated when it is launched from an
>>>>> MSI which is runnign elevated?
>>>>>
>>>>> First of all, the installer is running elevated. I get the Vista
>>>>> prompt
>>>>> screen An unidentified program, etc... Once I click to proceed, the
>>>>> MSI
>>>>> should be running elevated, no?
>>>>>
>>>>> But for some unidentified reason, the launch of the executable from
>>>>> within the MSI is not occurring elevated. The error I get during the
>>>>> install is "Unexpected error; quitting" which is the same error I get
>>>>> when running MyExe.exe /RegServer from the Start | Run.
>>>>>
>>>>> So if the MSI is running elevated, why the @!#$^@^#$% isn't MyExe
>>>>> launched as elevated from within the MSI?
>>>>>
>>>>> Hey all you Microsoft gurus. Can't I get some help with a simple
>>>>> question?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> - Joseph Geretz -
>>>>>
>>>>> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
>>>>> news:OU33xhpWHHA.4188@TK2MSFTNGP06.phx.gbl...
>>>>>> MyApp.exe /RegServer
>>>>>> MyApp.exe /UnregServer
>>>>>>
>>>>>> As far as I am aware, the specs state that running a VB6 ActiveX EXE
>>>>>> results
>>>>>> in the silent launch of the executable, the registration of the COM
>>>>>> details
>>>>>> into the registry (or unregistration) and then the termination of the
>>>>>> executable.
>>>>>>
>>>>>> Why has this changed on Vista?
>>>>>>
>>>>>> With Vista, launching the application results in the application
>>>>>> continuing,
>>>>>> even if these command line switches are passed. This is throwing a
>>>>>> monkey
>>>>>> wrench into my installer; all I want to do is register these programs
>>>>>> during
>>>>>> the install, I don't actually want to run these programs during the
>>>>>> install.
>>>>>>
>>>>>> Thanks for your help!
>>>>>>
>>>>>> - Joseph Geretz -
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
no thumbnails for .mpg files, no shmedia to register, someone tell me how to fix this in Vista Guest Windows NT/2000/XP 0 03-07-2008 01:50 AM
no thumbnails for .mpg files, no shmedia to register, someone tell me how to fix this in Vista Guest Windows NT/2000/XP 0 03-06-2008 11:24 PM
Register Vista Phil Windows Vista Administration 3 02-05-2008 03:33 AM
Vista and ActiveX controls wickydoc Windows Vista Performance & Maintenance 0 06-13-2007 03:07 AM
Register COM dll in vista Angela Yan Windows Vista 20 05-08-2006 07:24 PM