Solved

Using a bootstrapper & VB.NET

Posted on 2004-04-02
11
835 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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