473,385 Members | 2,003 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,385 software developers and data experts.

launch vb.net app from its shortcut from another app after deployi

Greetings,

I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.

Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?

Thanks,
Rich

Mar 1 '07 #1
6 3423
On Mar 1, 12:26 pm, Rich <R...@discussions.microsoft.comwrote:
Greetings,

I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.

Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?

Thanks,
Rich
System.Diagnostics.Process.Start("SecondApp.Lnk")

Thanks,

Seth Rowe

Mar 1 '07 #2
Thanks. So I guess this does not require any path? Well, I will find out,
won't I.

Thanks again,
Rich

"rowe_newsgroups" wrote:
On Mar 1, 12:26 pm, Rich <R...@discussions.microsoft.comwrote:
Greetings,

I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.

Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?

Thanks,
Rich

System.Diagnostics.Process.Start("SecondApp.Lnk")

Thanks,

Seth Rowe

Mar 2 '07 #3
On Mar 1, 7:28 pm, Rich <R...@discussions.microsoft.comwrote:
Thanks. So I guess this does not require any path? Well, I will find out,
won't I.

Thanks again,
Rich

"rowe_newsgroups" wrote:
On Mar 1, 12:26 pm, Rich <R...@discussions.microsoft.comwrote:
Greetings,
I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.
Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?
Thanks,
Rich
System.Diagnostics.Process.Start("SecondApp.Lnk")
Thanks,
Seth Rowe

It requires the path of the shortcut - I just left out the "C:
\Whatever" part and just listed the name of the shortcut
(SecondApp.Lnk).

As far as settings the path after deployment, it really just depends
on how you want to do it. You could a settings in the app.config file,
a registry setting, an ini file, a seperate Xml file, etc. If tracking
a lot of settings I personnally like using a table in a database, but
it's all up to you.

Thanks,

Seth Rowe

Mar 2 '07 #4
The startup path for each app is

Dim theAppPath As String

theAppPath = "C:\Document and Settings\" & "theparticularUser" & "\TStart
Menu\Programs\TheDirEstablishedBySharePoint\TheApp .lnk"

Is it Click Once or Sharepoint that creates the deployment directory on the
client workstations? Is Sharepoint required for Click Once?

Anyway, I think I got the path thing figured out with the use of theFile.lnk

So it would be

Dim p As Process
p.Start(theAppPath)

Thanks again for your help.
"rowe_newsgroups" wrote:
On Mar 1, 7:28 pm, Rich <R...@discussions.microsoft.comwrote:
Thanks. So I guess this does not require any path? Well, I will find out,
won't I.

Thanks again,
Rich

"rowe_newsgroups" wrote:
On Mar 1, 12:26 pm, Rich <R...@discussions.microsoft.comwrote:
Greetings,
I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.
Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?
Thanks,
Rich
System.Diagnostics.Process.Start("SecondApp.Lnk")
Thanks,
Seth Rowe


It requires the path of the shortcut - I just left out the "C:
\Whatever" part and just listed the name of the shortcut
(SecondApp.Lnk).

As far as settings the path after deployment, it really just depends
on how you want to do it. You could a settings in the app.config file,
a registry setting, an ini file, a seperate Xml file, etc. If tracking
a lot of settings I personnally like using a table in a database, but
it's all up to you.

Thanks,

Seth Rowe

Mar 2 '07 #5
I just tried the process.start thing from the shortcut. For posterity I note
this: the extention for my shortcuts is not .lnk but .appref-ms

