473,686 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1752
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.mi crosoft.com> wrote in message
news:71******** *************** ***********@mic rosoft.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.in fovis.co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.mi crosoft.com> wrote in message
news:71******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2678
by: David Winter | last post by:
(Sorry - couldn't find a generic DocBook NG - I hope this is close enough.) I'm considering moving my documentation and translation business - which is currently done in proprietary formats such as FrameMaker, Word and XPress - to a system centered around DocBook. I'm currently reading "DocBook - The Definitive Guide", but I'll need a few answers ASAP ... So maybe a kind soul could give me at least a few hints.
9
1713
by: pk | last post by:
Here is my problem. I want to make a webapp that will basically take the work out of finding what tool works for what situation. There are 5 factors that go into tool selection. 1)Material Group, 2)Insert Radius, 3)Insert Type and Size, and 2 others that I can't remember off-hand. There are probably about 1000 different scenarios that I have to code for..(there are several blank table cells and it's not setup as you might imagine,...
13
6082
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which during production. Usually, this only wraps code used to control quitting the whole app versus just shutting a form, but it can also control many other things. However, as part of the build before delivering an update, I have to remember to...
5
8962
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd on white, the third on gray etc etc.) I could write an expression based on the odd/even status of the primary key but this wont work when sorting and filtering is applied. Any suggestions gratefully received.
7
2330
by: John Dolinka | last post by:
I have a project of several files with #defines to setup a conditional compile. I would like to put these #defines in a single file and change the conditional compile from this one file with the #defines using an "include like" directive. C# does not have a #include directive so it appears that I can not do this. Am I missing something? Is it possible to do this in c#.
9
4779
by: Marty | last post by:
Hi, Does using the the conditional operator (?:) instead of the common "if" statement will give a performance gain in a C# .NET 2003 application (even in C# .NET 2005?). What is the advantage of using it in C# other than typing shorter if ? Thanks, Marty
5
2899
by: paulo | last post by:
Can anyone please tell me how the C language interprets the following code: #include <stdio.h> int main(void) { int a = 1; int b = 10; int x = 3;
3
2467
by: somenath | last post by:
Hi All, I have one question regarding the conditional operator. In the draft C99 standard it is mentioned that "1 The following are the sequence points described in 5.1.2.3: -- The call to a function, after the arguments have been evaluated (6.5.2.2). -- The end of the first operand of the following operators: logical AND && (6.5.13);
3
971
by: i3dmaster | last post by:
Is there a feature in distutils or easy_install to specify what version of python that the target package can be installed? For example, if a package has a module that only needed if the python version < 2.6, is there a way to specifiy that in setup.py or easy_install cfg file so that when installing to python >= 2.6, this module wouldn't be installed?? Thanks, Jim
0
8516
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7599
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4308
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2945
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.