473,378 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Setup & Deployment - how can I specify a network folder at install-time?

Hello everyone:

I am developing a VB.Net Windows Application and I am now ready to create
the deployment project for it.

This application needs to be installable on a different number of users /
clients, and the application has an Access DB out on their network.
How can I create a deployment routine where I can have a dialog box prompt
for the network share (i.e. \\server\dbfolder) at install-time?
Once network the share is specified I would then need to be able to have the
deployment / install routine write what was input from that dialog box to
the registry?

I've searched the NG's and reference books and am coming up with nothing.
Does anyone know how I can do this?

Your help is greatly appreciated !! Thank you in advance.

- Paul.
Jul 21 '05 #1
6 1998
Hi Paul

You could do this in 2 ways
1. Create a custom installer class that would allow you to prompt a
network/file dialog.

see System.Configuration.Install.Installer for information.
This allows you to communicate to the installer using variable information
and fields you create.

Custom installers is pretty nice after using it a couple of times.

2. Create a form within the installer to capture the information, this means
the user is going to have to "type" the information into a text box which
you then can use with install actions.

Method 1 might be more what you are looking for , I think

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:1dq2e.32232$qN3.20775@trndny01...
Hello everyone:

I am developing a VB.Net Windows Application and I am now ready to create
the deployment project for it.

This application needs to be installable on a different number of users /
clients, and the application has an Access DB out on their network.
How can I create a deployment routine where I can have a dialog box prompt
for the network share (i.e. \\server\dbfolder) at install-time?
Once network the share is specified I would then need to be able to have
the deployment / install routine write what was input from that dialog box
to the registry?

I've searched the NG's and reference books and am coming up with nothing.
Does anyone know how I can do this?

Your help is greatly appreciated !! Thank you in advance.

- Paul.

Jul 21 '05 #2
Henk, thank you for that info - I really appreciate it.

For method #2 (create a form) would I use the User Interface Editor of the
Deployment project to create the form, or would I have to create a new
windows form and somehow link it in via the User Interface Editor? I'm
asking because the UI editor has dialog boxes you can choose from but none
seem to allow for a dialog box with a text box field on it.

Thanks again,
Paul.

"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:O2**************@TK2MSFTNGP14.phx.gbl...
Hi Paul

You could do this in 2 ways
1. Create a custom installer class that would allow you to prompt a
network/file dialog.

see System.Configuration.Install.Installer for information.
This allows you to communicate to the installer using variable information
and fields you create.

Custom installers is pretty nice after using it a couple of times.

2. Create a form within the installer to capture the information, this
means the user is going to have to "type" the information into a text box
which you then can use with install actions.

Method 1 might be more what you are looking for , I think

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:1dq2e.32232$qN3.20775@trndny01...
Hello everyone:

I am developing a VB.Net Windows Application and I am now ready to create
the deployment project for it.

This application needs to be installable on a different number of users /
clients, and the application has an Access DB out on their network.
How can I create a deployment routine where I can have a dialog box
prompt for the network share (i.e. \\server\dbfolder) at install-time?
Once network the share is specified I would then need to be able to have
the deployment / install routine write what was input from that dialog
box to the registry?

I've searched the NG's and reference books and am coming up with nothing.
Does anyone know how I can do this?

Your help is greatly appreciated !! Thank you in advance.

- Paul.


Jul 21 '05 #3
Just an update, I did find the TextBoxes dialog boxes in the User Interface
Editor.
So from this point, I just have to look up how to use them.

- Paul.

"Paul" <pa***********@paulgro.com> wrote in message
news:rmH2e.33351$qN3.29534@trndny01...
Henk, thank you for that info - I really appreciate it.

For method #2 (create a form) would I use the User Interface Editor of the
Deployment project to create the form, or would I have to create a new
windows form and somehow link it in via the User Interface Editor? I'm
asking because the UI editor has dialog boxes you can choose from but none
seem to allow for a dialog box with a text box field on it.

Thanks again,
Paul.

"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:O2**************@TK2MSFTNGP14.phx.gbl...
Hi Paul

You could do this in 2 ways
1. Create a custom installer class that would allow you to prompt a
network/file dialog.

see System.Configuration.Install.Installer for information.
This allows you to communicate to the installer using variable
information and fields you create.

Custom installers is pretty nice after using it a couple of times.

2. Create a form within the installer to capture the information, this
means the user is going to have to "type" the information into a text box
which you then can use with install actions.

Method 1 might be more what you are looking for , I think

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:1dq2e.32232$qN3.20775@trndny01...
Hello everyone:

I am developing a VB.Net Windows Application and I am now ready to
create the deployment project for it.

This application needs to be installable on a different number of users
/ clients, and the application has an Access DB out on their network.
How can I create a deployment routine where I can have a dialog box
prompt for the network share (i.e. \\server\dbfolder) at install-time?
Once network the share is specified I would then need to be able to have
the deployment / install routine write what was input from that dialog
box to the registry?

