Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Calling a published application from another application dynamically
 

Calling a published application from another application dynamically

Hi there,

how can i dynamically call a published aplication from another application using VB.NET. When you publish an application, the steup will be stored in the client system. and the path can be placed anywhere. How can i dynamically get the path?

Using system REGISTRY i have tried. I know the value of the application but how can i get the key path from the registry by specifying the value????

How can we get the key path of the application by specifying the value dynamically using vb.net. Is there a way of doing this??

any help would be appreciated..

Thanks,

Ratan

RatanMishra  Monday, September 07, 2009 10:15 AM
Do you mean you have a ClickOnce application deployed via the Publish screen in Visual Studio, and you want to run the program from another application?

To do that, the best thing to do is look on the Start Menu for the shortcut and call *that*.

shortcutName =string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs),
"\\", PublisherName, "\\", ProductName, ".appref-ms");
process.Start(shortcutName);

where PublisherName and ProductName are those specified in the Options dialog in the Publish tab of the application you want to call.

If it's online-only, you'll have to look on the desktop instead for the shortcut.

desktopPath =string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
"\\", ProductName , ".appref-ms");


RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Monday, September 07, 2009 5:34 PM
Do you mean you have a ClickOnce application deployed via the Publish screen in Visual Studio, and you want to run the program from another application?

To do that, the best thing to do is look on the Start Menu for the shortcut and call *that*.

shortcutName =string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs),
"\\", PublisherName, "\\", ProductName, ".appref-ms");
process.Start(shortcutName);

where PublisherName and ProductName are those specified in the Options dialog in the Publish tab of the application you want to call.

If it's online-only, you'll have to look on the desktop instead for the shortcut.

desktopPath =string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
"\\", ProductName , ".appref-ms");


RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Monday, September 07, 2009 5:34 PM

You can use google to search for other answers

Custom Search

More Threads

• Customizing installation directory
• What determines a unique ClickOnce install?
• Encrypt app.config settings
• Executing another setup through my application setup
• InstallState - help!
• Deployment - Multiple Sites (ex: QA/Production)
• Over write readonly file
• Where is the log?
• SQL Server connection string in Setup program
• Delaying Activation of Downloaded Update?