473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

vb.net windows deployment

when creating a setup project how can you control what is the default folder name and path that the deployment should place the executable.
Then how do you make it create a link to that exe from either the windows start menu or windows desktop.

I have created deployment .msi files but I have no control over the placement folder it uses the name of the setup project.
When I use the application folders in deployment it creates two exe's on the user's pc.

Basically need some way of controlling all of this.
The on line help still leaves me clueless

--------------------------------
From: RustyLI

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>9L+uG1UyIEGT7TTGiYtFHQ==</Id>
Nov 21 '05 #1
6 2458
Go to the Special folders; program files, create a new file with whatever
name you want, add your assembly...
Nov 21 '05 #2
"RustyLI via .NET 247" <an*******@dotnet247.com> schrieb:
when creating a setup project how can you control what is the default
folder name and path that the deployment should place the executable.
Then how do you make it create a link to that exe from either the windows
start menu or windows desktop.

I have created deployment .msi files but I have no control over the
placement folder it uses the name of the setup project.
When I use the application folders in deployment it creates two exe's on
the user's pc.


Inside the setup project, have a look at the buttons above the "solution"
explorer. There is one view that will show you the file system of the
destination computer. You can place the files to be copied there.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Hi guys,
thanks for the response.
My problem is not that the correct exe is not getting "deployed"
There are two problems:
1) I can not put it in the correct folder
i.e programfiles/myfolder

2) the user start menu loads another exe so I have two - not one with a
shortcut

thanks

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #4
To create a link to the Desktop:

Go to your output directory, right-click, new shortcut.... Now, cut this
shortcut, choose Desktop on the left (special folders), paste it & if no
line appears then you are ok. The icon will then be the default program icon

In the online MSDN help is a simple example of setup programs... These show
you what you need to know
Nov 21 '05 #5
I wish I understood where in msdn online my questions were answered - right
now

Using your suggestion the following happens:
When installing:
The first message reads installer will install setupMyProject
to the following folder:
c:\program files\somename\setupMyProject
1) setupMyProject = the name of the setup project in my Applications
solution.
2)somename = a default name that I have no idea where it came from

It actually creates this default folder and places
msvcp71.dll and msvcr71.dll in the folder some c++ runtime dll's which I
don't need and are no where in my vs.net project

Yes it does create an icon on my desk top but it also puts the
app.exe.config file on the desktop. The location path is C:\Documents and
Settings\myname\Desktop

What I wanted is a shortcut on the desktop to an exe and config file in
the folder: Program files\myApp

I would really appreciate it If someone could point to a link that
describes how to really do this or tell me how.

thanks

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #6
Well I was sort of able to figure this all out.
The real big problem was making sure "the always create" property was set
to true for all the folders I was using under "file system on target
machine".

I was able to create a new folder under "program files" with the primary
output of the application project; and also the icon I wanted to show on
the desk top.

I was able to create a short cut to the primary output and drag that into
the User's Desktop. I had to use properties to change the name on the
shortcut and point to the icon I wanted it to display.

Setup worked OK except that I still get a misleading message of where I
want to place the setup - usually you are asked where do you want to put
the actual application exe; and it is loading the c++ files in the strange
default folder.

If someone could tell me how to get rid of the "unneeded ?" C++ files, and
the strange default - I will be A-OK.

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JP Burford | last post by:
I am working on testing zero deployment on Windows 2003 server. The application I am testing is a simple Managed application written in C#. When I access the application I receive the following...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: dcbud | last post by:
I'm hoping to get a response from developers with experience in both developing applications for Windows and the Web using VS.NET2005. I'm looking for input as to why we would want to develop a web...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
3
by: Mike P | last post by:
Last week I wrote a windows app, published it and then installed it on my local machine. It all worked perfectly. Now today when I try to run the app from my Start menu I get the error...
1
by: kirk.quinbar | last post by:
Have you ever used a .net deployment project to install a windows service? If so, then i ran into an issue recently that maybe you could shed some light on. I am sure I probably did something...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.