Conditional setup question

  • Thread starter Thread starter John
  • Start date Start date
J

John

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
 
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?
 
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 said:
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,
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
 
Back
Top