PDA

View Full Version : vb .net & mdac install


charlesc
08-31-2004, 10:45 AM
hi,

i'm subing for someone who is on vacation for a while, and have to send out a vb .net program for installation earlier than expected. the company uses setup factory 6.0 for its installations.

before the program itself installs, dotnetfx.exe has to be run to install the .net framework 1.1 if it is not yet on the end users machine, and mdac_typ.exe has to be run to install MDAC, if the users machine doesn't have mdac 2.6 or later.

i'm not well acquainted with installations or with the registry, and don't have virgin machines to test various setups, see what happens, and install/uninstall the .net framework, and the MDAC, and try again and again.

i think i understand what i need to do but don't know how to do it in setup factory 6.0.

i think i need to quiz the registry to find out if .net framework 1.1 has been installed, if yes don't run dotnetfx.exe, if not run it.

with mdac, quiz the registry if any mdac was installed, if not then run mdac_typ.exe. if mdac does exist on the user machine check if the users mdac version is under 2.6. if it is run mdac_typ.exe, if not don't run it.

i don't know which registry entries to check for this, and against which values to test those entries, and i don't know how to do this in setup factory 6.0.

these 2 files exist in the 'misc' folder off the root directory of the proposed CD.

so far what i have in the Actions/Before installing section is:

Execute(%SrcDrv%\misc\dotnetfx.exe), and /q:a /c:"Install /q" as its command line argument which i was told will make a silent install of .net which is what i want.

Execute(%SrcDrv%\misc\mdac_typ.exe), comand line arguments /c:"setup.exe /QN1" to again make it a silent install.

i would appreciate if someone could give me the text that would be in the Actions/Before installing section to do the above, and any other comments about if i'm doing this correctly.

thanks for your help

charles cullen

JXBURNS
08-31-2004, 11:50 AM
Not sure about DOT NET but for MDAC see the Runtime Support section of SUF6 (on left) which will auto-install the correct version of MDAC depending upon the end users operating system. If you do not have the MDAC runtime installed, then click the DOWNLOAD MORE MODULES and follow the instructions as to where to place files etc. These work very well. Others may chip in about DOT NET framework installation but what you state sounds about right.

Rgds John

SUF6NEWBIE
08-31-2004, 01:25 PM
have a look at the thread-s in the Setup Factory 7 Beta Forum
..looking for .NET posts....have a read of the one which shows
how to detect and install the .Net Redistributable...
( the actions syntax will not be appropriate for SUF6)
--so change them to suit...

make note of the switches - which include a NO reboot control..

if silently installing .Net , you do Not want it trying to autoreboot until
your Application has fully finished , unless that is ok by you...

/Q:A /R:N /C:"Install.exe /Q"

Administrative priveleges on NT based OSs is a general install condition
for .NET (thats wot the /A switch means...) ..so if not already, must ensure
the %IsAdmin% variable returns true
(check the correct variable name) --going on memory here.!

you can leave 'is installed detection' up to DOTNETFX.EXE if you wish

you should also be able to run MDAC_TYP.EXE via /C:"DASETUP.EXE /Q /N" /Q

but yes ..the runtime module for this is Recommend

another thought is if in doubt if currently installed, there really is nothing 'wrong' with running both regardless..this in a way will ensure
the correct binary file versions will be installed on the system..(after reboot)

hope does not 'complicate' and helps a little...

Martin