I've searched the NG's and reference books and am coming up with
nothing. Does anyone know how I can do this?

Your help is greatly appreciated !! Thank you in advance.

- Paul.



Jul 21 '05 #4
HI Paul

Yes, you can now use the form ID as a internal variable during setup. I
still think a custom installer might be more what you are looking for, this
allows a little more control over writing to file's etc.

henk

"Paul" <pa***********@paulgro.com> wrote in message
news:cDH2e.48033$db6.3949@trndny02...
Just an update, I did find the TextBoxes dialog boxes in the User
Interface Editor.
So from this point, I just have to look up how to use them.

- Paul.

"Paul" <pa***********@paulgro.com> wrote in message
news:rmH2e.33351$qN3.29534@trndny01...
Henk, thank you for that info - I really appreciate it.

For method #2 (create a form) would I use the User Interface Editor of
the Deployment project to create the form, or would I have to create a
new windows form and somehow link it in via the User Interface Editor?
I'm asking because the UI editor has dialog boxes you can choose from but
none seem to allow for a dialog box with a text box field on it.

Thanks again,
Paul.

"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:O2**************@TK2MSFTNGP14.phx.gbl...
Hi Paul

You could do this in 2 ways
1. Create a custom installer class that would allow you to prompt a
network/file dialog.

see System.Configuration.Install.Installer for information.
This allows you to communicate to the installer using variable
information and fields you create.

Custom installers is pretty nice after using it a couple of times.

2. Create a form within the installer to capture the information, this
means the user is going to have to "type" the information into a text
box which you then can use with install actions.

Method 1 might be more what you are looking for , I think

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:1dq2e.32232$qN3.20775@trndny01...
Hello everyone:

I am developing a VB.Net Windows Application and I am now ready to
create the deployment project for it.

This application needs to be installable on a different number of users
/ clients, and the application has an Access DB out on their network.
How can I create a deployment routine where I can have a dialog box
prompt for the network share (i.e. \\server\dbfolder) at install-time?
Once network the share is specified I would then need to be able to
have the deployment / install routine write what was input from that
dialog box to the registry?

I've searched the NG's and reference books and am coming up with
nothing. Does anyone know how I can do this?

Your help is greatly appreciated !! Thank you in advance.

- Paul.



Jul 21 '05 #5
Hi Henk, thank you again for your help.

Would you know of any books or resources that would provide more details
(walkthroughs) for setting up the custom installer as you've described
below - that is, to collect a network share / folder to be written to a
registry entry?

Best Regards,
Paul.
"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
HI Paul

Yes, you can now use the form ID as a internal variable during setup. I
still think a custom installer might be more what you are looking for,
this allows a little more control over writing to file's etc.

henk

"Paul" <pa***********@paulgro.com> wrote in message
news:cDH2e.48033$db6.3949@trndny02...
Just an update, I did find the TextBoxes dialog boxes in the User
Interface Editor.
So from this point, I just have to look up how to use them.

- Paul.

"Paul" <pa***********@paulgro.com> wrote in message
news:rmH2e.33351$qN3.29534@trndny01...
Henk, thank you for that info - I really appreciate it.

For method #2 (create a form) would I use the User Interface Editor of
the Deployment project to create the form, or would I have to create a
new windows form and somehow link it in via the User Interface Editor?
I'm asking because the UI editor has dialog boxes you can choose from
but none seem to allow for a dialog box with a text box field on it.

Thanks again,
Paul.

"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:O2**************@TK2MSFTNGP14.phx.gbl...
Hi Paul

You could do this in 2 ways
1. Create a custom installer class that would allow you to prompt a
network/file dialog.

see System.Configuration.Install.Installer for information.
This allows you to communicate to the installer using variable
information and fields you create.

Custom installers is pretty nice after using it a couple of times.

2. Create a form within the installer to capture the information, this
means the user is going to have to "type" the information into a text
box which you then can use with install actions.

Method 1 might be more what you are looking for , I think

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:1dq2e.32232$qN3.20775@trndny01...
> Hello everyone:
>
> I am developing a VB.Net Windows Application and I am now ready to
> create the deployment project for it.
>
> This application needs to be installable on a different number of
> users / clients, and the application has an Access DB out on their
> network.
> How can I create a deployment routine where I can have a dialog box
> prompt for the network share (i.e. \\server\dbfolder) at install-time?
> Once network the share is specified I would then need to be able to
> have the deployment / install routine write what was input from that
> dialog box to the registry?
>
> I've searched the NG's and reference books and am coming up with
> nothing. Does anyone know how I can do this?
>
> Your help is greatly appreciated !! Thank you in advance.
>
> - Paul.
>



Jul 21 '05 #6
Hi Paul

Unfortunately I did not find any, I found some sample code and adopted my
code accordingly

I found these articles and they may help, I can always send you a sample
file, but this articles seem to be very helpful.

