Home All Groups Group Topic Archive Search About

VB6 App Deployment in Vista

Author
1 Mar 2007 1:27 PM
DRoberts321
Hi all
I know a VB6 app will run fine in vista, If you use the compatibility
wizzard and select the application. My question is
A) How do you set up the PDW to discover Vista
B) How do you have it Set  the
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to REG_SZ
RUNASADMIN

So end users do not have to go through this 8 step wizzard?

Thanks
Don

Author
1 Mar 2007 2:55 PM
Paul Clement
On Thu, 1 Mar 2007 05:27:00 -0800, DRoberts321 <DRoberts***@discussions.microsoft.com> wrote:

¤ Hi all
¤ I know a VB6 app will run fine in vista, If you use the compatibility
¤ wizzard and select the application. My question is
¤ A) How do you set up the PDW to discover Vista
¤ B) How do you have it Set  the
¤ HKEY_CURRENT_USER\Software\Microsoft\Windows
¤ NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to REG_SZ
¤ RUNASADMIN
¤
¤ So end users do not have to go through this 8 step wizzard?

I would highly recommend using an installer other than the PDW for Vista. It's severely outdated.

You may want to consider a nice little freebee called Inno Setup
(http://www.jrsoftware.org/isinfo.php).


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
1 Mar 2007 5:36 PM
Stefan Berglund
On Thu, 01 Mar 2007 08:55:36 -0600, Paul Clement
<UseAdddressAtEndofMess***@swspectrum.com> wrote:
in <04qdu2t48nk6gss1f9m1q6g61ctp6pb***@4ax.com>

Show quoteHide quote
>On Thu, 1 Mar 2007 05:27:00 -0800, DRoberts321 <DRoberts***@discussions.microsoft.com> wrote:
>
>¤ Hi all
>¤ I know a VB6 app will run fine in vista, If you use the compatibility
>¤ wizzard and select the application. My question is
>¤ A) How do you set up the PDW to discover Vista
>¤ B) How do you have it Set  the
>¤ HKEY_CURRENT_USER\Software\Microsoft\Windows
>¤ NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to REG_SZ
>¤ RUNASADMIN

>¤ So end users do not have to go through this 8 step wizzard?
>
>I would highly recommend using an installer other than the PDW for Vista. It's severely outdated.
>
>You may want to consider a nice little freebee called Inno Setup
>(http://www.jrsoftware.org/isinfo.php).
>
>
>Paul
>~~~~
>Microsoft MVP (Visual Basic)

You're a trip Paul.  You can criticize me for having the audacity to use
other than microsoft products, but you can in all your wonderful
MVP-ness offer a non microsoft installer as an alternative.  Sheez!

Why didn't you recommend the windows installer?  Huh?  Huh?
Author
1 Mar 2007 6:10 PM
DRoberts321
I am trying the posted installer package. I am restricted by my employer to use
the MSDAC 2.5 with Access97 databases. So I am trying to get ancient
software to install and run on new machines. I usually just had to place the
MDAC File in the setup and it would install auto with the PDW. I am testing
this operation in the posted installer, so far it looks ok, I can't get the
dialogs not to show when the MDAC_TYPE.exe spawns from the setup file with
the listed switches, but as long as it does install I am ok with it though it
would be nice if the switches worked.
I found them on the MS site at:
http://support.microsoft.com/kb/842193/

I could care less what I use so long as it will work in Win98-vista

Thanks so much for the answers.

Show quoteHide quote
"Stefan Berglund" wrote:

> On Thu, 01 Mar 2007 08:55:36 -0600, Paul Clement
> <UseAdddressAtEndofMess***@swspectrum.com> wrote:
>  in <04qdu2t48nk6gss1f9m1q6g61ctp6pb***@4ax.com>
>
> >On Thu, 1 Mar 2007 05:27:00 -0800, DRoberts321 <DRoberts***@discussions.microsoft.com> wrote:
> >
> >¤ Hi all
> >¤ I know a VB6 app will run fine in vista, If you use the compatibility
> >¤ wizzard and select the application. My question is
> >¤ A) How do you set up the PDW to discover Vista
> >¤ B) How do you have it Set  the
> >¤ HKEY_CURRENT_USER\Software\Microsoft\Windows
> >¤ NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to REG_SZ
> >¤ RUNASADMIN
> >¤
> >¤ So end users do not have to go through this 8 step wizzard?
> >
> >I would highly recommend using an installer other than the PDW for Vista. It's severely outdated.
> >
> >You may want to consider a nice little freebee called Inno Setup
> >(http://www.jrsoftware.org/isinfo.php).
> >
> >
> >Paul
> >~~~~
> >Microsoft MVP (Visual Basic)
>
> You're a trip Paul.  You can criticize me for having the audacity to use
> other than microsoft products, but you can in all your wonderful
> MVP-ness offer a non microsoft installer as an alternative.  Sheez!
>
> Why didn't you recommend the windows installer?  Huh?  Huh?
>
Author
1 Mar 2007 6:24 PM
Kevin Provance
Well, if worst comes to worst, and Vista supports it, you could use a SxS
installation (side by side) by placing the desired DLLs and such into your
application folder and creating a blank file of your .exe name with an
additional .local extention.

For example, if your app is called foo.exe, create a blank file called
foo.exe.local.  Adding this file will insure any DLLs in your application
folder will load first before the program searches for them elsewhere.  I do
this all the time with gdiplus.dll (at MS's recommendation believe it or
not) so I know it works under XP and earlier.  I don't know about Vista yet,
but will in the next week or so.  ;-)

