Link to home
Start Free TrialLog in
Avatar of Trancedified
TrancedifiedFlag for United States of America

asked on

Using a bootstrapper & VB.NET

Hello,

I read up in the .NET section on how to deploy my application with MDAC 2.7 & the .NET Framework Redistributable all rolled into one.

Most of the posts tell us to use a bootstrapper from:
http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en

To include the .NET Framework 1.1 you do this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingsetupexebootstrappersamplewithapplication.asp

After unzipping the downloaded file. I see an .exe and a settings.ini file like:

[Bootstrap]
Msi=FxCopSourceSetup.msi
'LanguageDirectory=jpn
'ProductName=testproductname
'DialogText=
'CaptionText=
'ErrorCaptionText=
'FxInstallerPath=c:

How would you alter this to include the MDAC 2.7 EXE file?

Thanks! Have a great weekend, Experts.

Chris
Avatar of RealMrTea
RealMrTea

I am pretty sure you can not make the bootstrapper do this out of the box like you would think.  You would need to go in and edit the code.

I would suggest however that you take a look at http://www.codeproject.com/dotnet/dotNetInstaller.asp?target=bootstrapper because it is already done here.

Hope that helps,
Eric
Avatar of Trancedified

ASKER

RealMrTea,

Close but can't open the solution... and it's in C++/C#? Do you have it in VB.NET?
I did not write it.  It has to be in C++ so it will work even if the .NET framework is not present.  The MS .NET bootsrapper is also written in C++ for this same reason.

You can not write a proper bootstrapper in anything but C++ because it does not rely on frameworks or run-times.

If you read the comment on the website, you will see that all you really need to do is edit the configuration file to make it do what you want.

Give it a second chance,
Eric
Eric,

Yeah all I needed to add was:

[Bootstrap]

MDACInstallerPath=C:\myinstallationfolder\

However, would you happen to know an equivalent for VB6's App.Path, but applied to the boostrapper?

Why? Because notice the boostrapper asks you to put C:\ in there. I have a folder that holds my MDAC 2.7.exe file, dotnetfx.exe and my .MSI. But it won't necessarily be on the C:\ everytime I put this app on another computer.

would something like ..\my_folder\Setup.msi          work?   (I had to rename my .MSI because it had spaces)
[Bootstrap]
Msi=..\my_folder\Setup.msi
'LanguageDirectory=
'ProductName=My Product Name
'DialogText=
'CaptionText=
'ErrorCaptionText=
FxInstallerPath=..\my_folder\
MDACInstallerPath=..\my_folder\

Chris
I did not know about the MDACInstallerPath.  Good to know.

Instead of renaming your MSI names, you could soround the path with double quotes like this -> "..\my folder\My Setup.msi".

You should be able to use relative paths to locate your MDAC instal just as you have done with your Msi tag.  ..\ goes back a folder and finds the my_folder folder and then finds the setup.msi inside there.  You should be able to do the same with the MDACInstallerPath if you are including it on your CD.
Eric,

Yeah I tried it with the quotes as well as renaming the .msi and the folder back to the original so there are no underscores _

I get an error:

"Incorrect Command Line Paramaters"

Any ideas?

Chris
Not sure send me the ini you are using.
ok this is the exact .ini w/out the generalized "My Bootstrapper" the file is called settings.ini



[Bootstrap]
Msi="..\ECS Imaging Inc\ECS Imaging Inc.msi"
'LanguageDirectory=
'ProductName=ECS Reporting Services
'DialogText=
'CaptionText=ECS Reporting Services
'ErrorCaptionText=
FxInstallerPath="\ECS Imaging Inc\"
MDACInstallerPath="\ECS Imaging Inc\"
I also tried it w/ the ..\'s

[Bootstrap]
Msi="..\ECS Imaging Inc\ECS Imaging Inc.msi"
'LanguageDirectory=
'ProductName=ECS Reporting Services
'DialogText=
'CaptionText=ECS Reporting Services
'ErrorCaptionText=
FxInstallerPath="..\ECS Imaging Inc\"
MDACInstallerPath="..\ECS Imaging Inc\"
ASKER CERTIFIED SOLUTION
Avatar of RealMrTea
RealMrTea

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I wish that worked but the bootstrapper failed. I tried renaming the .msi and the folder so there won't be any spaces (taking out the quotes too) but it didn't work.

Any more ideas?

chris