Solved

Using a bootstrapper & VB.NET

Posted on 2004-04-02
11
817 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 68
Angular JS Route 3 68
Search an image for an image 3 28
Call windows 10 virtual keyboard from windows forms app 2 32
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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