tags:

views:

52

answers:

4

Hello,

Creating a C# install package and I'd like on completed install for the "Program Files/My Application" folder to open.

Any way to do this?

Thanks!

A: 

Environment.CurrentDirectory should do the trick.

Oded
Thanks, where do I put this? As a post-build event?
+2  A: 

You will need to create a custom action. Here is an example that opens a web page after install.

Instead of opening the webpage, just use Environment.CurrentDirectory to get the location and open the directory by starting an explorer process with the path args.

gmcalab
+1  A: 

See this question for more information:

http://stackoverflow.com/questions/334630/c-open-folder-and-select-the-file

Bryan Ross
This only shows how to start the process but does not explain creating an action post setup completion.
gmcalab
A: 

If you setup was built with Actual Installer, you just need to add the following command on System/Commands tab:

Command: <InstallDir>

Timing: After Installation

Markus