472,119 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Conditional setup question

Hi

I have an app to deal with two companies A & B within a group of companies
depending on which database is selected. Is it possible for setup to ask the
user at install time which company they want to install the app for and then
pass the relevant database path as parameter in the desktop shortcut?

Thanks

Regards

Nov 20 '05 #1
3 1646
I am sure this is possible. You need to put in a custom dialog in your installtion (how you do this depends on which install tool you are using).

But would it not be better if you just write this setting to a config file instead of passing this as a parameter?

"John" wrote:
Hi

I have an app to deal with two companies A & B within a group of companies
depending on which database is selected. Is it possible for setup to ask the
user at install time which company they want to install the app for and then
pass the relevant database path as parameter in the desktop shortcut?

Thanks

Regards

Nov 20 '05 #2
I am using vs.net setup project. By allowing the user to select, they can
decide which version do they want. I don't mind if the setup can save the
info in a configuration file instead of using a parameter.

Regards
"Anand M [MVP]" <Anand M [MVP]@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I am sure this is possible. You need to put in a custom dialog in your installtion (how you do this depends on which install tool you are using).
But would it not be better if you just write this setting to a config file instead of passing this as a parameter?
"John" wrote:
Hi

I have an app to deal with two companies A & B within a group of companies depending on which database is selected. Is it possible for setup to ask the user at install time which company they want to install the app for and then pass the relevant database path as parameter in the desktop shortcut?

Thanks

Regards

Nov 20 '05 #3
John,
Within a Setup project, you can put conditional's on files that are
installed, however it does not appear that you can put a conditional on a
short cut.

So using one or more of dialog boxes (RadioButton, Checkbox, or Textbox) in
the User Interface designer of the Setup Project, you can ask which company
to install.

Then within the File Designer you can set the condition on that file to only
install if the above condition is true ([company] = "my company").

I have used the conditional logic to install optional components, I have not
tried it with a config files. Based on the above I would try to include an
app.config (myproject.exe.config) file for each company, that has a
condition on it that matches the company based on one of my UI inputs... My
concern is that the Setup will not allow the same file
(myproject.exe.config) in the setup project multiple times... A custom
action might be the alternative...

Hope this helps
Jay

"John" <jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I am using vs.net setup project. By allowing the user to select, they can
decide which version do they want. I don't mind if the setup can save the
info in a configuration file instead of using a parameter.

Regards
"Anand M [MVP]" <Anand M [MVP]@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I am sure this is possible. You need to put in a custom dialog in your installtion (how you do this depends on which install tool you are using).

But would it not be better if you just write this setting to a config file instead of passing this as a parameter?

"John" wrote:
Hi

I have an app to deal with two companies A & B within a group of
companies depending on which database is selected. Is it possible for setup to
ask the user at install time which company they want to install the app for
and
then pass the relevant database path as parameter in the desktop shortcut?

Thanks

Regards


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by pk | last post: by
5 posts views Thread by Andrew Chanter | last post: by
5 posts views Thread by paulo | last post: by
3 posts views Thread by i3dmaster | last post: by
reply views Thread by leo001 | last post: by

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.