- Kev


Show quoteHide quote
"DRoberts321" <DRoberts***@discussions.microsoft.com> wrote in message
news:F6860A62-ADF2-4AC7-BB1D-DEEEF53CE973@microsoft.com...
|I am trying the posted installer package. I am restricted by my employer to
use
| the MSDAC 2.5 with Access97 databases. So I am trying to get ancient
| software to install and run on new machines. I usually just had to place
the
| MDAC File in the setup and it would install auto with the PDW. I am
testing
| this operation in the posted installer, so far it looks ok, I can't get
the
| dialogs not to show when the MDAC_TYPE.exe spawns from the setup file with
| the listed switches, but as long as it does install I am ok with it though
it
| would be nice if the switches worked.
| I found them on the MS site at:
| http://support.microsoft.com/kb/842193/
|
| I could care less what I use so long as it will work in Win98-vista
|
| Thanks so much for the answers.
|
| "Stefan Berglund" wrote:
|
| > On Thu, 01 Mar 2007 08:55:36 -0600, Paul Clement
| > <UseAdddressAtEndofMess***@swspectrum.com> wrote:
| >  in <04qdu2t48nk6gss1f9m1q6g61ctp6pb***@4ax.com>
| >
| > >On Thu, 1 Mar 2007 05:27:00 -0800, DRoberts321
<DRoberts***@discussions.microsoft.com> wrote:
| > >
| > >¤ Hi all
| > >¤ I know a VB6 app will run fine in vista, If you use the compatibility
| > >¤ wizzard and select the application. My question is
| > >¤ A) How do you set up the PDW to discover Vista
| > >¤ B) How do you have it Set  the
| > >¤ HKEY_CURRENT_USER\Software\Microsoft\Windows
| > >¤ NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to
REG_SZ
| > >¤ RUNASADMIN
| > >¤
| > >¤ So end users do not have to go through this 8 step wizzard?
| > >
| > >I would highly recommend using an installer other than the PDW for
Vista. It's severely outdated.
Show quoteHide quote
| > >
| > >You may want to consider a nice little freebee called Inno Setup
| > >(http://www.jrsoftware.org/isinfo.php).
| > >
| > >
| > >Paul
| > >~~~~
| > >Microsoft MVP (Visual Basic)
| >
| > You're a trip Paul.  You can criticize me for having the audacity to use
| > other than microsoft products, but you can in all your wonderful
| > MVP-ness offer a non microsoft installer as an alternative.  Sheez!
| >
| > Why didn't you recommend the windows installer?  Huh?  Huh?
| >
Author
1 Mar 2007 6:28 PM
Karl E. Peterson
Kevin Provance <ca***@tpasoft.com> wrote:
> Well, if worst comes to worst, and Vista supports it, you could use a SxS
> installation (side by side) by placing the desired DLLs and such into your
> application folder and creating a blank file of your .exe name with an
> additional .local extention.
>
> For example, if your app is called foo.exe, create a blank file called
> foo.exe.local.  Adding this file will insure any DLLs in your application
> folder will load first before the program searches for them elsewhere.  I do
> this all the time with gdiplus.dll (at MS's recommendation believe it or
> not) so I know it works under XP and earlier.  I don't know about Vista yet,
> but will in the next week or so.  ;-)

