Solved

Using a bootstrapper & VB.NET

Posted on 2004-04-02
11
799 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:Trancedified
  • 6
  • 5
11 Comments
 
LVL 7

Expert Comment

by:RealMrTea
ID: 10744948
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
0
 
LVL 1

Author Comment

by:Trancedified
ID: 10745070
RealMrTea,

Close but can't open the solution... and it's in C++/C#? Do you have it in VB.NET?
0
 
LVL 7

Expert Comment

by:RealMrTea
ID: 10745165
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
0
 
LVL 1

Author Comment

by:Trancedified
ID: 10760319
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
0
 
LVL 7

Expert Comment

by:RealMrTea
ID: 10760367
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.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:Trancedified
ID: 10760484
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
0
 
LVL 7

Expert Comment

by:RealMrTea
ID: 10760498
Not sure send me the ini you are using.
0
 
LVL 1

Author Comment

by:Trancedified
ID: 10760585
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\"
0
 
LVL 1

Author Comment

by:Trancedified
ID: 10760597
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\"
0
 
LVL 7

Accepted Solution

by:
RealMrTea earned 500 total points
ID: 10765804
Looks like you should have "../ECS Imaging Inc/ECS Imaging Inc.msi" using the "/" instead of the "\".
0
 
LVL 1

Author Comment

by:Trancedified
ID: 10767980
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now