EDN Admin
Well-known member
Hi<br/>
<br/>
I am making an application that will run certain programs silent so there is no need to install them bit by bit (This is for my work)<br/>
<br/>
I so far have this
<pre class="prettyprint lang-vb" style=" Public Class Form2
Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Advanced Tools
historyviewer.Enabled = False
hijackthis.Enabled = False
virremover.Enabled = False
mindcur.Enabled = False
ccleaner.Enabled = False
defraggler.Enabled = False
recuva.Enabled = False
drivereasy.Enabled = False
Expert Tools
glaryup.Enabled = False
winkeyfinder.Enabled = False
win7act.Enabled = False
resourcehack.Enabled = False
nortonremove.Enabled = False
office.Enabled = False
End Sub
Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
Enables the Advanced Tools
If TextBox1.Text = "pass" Then
historyviewer.Enabled = True
hijackthis.Enabled = True
virremover.Enabled = False
mindcur.Enabled = False
ccleaner.Enabled = False
defraggler.Enabled = False
recuva.Enabled = False
drivereasy.Enabled = False
End If
Enables the Expert Tools
If TextBox1.Text = "pass1" Then
glaryup.Enabled = False
winkeyfinder.Enabled = True
win7act.Enabled = False
resourcehack.Enabled = False
nortonremove.Enabled = False
office.Enabled = False
End If
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If historyviewer.Checked Then
Dir()
End If
End Sub
End Class[/code]
<br/>
Where it says<br/>
<br/>
<pre class="prettyprint lang-vb" style=" Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If historyviewer.Checked Then
Dir()
End If
End Sub[/code]
<br/>
<br/>
thats where i want to enter the file path to the silent installer for example "/Programs/history/hvsetup.exe"<br/>
<br/>
I know there is a code for it. Its similar to dirmk but different because your not creating a file/ folder i just want to simply select a file<br/>
<br/>
P.S. i dont want to use a dialog that selects it, because im going to be giving this to alot of people and it would be a pain to select all files i require<br/>
<br/>
P.S.S. here is an image of it so far<br/>
<br/>
<img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/200180
<
Scott Frazer (scottfrazer.co.nr)
<br/>
View the full article
<br/>
I am making an application that will run certain programs silent so there is no need to install them bit by bit (This is for my work)<br/>
<br/>
I so far have this
<pre class="prettyprint lang-vb" style=" Public Class Form2
Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Advanced Tools
historyviewer.Enabled = False
hijackthis.Enabled = False
virremover.Enabled = False
mindcur.Enabled = False
ccleaner.Enabled = False
defraggler.Enabled = False
recuva.Enabled = False
drivereasy.Enabled = False
Expert Tools
glaryup.Enabled = False
winkeyfinder.Enabled = False
win7act.Enabled = False
resourcehack.Enabled = False
nortonremove.Enabled = False
office.Enabled = False
End Sub
Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
Enables the Advanced Tools
If TextBox1.Text = "pass" Then
historyviewer.Enabled = True
hijackthis.Enabled = True
virremover.Enabled = False
mindcur.Enabled = False
ccleaner.Enabled = False
defraggler.Enabled = False
recuva.Enabled = False
drivereasy.Enabled = False
End If
Enables the Expert Tools
If TextBox1.Text = "pass1" Then
glaryup.Enabled = False
winkeyfinder.Enabled = True
win7act.Enabled = False
resourcehack.Enabled = False
nortonremove.Enabled = False
office.Enabled = False
End If
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If historyviewer.Checked Then
Dir()
End If
End Sub
End Class[/code]
<br/>
Where it says<br/>
<br/>
<pre class="prettyprint lang-vb" style=" Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
If historyviewer.Checked Then
Dir()
End If
End Sub[/code]
<br/>
<br/>
thats where i want to enter the file path to the silent installer for example "/Programs/history/hvsetup.exe"<br/>
<br/>
I know there is a code for it. Its similar to dirmk but different because your not creating a file/ folder i just want to simply select a file<br/>
<br/>
P.S. i dont want to use a dialog that selects it, because im going to be giving this to alot of people and it would be a pain to select all files i require<br/>
<br/>
P.S.S. here is an image of it so far<br/>
<br/>
<img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/200180
<
Scott Frazer (scottfrazer.co.nr)
<br/>
View the full article