Are you sure about that "XP and earlier" bit?  I'm pretty certain it doesn't reach
down into the 9x era, and very unlikely NT4, but I could be wrong?
--
..NET: It's About Trust!
http://vfred.mvps.org
Author
1 Mar 2007 6:38 PM
Robert Morley
Much to my surprise, this technology was actually introduced on 98 and 2000;
I thought it was newer than that.  See
http://msdn2.microsoft.com/en-us/library/ms811700.aspx


Rob

Show quoteHide quote
"Karl E. Peterson" <k***@mvps.org> wrote in message
news:%23Tosv9CXHHA.3568@TK2MSFTNGP06.phx.gbl...
> Kevin Provance <ca***@tpasoft.com> wrote:
>> Well, if worst comes to worst, and Vista supports it, you could use a SxS
>> installation (side by side) by placing the desired DLLs and such into
>> your
>> application folder and creating a blank file of your .exe name with an
>> additional .local extention.
>>
>> For example, if your app is called foo.exe, create a blank file called
>> foo.exe.local.  Adding this file will insure any DLLs in your application
>> folder will load first before the program searches for them elsewhere.  I
>> do
>> this all the time with gdiplus.dll (at MS's recommendation believe it or
>> not) so I know it works under XP and earlier.  I don't know about Vista
>> yet,
>> but will in the next week or so.  ;-)
>
> Are you sure about that "XP and earlier" bit?  I'm pretty certain it
> doesn't reach down into the 9x era, and very unlikely NT4, but I could be
> wrong?
> --
> .NET: It's About Trust!
> http://vfred.mvps.org
>
Author
1 Mar 2007 6:59 PM
Karl E. Peterson
Robert Morley <rmor***@magma.ca.N0.Freak1n.sparn> wrote:
> Much to my surprise, this technology was actually introduced on 98 and 2000;
> I thought it was newer than that.  See
> http://msdn2.microsoft.com/en-us/library/ms811700.aspx

Huh.  Well, if you took my hunch in its strictest sense, then, I guess I was right.
It wasn't supported until *98SE* and 2000.  Thanks!
--
..NET: It's About Trust!
http://vfred.mvps.org




Show quoteHide quote
> "Karl E. Peterson" <k***@mvps.org> wrote in message
> news:%23Tosv9CXHHA.3568@TK2MSFTNGP06.phx.gbl...
>> Kevin Provance <ca***@tpasoft.com> wrote:
>>> Well, if worst comes to worst, and Vista supports it, you could use a SxS
>>> installation (side by side) by placing the desired DLLs and such into
>>> your
>>> application folder and creating a blank file of your .exe name with an
>>> additional .local extention.
>>>
>>> For example, if your app is called foo.exe, create a blank file called
>>> foo.exe.local.  Adding this file will insure any DLLs in your application
>>> folder will load first before the program searches for them elsewhere.  I
>>> do
>>> this all the time with gdiplus.dll (at MS's recommendation believe it or
>>> not) so I know it works under XP and earlier.  I don't know about Vista
>>> yet,
>>> but will in the next week or so.  ;-)
>>
>> Are you sure about that "XP and earlier" bit?  I'm pretty certain it
>> doesn't reach down into the 9x era, and very unlikely NT4, but I could be
>> wrong?
>> --
>> .NET: It's About Trust!
>> http://vfred.mvps.org
Author
1 Mar 2007 7:07 PM
DRoberts321
I just tested in XP with the new setup program and apply the keys needed with
the following: foo.exe substituded for app name to make generic::
[Run]
Filename: "{app}\MDAC_TYP.EXE"; Parameters: "/q:a /c:dasetup.exe /q"
Filename: "{app}\foo.exe"; Description: "{cm:LaunchProgram,foo}"; Flags:
nowait postinstall skipifsilent

[Registry]
Root:HKCU; SubKey:"Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers" ;ValueType: string; ValueName:
"{app}\foo.exe" ;valuedata:"RUNASADMIN"

All worked fine in XP, and is supposed to now be Vista Compatible. I will be
booting into Vista later tonight.
I know it is not Microsoft, but so far I am impressed with the
Suggested setup program at: http://www.jrsoftware.org/isinfo.php Inno Setup
Compiler 5.1.10

Don




Show quoteHide quote
"Kevin Provance" wrote:

