View Single Post
  #4 (permalink)  
Old 02-27-2007
Joseph Geretz
 

Posts: n/a
Re: How do you register an ActiveX EXE on Vista?
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 -
>>>
>>>
>>>

>>
>>

>
>
>



Reply With Quote