Click here to Skip to main content
15,912,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to call a module? [modified] Pin
zenithmaximus1-Jun-06 17:02
zenithmaximus1-Jun-06 17:02 
AnswerRe: How to call a module? [modified] Pin
shreekar1-Jun-06 22:28
shreekar1-Jun-06 22:28 
Questionsystem.string[] Problem Pin
mrodriguezc1-Jun-06 12:05
mrodriguezc1-Jun-06 12:05 
QuestionCheck for admin rights in deploy/setup/install Pin
Kschuler1-Jun-06 8:53
Kschuler1-Jun-06 8:53 
AnswerRe: Check for admin rights in deploy/setup/install Pin
Mekong River1-Jun-06 21:21
Mekong River1-Jun-06 21:21 
AnswerRe: Check for admin rights in deploy/setup/install Pin
Mekong River3-Jun-06 6:23
Mekong River3-Jun-06 6:23 
QuestionRe: Check for admin rights in deploy/setup/install Pin
Kschuler5-Jun-06 2:57
Kschuler5-Jun-06 2:57 
AnswerRe: Check for admin rights in deploy/setup/install Pin
Mekong River6-Jun-06 6:49
Mekong River6-Jun-06 6:49 
Kschuler wrote:
Thanks for the code, but where would I be able to put this so it would run before an install? Keeping in mind that the user will probably not have the .Net 2.0 framework installed yet, which Visual Studio 2005 requires (So I can't just put it in a DLL/exe and run it before the install)


I never build any program in vs.net 2005. I just used to work in vb.net 2003. Based on your information, I would like to do as the following instruction:

1. Download and install DotNet Bootstraper[^].
2. Build your application based on this article[^].
3. Check the content of the debug folder after build an install from step 2.
4. Create the script file to check for the group membership of the user.

This is the syntax of the function

IsMember(sUser,sGroup)

Use the syntax as this below guideline:

If IsMember("cn=[UserName],ou=[OUName],dc=[CompanyName]","[GroupName]") Then<br />
    ' The user is a member - do something here (start to execute the setup file)<br />
Else<br />
    ' The user is not a member - do something here (prompt user to exit an installation process).<br />
End If


Use this instruction plus the the code that i gave you in the previous post and try to test an application.

5. Create an autorun INF file to point to the script of checking group membership.
6. Burn all relate file to CDROM.

How its work
------------

1. Insert your CDROM to the target machine.
2. The CDROM is autorun and point to run the script file to check the group membership.
3. If the user is a member of an appropriate group to install an application, then the script should point to run the setup file of your application.
4. If the user is not a member of an appropriate group to install an application, then the script would terminate the user from installan application.

Try to do this step and hope this would help you to solve the problem.
QuestionSelect Top 1 Pin
boukaka1-Jun-06 8:36
boukaka1-Jun-06 8:36 
AnswerRe: Select Top 1 Pin
Kschuler1-Jun-06 8:48
Kschuler1-Jun-06 8:48 
AnswerRe: Select Top 1 Pin
boukaka1-Jun-06 8:50
boukaka1-Jun-06 8:50 
AnswerRe: Select Top 1 Pin
Leeland1-Jun-06 10:29
Leeland1-Jun-06 10:29 
AnswerRe: Select Top 1 Pin
Guffa1-Jun-06 12:03
Guffa1-Jun-06 12:03 
GeneralRe: Select Top 1 Pin
boukaka1-Jun-06 14:52
boukaka1-Jun-06 14:52 
GeneralRe: Select Top 1 Pin
shreekar1-Jun-06 22:32
shreekar1-Jun-06 22:32 
QuestionContext Menu in Addin Pin
dlarkin771-Jun-06 5:28
dlarkin771-Jun-06 5:28 
AnswerRe: Context Menu in Addin Pin
dlarkin777-Jun-06 23:03
dlarkin777-Jun-06 23:03 
Questioncolumns don't currently have unique values Pin
Kashar1-Jun-06 4:52
Kashar1-Jun-06 4:52 
AnswerRe: columns don't currently have unique values Pin
Leeland1-Jun-06 5:02
Leeland1-Jun-06 5:02 
GeneralRe: columns don't currently have unique values Pin
Kashar1-Jun-06 8:20
Kashar1-Jun-06 8:20 
QuestionRepaint [modified] Pin
Resolver181-Jun-06 3:10
Resolver181-Jun-06 3:10 
AnswerRe: Repaint Pin
Tarakeshwar Reddy1-Jun-06 3:20
professionalTarakeshwar Reddy1-Jun-06 3:20 
AnswerRe: Repaint Pin
NormDroid1-Jun-06 3:25
professionalNormDroid1-Jun-06 3:25 
JokeRe: Repaint Pin
Guffa1-Jun-06 7:10
Guffa1-Jun-06 7:10 
GeneralRe: Repaint Pin
NormDroid1-Jun-06 20:41
professionalNormDroid1-Jun-06 20:41 

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.