> Well, if worst comes to worst, and Vista supports it, you could use a SxS
> installation (side by side) by placing the desired DLLs and such into your
> application folder and creating a blank file of your .exe name with an
> additional .local extention.
>
> For example, if your app is called foo.exe, create a blank file called
> foo.exe.local.  Adding this file will insure any DLLs in your application
> folder will load first before the program searches for them elsewhere.  I do
> this all the time with gdiplus.dll (at MS's recommendation believe it or
> not) so I know it works under XP and earlier.  I don't know about Vista yet,
> but will in the next week or so.  ;-)
>
> - Kev
>
>
> "DRoberts321" <DRoberts***@discussions.microsoft.com> wrote in message
> news:F6860A62-ADF2-4AC7-BB1D-DEEEF53CE973@microsoft.com...
> |I am trying the posted installer package. I am restricted by my employer to
> use
> | the MSDAC 2.5 with Access97 databases. So I am trying to get ancient
> | software to install and run on new machines. I usually just had to place
> the
> | MDAC File in the setup and it would install auto with the PDW. I am
> testing
> | this operation in the posted installer, so far it looks ok, I can't get
> the
> | dialogs not to show when the MDAC_TYPE.exe spawns from the setup file with
> | the listed switches, but as long as it does install I am ok with it though
> it
> | would be nice if the switches worked.
> | I found them on the MS site at:
> | http://support.microsoft.com/kb/842193/
> |
> | I could care less what I use so long as it will work in Win98-vista
> |
> | Thanks so much for the answers.
> |
> | "Stefan Berglund" wrote:
> |
> | > On Thu, 01 Mar 2007 08:55:36 -0600, Paul Clement
> | > <UseAdddressAtEndofMess***@swspectrum.com> wrote:
> | >  in <04qdu2t48nk6gss1f9m1q6g61ctp6pb***@4ax.com>
> | >
> | > >On Thu, 1 Mar 2007 05:27:00 -0800, DRoberts321
> <DRoberts***@discussions.microsoft.com> wrote:
> | > >
> | > >¤ Hi all
> | > >¤ I know a VB6 app will run fine in vista, If you use the compatibility
> | > >¤ wizzard and select the application. My question is
> | > >¤ A) How do you set up the PDW to discover Vista
> | > >¤ B) How do you have it Set  the
> | > >¤ HKEY_CURRENT_USER\Software\Microsoft\Windows
> | > >¤ NT\CurrentVersion\AppCompatFlags\Layers\App.path + (App Name.exe) to
> REG_SZ
> | > >¤ RUNASADMIN
> | > >¤
> | > >¤ So end users do not have to go through this 8 step wizzard?
> | > >
> | > >I would highly recommend using an installer other than the PDW for
> Vista. It's severely outdated.
> | > >
> | > >You may want to consider a nice little freebee called Inno Setup
> | > >(http://www.jrsoftware.org/isinfo.php).
> | > >
> | > >
> | > >Paul
> | > >~~~~
> | > >Microsoft MVP (Visual Basic)
> | >
> | > You're a trip Paul.  You can criticize me for having the audacity to use
> | > other than microsoft products, but you can in all your wonderful
> | > MVP-ness offer a non microsoft installer as an alternative.  Sheez!
> | >
> | > Why didn't you recommend the windows installer?  Huh?  Huh?
> | >
>
>
>
Author
1 Mar 2007 7:23 PM
Paul Clement
On Thu, 1 Mar 2007 11:07:08 -0800, DRoberts321 <DRoberts***@discussions.microsoft.com> wrote:

¤ All worked fine in XP, and is supposed to now be Vista Compatible. I will be
¤ booting into Vista later tonight.
¤ I know it is not Microsoft, but so far I am impressed with the
¤ Suggested setup program at: http://www.jrsoftware.org/isinfo.php Inno Setup
¤ Compiler 5.1.10

Don't mind Stefan. He's just for some way to take a shot at me. It's no reflection upon the product.


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
2 Mar 2007 11:55 AM
DRoberts321
I Finally Figured out the switches for MDAC 2.5 Silent Install for use in the
Inno Setup Compiler. So thought I would post in case others need it .
Copy as shown quotes and all.
Besure to include the MDAC_TYP.EXE Version 2.5 It can be found on your
original VB6 CD.
[Run]
Filename: "{app}\MDAC_TYP.EXE"; Parameters: " /q /c:""setup.exe /QN1"""

Show quoteHide quote
"Paul Clement" wrote:

> On Thu, 1 Mar 2007 11:07:08 -0800, DRoberts321 <DRoberts***@discussions.microsoft.com> wrote:
>
> ¤ All worked fine in XP, and is supposed to now be Vista Compatible. I will be
> ¤ booting into Vista later tonight.
> ¤ I know it is not Microsoft, but so far I am impressed with the
> ¤ Suggested setup program at: http://www.jrsoftware.org/isinfo.php Inno Setup
> ¤ Compiler 5.1.10
>
> Don't mind Stefan. He's just for some way to take a shot at me. It's no reflection upon the product.
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)
>
Author
1 Mar 2007 7:04 PM
Stefan Berglund
On Thu, 1 Mar 2007 10:10:30 -0800, DRoberts321
<DRoberts***@discussions.microsoft.com> wrote:
in <F6860A62-ADF2-4AC7-BB1D-DEEEF53CE***@microsoft.com>

