?
Solved

Using a bootstrapper & VB.NET

Posted on 2004-04-02
11
Medium Priority
?
846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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
 
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 1500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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