|
-
Jun 16th, 2000, 04:52 AM
#1
Thread Starter
Member
Hi folks,
I got this weird question and want to ask what you think of it. When you install a software, it has all these screen forms where you just click on Next to go on to the next screen and proceed installing. Is it possible in VB to program a code or record a macro such that it will just say yes to all the questions, like accepting all defaults so that the user doesn't click the NEXT button or YES button, it just proceeds to the installation process right away?
Does that mean you should have access to the source code of the installation process? What happens if the software is using Install Shield? Would this be possible at all or not?
Thanks!
Thanks for reading my post!
-
Jun 16th, 2000, 05:03 AM
#2
Hyperactive Member
Shore is. 
1 way you can do it is through SendKeys, look at the code example in the VB help.
-
Jun 16th, 2000, 06:04 AM
#3
Thread Starter
Member
Hi Mr. Shickadance,
Thanks for the idea. Now I get what you mean. I looked at the example in MSDN, and this is the code for their sample.
Code:
Dim ReturnValue, I
ReturnValue = Shell("CALC.EXE", 1) ' Run Calculator.
AppActivate ReturnValue ' Activate the Calculator.
For I = 1 To 100 ' Set up counting loop.
SendKeys I & "{+}", True ' Send keystrokes to Calculator
Next I ' to add each value of I.
SendKeys "=", True ' Get grand total.
SendKeys "%{F4}", True ' Send ALT+F4 to close Calculator.
This runs the calculator.exe and adds 1+1+2+2....n+n... This is a cool example and it helps to understand what Sendkey function is really doing. But how do you manipulate the NEXT button in your setup.exe of the application? It's not as easy as numbers in the calculator. Help!
Thanks for reading my post!
-
Jun 16th, 2000, 12:02 PM
#4
Hyperactive Member
You should be able to send Tabs and Return. So, you have to know how many tabs you need per form.
-
Jun 16th, 2000, 12:33 PM
#5
Lively Member
Some install programs have command line parameters that can be used so that you can do exactly that, an unattended installation. Not sure where you could find out if your install program has it or not
-
Jun 17th, 2000, 08:29 AM
#6
Fanatic Member
and some buttons have captions pre-fixed with the '&' sybmol (the accelerator) and that means you use ALT + the following key.
Like ALT +F for the file menu
so you could still sendkeys
DocZaf
{;->
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|