?
Solved

How to create two short-cuts in the Program Start-up menu to start the same program in different modes?

Posted on 2016-08-22
6
Medium Priority
?
81 Views
Last Modified: 2016-08-29
Hi experts
What I have is one program. I would like to give user an option either to (1) start the program in one mode, or to (2) start the *same* program but in a different mode.

I shall have two short-cuts in the Windows Programs menu. But how do I do it with .NET, VS2008, Installer project?

Thanks
Dominic
0
Comment
Question by:dominicwong
[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
  • 4
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 total points
ID: 41766198
create first shortcut (you will probably have Project Output rather than Notepad)
create shortcut
create second shortcut
create another shortcut
specify Arguments for the first shortcut
specify parameter for the first shortcut
specify different Arguments for the second shortcut
specify parameter for the second shortcut
move 1st shortcut to Programs Menu
move first shortcut to start menu
move 2nd shortcut to Programs Menu
move second shortcut to start menu
1
 

Author Comment

by:dominicwong
ID: 41766301
It works perfectly. :)

Thanks Vadim for your prompt response and taking the screenshots for the clear illustration. I appreciate it!!

BTW, since some users are interested only the first mode while some are interested in both, is there any easy way to disable the creation of the 2nd shortcut from the Installer project?
0
 

Author Comment

by:dominicwong
ID: 41771237
Thanks Vadim
0
How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41773014
>  since some users are interested only the first mode while some are interested in both, is there any easy way to disable the creation of the 2nd shortcut from the Installer project?

This is possible with Windows Installer, but not with Setup and Deployment project in Visual Studio, which implements only a small subset of the most trivial features of Installer. The installation would include two so called "features", which would be selectable by the user (similar to how you select the features of Microsoft Office to install, if you choose custom installation); but for that you need either more capable MSI editor, or free ORCA or WiX plus intimate knowledge of MSI structure. WiX can be installed as an add-on to the same Visual Studio, but expect quite a learning curve.

Once the features are implemented (with a separate feature having the 2nd shortcut disabled by default), besides the selection by the user, you can create so called transform that enables the second feature, and deploy the installation with transform to one set of users, and without it to another.

There are also other interesting possibilities, such as installing the second feature (thus 2nd shortcut) only for the users who satisfy certain criteria, for example only those who already have another product installed. This is often used by product authors whose product includes, say , a Word macro - they install the macro only to those who have Word.
0
 

Author Comment

by:dominicwong
ID: 41775763
Thanks Vadim for your help. I appreciate it.
0
 

Author Closing Comment

by:dominicwong
ID: 41775764
I thought I'd closed it. I am closing it again.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 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