Click here to Skip to main content
15,884,472 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionfilesystemwatcher possible infinite loop Pin
Tony Snowden17-Apr-14 0:20
Tony Snowden17-Apr-14 0:20 
AnswerRe: filesystemwatcher possible infinite loop Pin
Richard Andrew x6417-Apr-14 0:45
professionalRichard Andrew x6417-Apr-14 0:45 
GeneralRe: filesystemwatcher possible infinite loop Pin
Tony Snowden17-Apr-14 1:07
Tony Snowden17-Apr-14 1:07 
QuestionHow to Run Transparent Flash Files Over a Running Video in VB Pin
NAVEEN SONI16-Apr-14 17:56
NAVEEN SONI16-Apr-14 17:56 
QuestionPass a string to a control on a form from a remoting connection Pin
ParadoxLiving15-Apr-14 20:27
ParadoxLiving15-Apr-14 20:27 
AnswerRe: Pass a string to a control on a form from a remoting connection Pin
Alan N16-Apr-14 4:48
Alan N16-Apr-14 4:48 
GeneralRe: Pass a string to a control on a form from a remoting connection Pin
ParadoxLiving16-Apr-14 16:07
ParadoxLiving16-Apr-14 16:07 
QuestionStart another process as admin Pin
Dominick Marciano15-Apr-14 3:52
professionalDominick Marciano15-Apr-14 3:52 
I'm creating a software package that we are deploying to multiple employees at one of our client's sites. This software is designed to gather system information (OS, 32/64-bit, machine name, etc.) and also check whether N-able and Lync Basic 2013 is installed, and install them if necessary.

Currently both the N-able and Lync installation packages are embedded within my assembly. If the user is missing either program, the file will be extracted and ran silently without any user input. The issue I'm running into is that the N-able installation requires admin privileges. All the computers have the same admin account (we set it up that way; they don't have a central server/domain) and I'm trying to have the N-able run under that account so that way the user is prompted with any messages.

From everything I've been reading it seems that I have to create some kind of intermediate program that my program runs, which then can run the N-able silent installation using the admin account. However I haven't been able to find any good tutorials/step-by-step guides on how to do this?

Anybody have any links to guides on how I can do this. I just need to know how I can start another process using the credentials of an admin account that I already know; the users don't know these credentials so I can't have them type them in. I have tried using Process.Start with various settings, CreateProcessAsUser, CreateProcessWithLogonW, etc. but they all give me errors such as "This operation requires elevated permissions, "A required privilige is not held by the client", etc. It doesn't matter if I do it through the .NET Framework, P/Invoke, or a separate library, as long as the guide instructs me how I can use it from my assembly it's good.

Any help that you can provide will be greatly appreciated...I'm supposed to have this finished within the next day or two. Thank you a lot in advance.
A black hole is where God tried to divide by zero.

There are 10 kinds of people in the world; those who understand binary and those who don't.

AnswerRe: Start another process as admin Pin
Bernhard Hiller15-Apr-14 22:25
Bernhard Hiller15-Apr-14 22:25 
GeneralRe: Start another process as admin Pin
Dominick Marciano16-Apr-14 8:22
professionalDominick Marciano16-Apr-14 8:22 
GeneralRe: Start another process as admin Pin
Dave Kreskowiak16-Apr-14 9:41
mveDave Kreskowiak16-Apr-14 9:41 
AnswerRe: Start another process as admin Pin
helfetho17-Apr-14 0:56
helfetho17-Apr-14 0:56 
GeneralRe: Start another process as admin Pin
Dominick Marciano17-Apr-14 4:35
professionalDominick Marciano17-Apr-14 4:35 
GeneralRe: Start another process as admin Pin
helfetho17-Apr-14 5:48
helfetho17-Apr-14 5:48 
QuestionNo value given for one or more required parameters. Pin
jkirkerx14-Apr-14 12:16
professionaljkirkerx14-Apr-14 12:16 
Answer[SOLVED] Pin
jkirkerx14-Apr-14 12:34
professionaljkirkerx14-Apr-14 12:34 
GeneralRe: [SOLVED] Pin
Tim Carmichael15-Apr-14 2:04
Tim Carmichael15-Apr-14 2:04 
GeneralRe: [SOLVED] Pin
jkirkerx15-Apr-14 6:32
professionaljkirkerx15-Apr-14 6:32 
QuestionRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 10:10
sensizbenlik14-Apr-14 10:10 
GeneralRe: how to import all csv files in a drive to database ? Pin
PIEBALDconsult14-Apr-14 10:40
mvePIEBALDconsult14-Apr-14 10:40 
AnswerRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 11:14
professionalWes Aday14-Apr-14 11:14 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 14:25
sensizbenlik14-Apr-14 14:25 
GeneralRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 14:53
professionalWes Aday14-Apr-14 14:53 
GeneralRe: how to import all csv files in a drive to database ? Pin
sensizbenlik14-Apr-14 15:05
sensizbenlik14-Apr-14 15:05 
GeneralRe: how to import all csv files in a drive to database ? Pin
Wes Aday14-Apr-14 15:35
professionalWes Aday14-Apr-14 15:35 

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.