|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RegAsm.exe on VistaMy VB6 application uses DLL developed in VB2005. It may be changed very
often and everytime VB6 application unregisters an old version, replaces with a new one and registers a new version by using RegAsm.exe I'm doing it this way: Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe " & """" & strAppPath & "\WorkorderXML.dll" & """" On Windows XP it works fine. On Vista the registration fails without any message. I tried to register it manually via Run window. It is not registered either. I think this is Vista security again. Any suggestion how to register the DLL via RegAsm on Vista Thank you vovan Strange. You added a VB6 newsgroup to your
long list of inappropriate posting locations for a ..Net question, but you neglected to add - alt.questions.EverythingUnderTheSun
Show quote
Hide quote
On Feb 23, 9:05 am, "vovan" <some***@vovan.com> wrote: You should be able to use regsvr32.exe manually if you run it as admin> My VB6 application uses DLL developed in VB2005. It may be changed very > often and everytime VB6 application unregisters an old version, replaces > with a new one and registers a new version by using RegAsm.exe > I'm doing it this way: > Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe " & > """" & strAppPath & "\WorkorderXML.dll" & """" > > On Windows XP it works fine. On Vista the registration fails without any > message. > I tried to register it manually via Run window. It is not registered either. > I think this is Vista security again. > > Any suggestion how to register the DLL via RegAsm on Vista > > Thank you > > vovan or you could try registration free COM: http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/ good luck! Chris Thank you Chris.
Now my VB6 app registers DLL developed in VB 2005 without any user interaction. It's working on 2000 and XP only. On Vista Why should I move to manual registration? vovan Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1172265487.522724.63610@z35g2000cwz.googlegroups.com... > On Feb 23, 9:05 am, "vovan" <some***@vovan.com> wrote: >> My VB6 application uses DLL developed in VB2005. It may be changed very >> often and everytime VB6 application unregisters an old version, replaces >> with a new one and registers a new version by using RegAsm.exe >> I'm doing it this way: >> Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe " >> & >> """" & strAppPath & "\WorkorderXML.dll" & """" >> >> On Windows XP it works fine. On Vista the registration fails without any >> message. >> I tried to register it manually via Run window. It is not registered >> either. >> I think this is Vista security again. >> >> Any suggestion how to register the DLL via RegAsm on Vista >> >> Thank you >> >> vovan > > You should be able to use regsvr32.exe manually if you run it as admin > or you could try registration free COM: > > http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/ > > good luck! > > Chris > Regasm.exe does not have a manifest, so it will not ask for elevation,
therefore by default it will run as a standard user and will fail to write to HKLM registry entries. -- Show quoteHide quotePhil Wilson [Microsoft MVP Windows Installer] "vovan" <some***@vovan.com> wrote in message news:ec39ig5VHHA.1212@TK2MSFTNGP03.phx.gbl... > Thank you Chris. > Now my VB6 app registers DLL developed in VB 2005 without any user > interaction. It's working on 2000 and XP only. On Vista Why should I move > to manual registration? > > vovan > > "Chris Dunaway" <dunaw***@gmail.com> wrote in message > news:1172265487.522724.63610@z35g2000cwz.googlegroups.com... >> On Feb 23, 9:05 am, "vovan" <some***@vovan.com> wrote: >>> My VB6 application uses DLL developed in VB2005. It may be changed very >>> often and everytime VB6 application unregisters an old version, replaces >>> with a new one and registers a new version by using RegAsm.exe >>> I'm doing it this way: >>> Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe >>> " & >>> """" & strAppPath & "\WorkorderXML.dll" & """" >>> >>> On Windows XP it works fine. On Vista the registration fails without any >>> message. >>> I tried to register it manually via Run window. It is not registered >>> either. >>> I think this is Vista security again. >>> >>> Any suggestion how to register the DLL via RegAsm on Vista >>> >>> Thank you >>> >>> vovan >> >> You should be able to use regsvr32.exe manually if you run it as admin >> or you could try registration free COM: >> >> http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/ >> >> good luck! >> >> Chris >> > > |
|||||||||||||||||||||||