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 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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
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...
|
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...
|
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: 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,...
|
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...
| |