Jump to content

Control Panel problem


vincentw
 Share

Recommended Posts

Sorry, I may have posted this in the wrong forum earlier, so I'm posting it here...

Hi, I'm new to AutoIt so I am quite unfamilar with it.

I need to keep installing and uninstalling my program to test it. When I install it, I need to enter a series of data. I want to use AutoIt to do this and I have a few questions.

First, can I use pass parameters to AutoIt to open the exe because we have daily builds.

Currently I just copied the directory to my local desktop and am just trying and messing with AutoIt. My first line is Run("setup.exe", working dir), it tries to run it, but I get a windows dialog that is:

Title of dialog box is: Windows XP Setup

Message: Please go to the Control Panel to install and configure system components.

What does that mean? and what do I need to do?

Thanks in advance

Link to comment
Share on other sites

Not sure if this is of any use but this can be used to spawn the add/remove programs dialog.

Also, In there there is a menu to add/remove windows components. You could probably automate it with mouseclick(),send(), and autoits many other automation functions.

Run("Control Appwiz.cpl")
Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

; Windows XP
Run("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0") ; Change or Remove Programs
Run("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1") ; Add New Programs
Run("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2") ; Add/Remove Windows Components
Run("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3") ; Set Program Access and Defaults

More Info can be found at http://www.tburke.net/info/rundll.htm

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Thanks for all the help everyone...but I have another question...

Is there away to map a networked drive onto the computer and then unmap it after the script is done?

Thanks again

DriveMapAdd

DriveMapDel

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...