Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
GeneralTab order Pin
phimix15-Apr-04 3:05
phimix15-Apr-04 3:05 
GeneralTimers in C# Pin
bouli15-Apr-04 3:01
bouli15-Apr-04 3:01 
GeneralRe: Timers in C# Pin
Heath Stewart15-Apr-04 3:20
protectorHeath Stewart15-Apr-04 3:20 
GeneralRe: Timers in C# Pin
bouli15-Apr-04 3:29
bouli15-Apr-04 3:29 
Generalsetup and deployment projects Pin
Dpriya15-Apr-04 2:59
Dpriya15-Apr-04 2:59 
GeneralRe: setup and deployment projects Pin
bouli15-Apr-04 3:05
bouli15-Apr-04 3:05 
GeneralRe: setup and deployment projects Pin
Heath Stewart15-Apr-04 3:48
protectorHeath Stewart15-Apr-04 3:48 
GeneralRe: setup and deployment projects Pin
Heath Stewart15-Apr-04 3:41
protectorHeath Stewart15-Apr-04 3:41 
Dpriya wrote:
How do I get the installation path the user enters at runtime

Query the [INSTALLDIR] property.

Dpriya wrote:
How can I copy some files to specified location eg:C:\temp

If you mean the temp directory as assigned by the system (it hasn't been C:\TEMP since Windows NT 4.0 and Windows 98, IIRC), then parent your files to the TempFolder directory, which is assigned the correct path based on the user level at runtime.

Dpriya wrote:
How can I check for existence of a particular folder? Is it possible with Launch Condition. If not how can I do it?

In Visual Studio .NET, click on the Launch Conditions Editor, right-click on "Search Target Machine", and add a new search for a File. You can specify a folder. See the DrLocator table in the Windows Installer SDK on http://msdn.microsoft.com[^] for more information.

Dpriya wrote:
'User Interface -Add Dialog '- How can I get the values entered in the textboxes at runtime and pass it to my application?

Use the VS.NET form designer for your installer project and enter property names in the property grid. At any time after those properties are set (and if they're not, their value is NULL) you can query them - as with all properties - using [PropertyName]. Make them all upper-case in order to set them from the command line for msiexec.exe.

Dpriya wrote:
Custom Action properties , properties- Installer Class - true / false signify ?

After you add a custom action for an Installer class, you can change the command line to accept swithces. In your Installer class, use the Context.Properties dictionary to get the string values and parse them into whatever values you need. For booleans, use Boolean.Parse or Convert.ToBoolean(string).

Dpriya wrote:
How do I start an application when Installation completes ?

This isn't easy to do with the VS.NET installer project. After the build, you must use a tool like Orca to manually modify the MSI package. You add a custom action to the CustomAction table with a unique string key, custom action type 18, the File table key for the executable you just installed and want to launch, and then any command-line parameters you want to pass to that executable. See the CustomAction table in the Windows Installer SDK for more information.

In order to execute that, go to the InstallUISequence table (if you only want to launch it when a full or partial UI is specified, which is recommended), or the InstallExecuteSequence table. Add the name of your custom action there along with a sequence number that is after the InstallFinalize action (recommended), but set the condition to INSTALLED to only execute that if the MSI package was just installed (as opposed to uninstalled). During installation, NOT INSTALLED evaluates to true until the InstallFinalize action is executed.

For more information about Windows Installer, see the Windows Installer SDK.

If you want a good development environment - much better than VS.NET's installer projects - then get something like Wise for Windows Installer[^] (cheaper, just as capable, and was ahead of InstallShield for many years in terms of functionality) or InstallShield Developer[^] (very expensive, especially for entry-level installer developers).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: setup and deployment projects Pin
bouli15-Apr-04 4:05
bouli15-Apr-04 4:05 
GeneralRe: setup and deployment projects Pin
Heath Stewart15-Apr-04 4:11
protectorHeath Stewart15-Apr-04 4:11 
GeneralRe: setup and deployment projects Pin
bouli15-Apr-04 4:20
bouli15-Apr-04 4:20 
GeneralRe: setup and deployment projects Pin
Heath Stewart15-Apr-04 5:00
protectorHeath Stewart15-Apr-04 5:00 
GeneralStrongly typed DataSet from a web service Pin
bjoernen15-Apr-04 2:49
bjoernen15-Apr-04 2:49 
GeneralRe: Strongly typed DataSet from a web service Pin
Heath Stewart15-Apr-04 3:58
protectorHeath Stewart15-Apr-04 3:58 
GeneralRe: Strongly typed DataSet from a web service Pin
bjoernen15-Apr-04 4:47
bjoernen15-Apr-04 4:47 
GeneralRe: Strongly typed DataSet from a web service Pin
Heath Stewart15-Apr-04 5:03
protectorHeath Stewart15-Apr-04 5:03 
GeneralRe: Strongly typed DataSet from a web service Pin
bjoernen15-Apr-04 21:06
bjoernen15-Apr-04 21:06 
GeneralRe: Strongly typed DataSet from a web service Pin
Heath Stewart16-Apr-04 3:55
protectorHeath Stewart16-Apr-04 3:55 
Generalall client machine in local network Pin
Anonymous15-Apr-04 2:14
Anonymous15-Apr-04 2:14 
GeneralRe: all client machine in local network Pin
Stefan Troschuetz15-Apr-04 5:21
Stefan Troschuetz15-Apr-04 5:21 
QuestionHow can i draw many small bitmap into a large one ? Pin
fu015-Apr-04 2:12
fu015-Apr-04 2:12 
AnswerRe: How can i draw many small bitmap into a large one ? Pin
Colin Angus Mackay15-Apr-04 3:13
Colin Angus Mackay15-Apr-04 3:13 
GeneralSerialization Pin
Large Data File14-Apr-04 23:46
Large Data File14-Apr-04 23:46 
GeneralRe: Serialization Pin
Heath Stewart15-Apr-04 5:11
protectorHeath Stewart15-Apr-04 5:11 
GeneralRe: Serialization Pin
Large Data File15-Apr-04 5:47
Large Data File15-Apr-04 5:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.