To answer your other question.
You probably going to use the open dialog control available in .NET or build
your own, depending what you want to do, I.E Allow the user to map a drive
dynamically or simply just select a existing network mapped drive. (the
latter you can use the default open dialog).

See
http://www.devx.com/dotnet/Article/20849
http://msdn.microsoft.com/vstudio/de...tml/vs04j7.asp

The last one listed seem to be a very good article..A sure keeper!!

Remember, once you are in the custom action, then you can use all the
classes available to you in the .NET framework to read/write to resources
providing the isstalation is done with administrative priveledges or rights
to access these resources.

Henk


"Paul" <pa***********@paulgro.com> wrote in message
news:Ag04e.2361$7b.12@trndny04...
Hi Henk, thank you again for your help.

Would you know of any books or resources that would provide more details
(walkthroughs) for setting up the custom installer as you've described
below - that is, to collect a network share / folder to be written to a
registry entry?

Best Regards,
Paul.
"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
HI Paul

Yes, you can now use the form ID as a internal variable during setup. I
still think a custom installer might be more what you are looking for,
this allows a little more control over writing to file's etc.

henk

"Paul" <pa***********@paulgro.com> wrote in message
news:cDH2e.48033$db6.3949@trndny02...
Just an update, I did find the TextBoxes dialog boxes in the User
Interface Editor.
So from this point, I just have to look up how to use them.

- Paul.

"Paul" <pa***********@paulgro.com> wrote in message
news:rmH2e.33351$qN3.29534@trndny01...
Henk, thank you for that info - I really appreciate it.

For method #2 (create a form) would I use the User Interface Editor of
the Deployment project to create the form, or would I have to create a
new windows form and somehow link it in via the User Interface Editor?
I'm asking because the UI editor has dialog boxes you can choose from
but none seem to allow for a dialog box with a text box field on it.

Thanks again,
Paul.

"Henk Verhoeven" <henk.verhoeven@_nospam_bluecod.net.nonospam> wrote in
message news:O2**************@TK2MSFTNGP14.phx.gbl...
> Hi Paul
>
> You could do this in 2 ways
> 1. Create a custom installer class that would allow you to prompt a
> network/file dialog.
>
> see System.Configuration.Install.Installer for information.
> This allows you to communicate to the installer using variable
> information and fields you create.
>
> Custom installers is pretty nice after using it a couple of times.
>
> 2. Create a form within the installer to capture the information, this
> means the user is going to have to "type" the information into a text
> box which you then can use with install actions.
>
> Method 1 might be more what you are looking for , I think
>
> Henk
>
>
>
>
> "Paul" <pa***********@paulgro.com> wrote in message
> news:1dq2e.32232$qN3.20775@trndny01...
>> Hello everyone:
>>
>> I am developing a VB.Net Windows Application and I am now ready to
>> create the deployment project for it.
>>
>> This application needs to be installable on a different number of
>> users / clients, and the application has an Access DB out on their
>> network.
>> How can I create a deployment routine where I can have a dialog box
>> prompt for the network share (i.e. \\server\dbfolder) at
>> install-time?
>> Once network the share is specified I would then need to be able to
>> have the deployment / install routine write what was input from that
>> dialog box to the registry?
>>
>> I've searched the NG's and reference books and am coming up with
>> nothing. Does anyone know how I can do this?
>>
>> Your help is greatly appreciated !! Thank you in advance.
>>
>> - Paul.
>>
>
>



Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I...
6
by: Joăo Santa Bárbara | last post by:
hi all i need to create an setup package that registers an assembly can some one tell me how to start ?? thks JSB
1
by: Michael A. Covington | last post by:
When I build my setup project, I get three files: setup.exe, setup.ini. and myapplication.msi. These go into a folder called (setup project)/bin/Release. If any other files are in that folder,...
1
by: source | last post by:
I have a setup project and I am adding registry entries in my setup. For one of my regitry entries I need to assing the value of the path. When I put the value of my registry as \mypage.htm when...
5
by: George | last post by:
VB.net 2003 standard, XP windows home edition. Installed first application OK today. When I removed the application via Control Panel, there were no problems and the app folders were deleted. ...
5
by: Fred Nelson | last post by:
Hi: I've written a really cool VB.NET application that I want to install on the many computers in my company (all located behind a firewall) so I'm trying to create a Setup and Deployment...
0
by: Aparna Rege | last post by:
Hi, I want to create an installation for my project (built using VB.Net 2003). I have two components in the setup and user may install only one of them to start with. I would like to give users...
7
by: Bob | last post by:
I want my aps to the insalled as was the old way under c:\Program files\Myapp or give the user the choice as before of installing the app in another folder location. That again no longer seems...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
3
by: Dave Wurtz | last post by:
All, I have a setup (deployment) project in my solution that installs my application. I also have help files outside of my solution that I want to include into my setup project. All of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.