Show quoteHide quote
>I am trying the posted installer package. I am restricted by my employer to use
>the MSDAC 2.5 with Access97 databases. So I am trying to get ancient
>software to install and run on new machines. I usually just had to place the
>MDAC File in the setup and it would install auto with the PDW. I am testing
>this operation in the posted installer, so far it looks ok, I can't get the
>dialogs not to show when the MDAC_TYPE.exe spawns from the setup file with
>the listed switches, but as long as it does install I am ok with it though it
>would be nice if the switches worked.
>I found them on the MS site at:
>http://support.microsoft.com/kb/842193/
>
>I could care less what I use so long as it will work in Win98-vista
>
>Thanks so much for the answers.

Inno setup is a great installer.  You might want to try a "/s" without
the quotes as a parameter to the MDAC install to see if it will run
silently.

---
This posting is provided "AS IS" with no warranties and no guarantees either express or implied.

Stefan Berglund
Author
1 Mar 2007 7:35 PM
DRoberts321
No go on the /s... I just put it back to: Filename: "{app}\MDAC_TYP.EXE";
Parameters: "/q"

It shows the extraction then errs out if 2.5 is installed on the system,
installs it if it is not present.

Don


Show quoteHide quote
"Stefan Berglund" wrote:

> On Thu, 1 Mar 2007 10:10:30 -0800, DRoberts321
> <DRoberts***@discussions.microsoft.com> wrote:
>  in <F6860A62-ADF2-4AC7-BB1D-DEEEF53CE***@microsoft.com>
>
> >I am trying the posted installer package. I am restricted by my employer to use
> >the MSDAC 2.5 with Access97 databases. So I am trying to get ancient
> >software to install and run on new machines. I usually just had to place the
> >MDAC File in the setup and it would install auto with the PDW. I am testing
> >this operation in the posted installer, so far it looks ok, I can't get the
> >dialogs not to show when the MDAC_TYPE.exe spawns from the setup file with
> >the listed switches, but as long as it does install I am ok with it though it
> >would be nice if the switches worked.
> >I found them on the MS site at:
> >http://support.microsoft.com/kb/842193/
> >
> >I could care less what I use so long as it will work in Win98-vista
> >
> >Thanks so much for the answers.
>
> Inno setup is a great installer.  You might want to try a "/s" without
> the quotes as a parameter to the MDAC install to see if it will run
> silently.
>
> ---
> This posting is provided "AS IS" with no warranties and no guarantees either express or implied.
>
> Stefan Berglund
>
Author
1 Mar 2007 7:20 PM
Paul Clement
On Thu, 01 Mar 2007 09:36:11 -0800, Stefan Berglund <sorry.no.kool***@for.me> wrote:

¤ >I would highly recommend using an installer other than the PDW for Vista. It's severely outdated.
¤ >
¤ >You may want to consider a nice little freebee called Inno Setup
¤ >(http://www.jrsoftware.org/isinfo.php).
¤ >
¤ >
¤ >Paul
¤ >~~~~
¤ >Microsoft MVP (Visual Basic)
¤
¤ You're a trip Paul.  You can criticize me for having the audacity to use
¤ other than microsoft products, but you can in all your wonderful
¤ MVP-ness offer a non microsoft installer as an alternative.  Sheez!

No I can criticize you because your participation in this newsgroup is primarily limited to ripping
Microsoft products. There is no equivalence to that and my recommendation of a third party product
that complements a Microsoft product and does not compete with it.

But thanks for the chuckle. ;-)


Paul
~~~~
Microsoft MVP (Visual Basic)