System.Diagnostics.process.start("C:\...myapp.appr ef-ms)

"Rich" wrote:
The startup path for each app is

Dim theAppPath As String

theAppPath = "C:\Document and Settings\" & "theparticularUser" & "\TStart
Menu\Programs\TheDirEstablishedBySharePoint\TheApp .lnk"

Is it Click Once or Sharepoint that creates the deployment directory on the
client workstations? Is Sharepoint required for Click Once?

Anyway, I think I got the path thing figured out with the use of theFile.lnk

So it would be

Dim p As Process
p.Start(theAppPath)

Thanks again for your help.
"rowe_newsgroups" wrote:
On Mar 1, 7:28 pm, Rich <R...@discussions.microsoft.comwrote:
Thanks. So I guess this does not require any path? Well, I will find out,
won't I.
>
Thanks again,
Rich
>
"rowe_newsgroups" wrote:
On Mar 1, 12:26 pm, Rich <R...@discussions.microsoft.comwrote:
Greetings,
>
I am deploying vb2005 apps using Click Once deployment. This works fine.
The problem is that the user needs to be able to launch a 2nd app from the
1st app, but the application startup paths are different for each user.
However, the shortcuts for these apps are created in the same Start directory
for each user.
>
Is it possible to launch app2 from app1 by calling the shortcut of app2 (or
vice versa)? How to do this? Or, how can I make app1 know the application
startup path of app2 (and vice versa) after deployment?
>
Thanks,
Rich
>
System.Diagnostics.Process.Start("SecondApp.Lnk")
>
Thanks,
>
Seth Rowe

It requires the path of the shortcut - I just left out the "C:
\Whatever" part and just listed the name of the shortcut
(SecondApp.Lnk).

As far as settings the path after deployment, it really just depends
on how you want to do it. You could a settings in the app.config file,
a registry setting, an ini file, a seperate Xml file, etc. If tracking
a lot of settings I personnally like using a table in a database, but
it's all up to you.

Thanks,

Seth Rowe
Mar 2 '07 #6
On Thu, 1 Mar 2007 23:36:00 -0800, Rich wrote:
The startup path for each app is

Dim theAppPath As String

theAppPath = "C:\Document and Settings\" & "theparticularUser" & "\TStart
Menu\Programs\TheDirEstablishedBySharePoint\TheApp .lnk"

Is it Click Once or Sharepoint that creates the deployment directory on the
client workstations? Is Sharepoint required for Click Once?

Anyway, I think I got the path thing figured out with the use of theFile.lnk

So it would be

Dim p As Process
p.Start(theAppPath)

Thanks again for your help.

"rowe_newsgroups" wrote:

Hey Rich,

Your code may trip up under the following circumstances:
- The user rearranged their start menu and renamed folders
- The user is on Windows 2000 or NT which stores the start menu in a
different location

It might be a good idea to check if the file exists before execution
--
Bits.Bytes
http://bytes.thinkersroom.com
Mar 3 '07 #7

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

Similar topics

8
by: Dutchy | last post by:
Dear reader, In an attempt to obtain the path to the quick-launch-folder in order to create a shortcut to my application-updates during installation , I thought to: 1- check if quick launch...
13
by: cefrancke | last post by:
I have a custom toolbar for users during any preview of a report launched by a button click on a form. I would like to add a toolbar button to launch the Print Dialog (like 'Ctrl-P' or...
4
by: blagdam | last post by:
Is it possible to launch a functional Access 2000 db switchboard by clicking on a desktop icon? I have searched the Microsoft Knowlege Base but, apparently I'm not phrasing my search in the...
13
by: Ole Hanson | last post by:
Hi I am in need of a way to launch my WinForms-app (app.exe) just by pressing a keyboard combination like (Ctrl-Alt-P). This functionality should be present "out of the box" after the app...
0
by: Marcel | last post by:
Hi, the application I am writing has a MainMenu and a DataGrid (UltraGrid). Now I have to edit the text of each cell in this grid. So far so good. All works fine in editmode but if I press a...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
1
by: Peter Lux | last post by:
I have coded a nice query tool the shows a listview of tables and columns then has a text box that I can launch an ad hoc query. I have a strange problem though. Sometimes when I launch the app...
5
by: nagar | last post by:
I'm using the Process.Start method to launch an application from C#. How can I launch the App as Administrator in Windows Vista? Thanks. Andrea
10
by: Matthew Wells | last post by:
I'm trying to make a shortcut that will open an mdb in the same folder as the shortcut - regardless of where the file/shortcut may be. In other words, I want to be able to copy and paste the two...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.