Set project as startup in project group - vb6

I am using microsoft visual basic to create a VB6 application. Application is basically a usercontrol. I have a form in the applicaton.
What i need to do is as we do in Visual Studio 2008 add a new project in the same solution and set the project as a startup project ?

In VB6 You can have Project Groups (similar to solutions in Visual Studio .NET)
Project Groups contain usually two or more VB6 projects and have the extension .vbg
To create a project group open up one project, Click File>Add Project and add a second project. When you click on save you will be prompted to save the Project Group File.
To specify one project as the startup project right click on the project and select Set as Start Up

Once you've added the new project, right click on it, an go to properties, where you'll have a form as shown below;
As you can see in the image, you've got the Start up option, where you can just drop it down and choose form to start up.
For setting a PROJECT as start up, you can simply Right-click on the corresponding form select Set as Start Up from the context menu.
Visual Basic displays the startup project's name in bold type in the Project window.

Related

OpenGL set up problem when create new project via Visual Studio express 2017?

I'm using VisualStudio express 2017 as the IDE. I have set up everything for the OpenGL and everything works fine. But there is a problem, I realized that I have to set up the library and dependencies every time when I create a new project. Can anyone help me with this problem?
There's a solution to that called a Property Sheet. Since I don't use VS Express, I'll explain how to create and reuse properties for a Visual Studio Community Edition project.
Create a new project, for example a C++ Console Application (or whatever programming language you're using)
To display Property Manager go to View > Property Manager or View > Other Windows > Property Manager
In the Property Manager, left-click on the "triangle symbol" next to your project name to display the configurations.Choose the configuration you want to set up (here Debug | Win32 is highlighted)
.
Right-click on the configuration. Choose Add New Project Property Sheet. A property page dialog box appears. Enter a name (file extension .props) and where to save it. Click Add.
Left-click on the "triangle symbol" next to your configuration. You should now see your newly created property sheet. Double-click on it.
Now configure your project how you want, include dependencies , libraries, Linker etc.
After configuring, right-click on your property sheet. Save it.
Now everytime you create a new project, right-click on your project name in the Property Manager and click Add existing property sheet and brwose to its location.

Creating an installer for Visual Studio 2010 solutions (one or more projects)

I ran into some troubles when creating an installer for my Visual Studio 2010 solution (which has multiple projects) so I thought I'd make a quick guide to how I got it working...
Here is how I did it:
Create a new Visual Studio Installer project which is located under
Installed Templates/Other Project Types/Setup and Deployment/Visual Studio Installer.
Make sure you add it to you current solution, you can do this by right clicking on the solution name in the solution explorer and clicking Add>New Project
From there select Setup Wizard, give it a name and click OK
A wizard will open, click Next
then select Create a setup for a Windows application
then click Next again. Select all of the groups you want to include, namely: Content Files, Source Files, Primary Output
Then click Finish
In the solution explorer you will see a bunch of buttons find the one that's tool tip says File System Editor and click it. You will see three folders in the file system editor, the only one we really care about is the Application Folder. That folder is where your projects build output should be.
To add files to it if they are not already there right click > Add > File...
Note: You cannot add entire folders (which sucks) and the folder structure in the Application Folder should be identical to that in your projects build.
You should create each folder and then add the files to it.
If you have multiple projects you should set the build directory to the same folder under the release build settings. To do this, open your solution, and for each project, right click/Properties go to the Compile tab, set it's configuration to Releaseand its Build output path to some folder (same for each project) (If you have an XNA project make sure its Content Build/Configuration is also set to Release).
Now select Release from the drop down menu on the tool bar (it most likely says Debug now)
Right click on your solution on the solution explorer and click Build Solution
Now all of your solutions built files will appear in the folder you chose in the compile tab. All of these files are what needs to be added to the Setup Projects Application Folder (in the same structure)
Customise the installer: click on the project name in the solution explorer and look through it's properties, change what you want (i.e Author, Manufacturer, Title - these make a difference to the installers output directory and text)
Build the installer project (same way as mentioned above) and you are done.
Feel free to comment with questions

Setting properties for window installer such as Author, Description

Hi I have problem with setting properties for window installer such as Author, Description...
Project for which I want create installer package is WPF app. I set assembly properties in WPF project.
I create new project Visual Studio Project -> Setup project and add WPF assembly.
Build this project and try run app. As destionation folder I see:
C:\Program Files\Default Company Name\Spirit\
I suppose that Company name will be comapny name of assembly for which I created installation package.
I try find how set this projeties in setup project but I can’t find way how can I set this properties on setup project.
If I try set properties of setup project I see this:
I use Visual Studio 2010.
I think you are doing what I found myself doing for a while there, right click and choose properties brings up the Projects configuration properties, Build etc like you are getting.
I had my other "standard" properties window on auto hide, so I re pinned it and put it in its own window and then selecting the setup project brings up its "standard" properties.
See the screen shot below, hopefully it helps someone, this question isn't too recent
Most of this information is retrieved from the MSI Summary Information. So you can modify them by using a tool that can edit this information, for example Orca:
http://msdn.microsoft.com/en-us/library/aa370557(VS.85).aspx

Visual Studio: Set default startup project

I have a Visual Studio 2010 solution with several projects.
One of the projects is set as the default project, but I want to change that by default.
I know that I can right click the project I want to be the startup project and select "Set as StartUp project", but this setting will be stored in the user's files (.slo and .user files).
As a company policy, we don't check these files in the source control system, therefore when another user opens the solution it will have a different project as the startup object.
Is there another way to set these values? Something like a setting on the .sln or .proj files?
Thanks
From Arian Kulp's site, the way to change the default startup project for a solution is to edit the .sln file. You'll see some Project and EndProject lines. The first Project listed will be the default startup project, so just move the one you want to the top.
Follow these steps:
Choose the name of the project which you want to set default startup project
Click to the Project on toolbar and then click Set as startup project

Visual Studio 2008 Setup Project is not generating Setup.exe anymore

I have a Visual Studio 2008 Setup Project that when compiled in the past would generate a Setup.exe in the output directory along with the .msi output file. Now it no longer generates the Setup.exe which I actually do need.
Did I change a project setting without realizing? How do I get it to generate it again?
Try opening project properties, click Prerequisites button there and check "Create setup program to install prerequisite components".
This is for Visual Studio 2005, not sure if it works for Visual Studio 2008.
1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.
2.Select “Other Project Types” and click “Setup and Deployment” projects,Choose “Setup Project”give name project name in name text box finally click OK.
3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.
4.right click the MyEXE > go View > click “File System”
5.You can see the “File System on TargetMachine”under three folders
Application Folder
User’s Desktop
User’s Program Menu
6.Select Application Folder and right click Add>Project Output>select Primary output
select User’s Desktop richt click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output name to MyEXE
next >>
same procedure follows the user’s program menu also
8.If you want to change the Manufactures name for exe,just right click the project go to properties
change the properties as per you requirement
9.Finally Build the new project After successfully Build the project myEXE(Setup) will be appear in Application Debug or Release folder(depend upon the properties settings)
EXE available # this location
When you want to install the EXE on the client machine,you should be installed .NET Framework on that mc because,Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs.

Resources