473,395 Members | 1,872 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,395 software developers and data experts.

AutoLaunch Wizard in .NET

108 100+
Hi guys,

Just want to ask your idea on how I can make an AutoLaunch wizard. What I want is to automatically launch a wizard after I install my application. This wizard will configure the initial settings of my application. Do I need to add this on my installer project? How can I detect that my apps is successfully install and autolaunch the wizard? Hope you can share my some ideas and I will gladly try it.

Thanks guys!
Aug 26 '08 #1
2 925
romcab
108 100+
Hello.

I was able to create an installer that can autolaunch an application. But I encountered another problem. I cannot locate the exact location of the exe that I'm going to launch. Right now it's working because i hardcoded it's position. I'm thinking on how to get the value in installation folder so I can assign it to the Process var. Below is my code snippet.

public override void Commit(System.Collections.IDictionary savedState)
{
base.Commit(savedState);
//System.Diagnostics.Process.Start("http://www.microsoft.com");
Process p = new Process();
p.StartInfo.FileName = @"C:\Documents and Settings\myName\Desktop\AppsToLaunch\AppsToLaunch\ bin\Debug\AppsToLaunch.exe";
+ "AppsToLaunch.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
}

If you notice, the p.StartInfo.FileName is hardcoded. This should be replace by the installation folder + exe name.
Aug 26 '08 #2
romcab
108 100+
Hello,

I was able to figure it out. I just set the CustomActionData property to /INSTALLDIR="[TARGETDIR]\" and get it using Context.Parameters ["INSTALLDIR"]; I then set it to p.StartInfo.FileName. Hope this will help other guys.

Thanks.
Aug 26 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Deano | last post by:
I know this is a long, long shot since I've never seen anyone else confess to owning this software but..... Does anyone know what the correct sequence is to get the MSI wizard functioning...
0
by: AP | last post by:
I have build an addin that works great as a menu add in, however I recently tried to make it a query wizard so it would appear in the options for a new query. It shows up in the new object box, but...
2
by: Nick | last post by:
Is there anyway to get a javascript confirm button on the wizard control so that when a user clicks "cancel" it can prompt something like... "Are you sure you want to cancel? Your changes will...
2
by: John R. Lewis | last post by:
I posted this yesterday with a different email address. I am reposting with my fake-address as given to me by Microsoft so that I can be guraranteed a response from a support representative. Sorry...
6
by: Douglas J. Badin | last post by:
Earlier this month, there was a posting about this without a definitive answer. If you place a Wizard inside a FormView's EditItemTemplate the bound fields contained within the View will display...
6
by: tom c | last post by:
I create 2 data OleDbDataAdapters, one with the wizard, and one in code. I know the adapter created in code is OK because I use it to fill a data table. However, when I try to use the same SQL...
12
by: raghav | last post by:
Hi I am working on ASP.NET 2.0. I am developing a website using Wizard control. Based on number of steps added, next, previous, finish buttons generate automatically. After running the...
0
bartonc
by: bartonc | last post by:
Examples of wx.Wizard that I found used explicit names for the pages. Using eval() in a list comprehension, I am able to go through the imported modules by name and call create() in order to get a...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
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: 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: 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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.