Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
Questionssis package in C# Pin
Member 40084928-Jun-08 5:36
Member 40084928-Jun-08 5:36 
QuestionWhat is this advantage? Pin
ASysSolvers8-Jun-08 3:19
ASysSolvers8-Jun-08 3:19 
AnswerRe: What is this advantage? Pin
S. Senthil Kumar8-Jun-08 3:27
S. Senthil Kumar8-Jun-08 3:27 
QuestionPredicates and foreach Problem [modified] Pin
Jammer8-Jun-08 0:41
Jammer8-Jun-08 0:41 
AnswerRe: Predicates and foreach Problem Pin
leppie8-Jun-08 1:20
leppie8-Jun-08 1:20 
GeneralRe: Predicates and foreach Problem Pin
Jammer8-Jun-08 1:22
Jammer8-Jun-08 1:22 
GeneralRe: Predicates and foreach Problem Pin
Jammer8-Jun-08 1:32
Jammer8-Jun-08 1:32 
GeneralRe: Predicates and foreach Problem [modified] Pin
Jammer8-Jun-08 2:31
Jammer8-Jun-08 2:31 
GeneralRe: Predicates and foreach Problem Pin
leppie8-Jun-08 2:48
leppie8-Jun-08 2:48 
QuestionApplications on Servers Pin
jonhbt7-Jun-08 22:50
jonhbt7-Jun-08 22:50 
AnswerRe: Applications on Servers Pin
Gareth H7-Jun-08 23:45
Gareth H7-Jun-08 23:45 
QuestionRe: Applications on Servers Pin
jonhbt7-Jun-08 23:59
jonhbt7-Jun-08 23:59 
AnswerRe: Applications on Servers Pin
Zoltan Balazs8-Jun-08 0:27
Zoltan Balazs8-Jun-08 0:27 
QuestionWhen do we have to use delegate in C#? Pin
Mohammad Dayyan7-Jun-08 22:46
Mohammad Dayyan7-Jun-08 22:46 
AnswerRe: When do we have to use delegate in C#? Pin
MarkB7777-Jun-08 23:44
MarkB7777-Jun-08 23:44 
GeneralRe: When do we have to use delegate in C#? Pin
Mohammad Dayyan8-Jun-08 0:52
Mohammad Dayyan8-Jun-08 0:52 
AnswerRe: When do we have to use delegate in C#? Pin
Zoltan Balazs8-Jun-08 0:31
Zoltan Balazs8-Jun-08 0:31 
GeneralRe: When do we have to use delegate in C#? Pin
Abdul Gafoor8-Jun-08 21:06
Abdul Gafoor8-Jun-08 21:06 
GeneralRe: When do we have to use delegate in C#? Pin
RobScripta8-Jun-08 21:24
professionalRobScripta8-Jun-08 21:24 
GeneralRe: When do we have to use delegate in C#? Pin
Abdul Gafoor8-Jun-08 23:12
Abdul Gafoor8-Jun-08 23:12 
Questiondeploying Release folder Pin
ASysSolvers7-Jun-08 22:06
ASysSolvers7-Jun-08 22:06 
AnswerRe: deploying Release folder Pin
Zoltan Balazs8-Jun-08 0:32
Zoltan Balazs8-Jun-08 0:32 
GeneralRe: deploying Release folder Pin
ASysSolvers8-Jun-08 0:38
ASysSolvers8-Jun-08 0:38 
GeneralRe: deploying Release folder Pin
Zoltan Balazs8-Jun-08 0:42
Zoltan Balazs8-Jun-08 0:42 
QuestionGet path to location user started setup.exe from [modified] Pin
Dave Buhl7-Jun-08 21:08
Dave Buhl7-Jun-08 21:08 
Hi folks,

Hope I am not posting a dead horse here. My search-fu is weak with this topic. Very little relevant info from google or cp searches.

Here is the scenario.

I am building 2 projects. One is an admin module for a database that will install sql server and configure a connection string and dump it into and encrypted file. The admin will then copy this file to the location of the setup files for the user module. When the users/admin installs the user module, I would like to read the connection string from the file located in the setup location, which could be local or on a network share or anywhere else accessible. Sigh | :sigh:

How can I get the location of the setup.exe file that the user started at runtime. I am using VS2005 Pro, C#, .Net 2.0. I am not using clickonce, I have created a setup project and installer class with onafterinstall event handler.
Forgot to mention this is a Windows Vista/XP desktop application not a web app. D'Oh! | :doh:

I have looked at the Context[parameter] object, System.Reflection namespace, System.Environment, Application Object and am not getting it.Confused | :confused:

I would really appreciate any help you can give. I will probably feel really stupid when the answer hits. Big Grin | :-D


Thanks much

Dave

modified on Sunday, June 8, 2008 3:16 AM

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.