christian_F
03-02-2004, 10:25 PM
Well i Finally Figured it out and so i will now Post HOW TO WRITE A SETUP file in VB.Net:
In this Example i have ALREADy made a project Called "WP"(or Word Processor).
1.Start By Creating a New Project Then Select "Setup and Deployment Project" on the Left Side and i Named it "WP Setup"
2.Add the Output of a Previously created project.
a.Select "File" then "Add Project" then "Existing Project"
b.Choose the Program inside of the File created by VB in this Case the "WP.vbproj" From the project Folder.
c.You will now have the "WP" and the "WP" setup file in your Solution Explorer.
d.Click the Setup
e.Choose the "project" menu>Add>Project Output to Open the Add Project Output Group dialog box.
f.Select Primary Output and click OK.
g.Click on the Application folder in the Left panel to view its contents. It should have the Primary Output from the WP.(Or your project).
3.Set the Installation Location of a File.
a.Right-click the Application folder in the left panel and choose "Properties Window".
b.Modify the DefaultLocation property as desired. I Remove the [manufacturer] folder.
4.Specify Build options of a project output.
a.Right-click the project in the solution explorer and choose "Properties".
b.Select the Build section in "Common Properties", on the left panel, It is here where you can add your own custom icon or by default. It is recommended that you add it to the bin folder or your project. Also note that Option Explicit and Option Strict are Turned On.
5.Add a file to the installation program.
a.Select the Setup project in the solution Explorer.
b.choose Project>Add File
6.Create a shortcut to the start menu.
a.Select Application Folder in the left panel.
b.Right-click the primaryoutput from your project.
c.Choose "Create shortcut to primary output from (Yourproject)"
d.Rename the Shortcut
e.Right-click "primary output from )Your project)"
f.Choose "Create shortcut to primary output from(yourproject)"
g.Drag the Shortcut to "Users Desktop" folder
h.Rename the Shortcut to the name of your project in this case "WP"
i.Right-Click the "primary output from (Your project)"
j.Choose the "Create shortcut..."
k.Drag to the "User's Programs menu" folder
l.Rename the shortcut "WP" or to your Project name.
7.Define the Build Configuration for the Setup
a.Choose the BUILD>Configuration Manager
b.Select "Release" for both the "WP(your project name)" and "WP setup(project names setup)"
8.Build the Setup program.
a.Choose Build>Build Solution
9.Distribute files!
a. inside of the "Release" folder in the setup project you made you will find three files; Setup.exe,Setup.ini. and Your Projects Setup.msi
b.If the machine you are going to install your program on does not have the .NET frameworks on it you will also need to have the dotnetfx.exe(.Net FrameWorks installer). This may be downloaded from microsoft,here (http://msdn.microsoft.com/netframework/technologyinfo/howtoget/default.aspx)) If this is a broken link tell me.
And thats all there is too it...
P.S. could a Mod Sticky this?
P.S.S. of there is something that you need help with please feel free to ask and ill help you out :D
In this Example i have ALREADy made a project Called "WP"(or Word Processor).
1.Start By Creating a New Project Then Select "Setup and Deployment Project" on the Left Side and i Named it "WP Setup"
2.Add the Output of a Previously created project.
a.Select "File" then "Add Project" then "Existing Project"
b.Choose the Program inside of the File created by VB in this Case the "WP.vbproj" From the project Folder.
c.You will now have the "WP" and the "WP" setup file in your Solution Explorer.
d.Click the Setup
e.Choose the "project" menu>Add>Project Output to Open the Add Project Output Group dialog box.
f.Select Primary Output and click OK.
g.Click on the Application folder in the Left panel to view its contents. It should have the Primary Output from the WP.(Or your project).
3.Set the Installation Location of a File.
a.Right-click the Application folder in the left panel and choose "Properties Window".
b.Modify the DefaultLocation property as desired. I Remove the [manufacturer] folder.
4.Specify Build options of a project output.
a.Right-click the project in the solution explorer and choose "Properties".
b.Select the Build section in "Common Properties", on the left panel, It is here where you can add your own custom icon or by default. It is recommended that you add it to the bin folder or your project. Also note that Option Explicit and Option Strict are Turned On.
5.Add a file to the installation program.
a.Select the Setup project in the solution Explorer.
b.choose Project>Add File
6.Create a shortcut to the start menu.
a.Select Application Folder in the left panel.
b.Right-click the primaryoutput from your project.
c.Choose "Create shortcut to primary output from (Yourproject)"
d.Rename the Shortcut
e.Right-click "primary output from )Your project)"
f.Choose "Create shortcut to primary output from(yourproject)"
g.Drag the Shortcut to "Users Desktop" folder
h.Rename the Shortcut to the name of your project in this case "WP"
i.Right-Click the "primary output from (Your project)"
j.Choose the "Create shortcut..."
k.Drag to the "User's Programs menu" folder
l.Rename the shortcut "WP" or to your Project name.
7.Define the Build Configuration for the Setup
a.Choose the BUILD>Configuration Manager
b.Select "Release" for both the "WP(your project name)" and "WP setup(project names setup)"
8.Build the Setup program.
a.Choose Build>Build Solution
9.Distribute files!
a. inside of the "Release" folder in the setup project you made you will find three files; Setup.exe,Setup.ini. and Your Projects Setup.msi
b.If the machine you are going to install your program on does not have the .NET frameworks on it you will also need to have the dotnetfx.exe(.Net FrameWorks installer). This may be downloaded from microsoft,here (http://msdn.microsoft.com/netframework/technologyinfo/howtoget/default.aspx)) If this is a broken link tell me.
And thats all there is too it...
P.S. could a Mod Sticky this?
P.S.S. of there is something that you need help with please feel free to ask and ill help you out :D