Jump to content

Autoit and Vista Inspirat silent install in WPI...need fedback from a


Recommended Posts

Will this work in WPI? (please check for SYNTAX errors)

(I put the autoit3.exe + a3x file + VistaInspirat Installer ...also in the "Bricopacks" dir within the WPI dir)

(command in WPI ) cmds[pn]= ['"%wpipath%\\install\\Bricopacks\\AutoIt3.exe %wpipath%\\install\\Bricopacks\\VistaInspirate2UltimateSilentInstaller.a3x"']; <-- is this the correct syntax??

Below the actual a3x Script:

#region --- Au3Recorder generated code Start ---

Run('%wpipath%\\install\\Bricopacks\\VistaInspirate2Ultimate.exe')

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}{TAB}{SPACE}{ENTER}")

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

Am I doing everything correctly?

Edited by Godflesh
Link to comment
Share on other sites


I don't know the right syntax for wpi but i know about autoit and you should be able to create autoit .exe compiled but it think it won't work as is:

- The line

Run('%wpipath%\\install\\Bricopacks\\VistaInspirate2Ultimate.exe')

should be replaced with

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

.

- And i'd make a standalone exe and include the source in the compiled script (=> add this line):

fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

where "c:\bricopack" should be replaced by the actual path to VistaInspirate2Ultimate.exe and not a variable. Then you should be able to compile your autoit script with the tool "compile script to exe" of name the exe with a different name than "VistaInspirate2Ultimate.exe" (a good choice should be "VistaInspirate2Ultimate_silent.exe").

Then you'll just need to run with parameter the exe from wpi.

Link to comment
Share on other sites

And i'd make a standalone exe and include the source in the compiled script <---abracadabra to me ... lol. No idea how to do that.

thanks for your help, but I am really new to autoit and not really a "code wizkid" etc : ) ...

I just want a simple way to add the vista inspirate 2 ultimate installer to silent install in WPI....without "rocketdock" and without the "logon screen" and without the "wallpaper" and without rebooting at the end of the installation.

Anymore help for this newbie to make it easier for me would be awesome. :)

Edited by Godflesh
Link to comment
Share on other sites

First rename your file .a3x to .au3.

Second edit it (open it with any text editor) as explained previously (and save it).

Third, to compile an autoit script, you don't need any knowledge:

- launch from your start menu then programs then autoit then "compile Script to exe"

- choose as source script your au3 created with the previous steps

- choose a destination .exe (for example "VistaInspirate2Ultimate_silent.exe")

- click "convert"

And you should have a .exe which will install as you wanted.

Optional step: Then you should try it on a clean install without wpi (perhaps a virtual machine).

Link to comment
Share on other sites

Where do I put this line EXACTLY? fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Does this line include the original installer to the new compiled SILENT.exe?

Link to comment
Share on other sites

I tried to compile the exe....that worked....but I get an error while using WPI to run the "silent installer". ....command line 1 ERROR etc etc.

This is gonna be harder than I thought... :(

here is my script:

#region --- Au3Recorder generated code Start ---

fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}{TAB}{SPACE}{ENTER}")

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

Link to comment
Share on other sites

Where do I put this line EXACTLY? fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Does this line include the original installer to the new compiled SILENT.exe?

As you did in your next answer, but you need to be sure that the file "VistaInspirate2Ultimate.exe" is in the folder "C:\bricopack". Anyway it should not compile if you didn't put the right path or the file isn't there.

And yes, it does include the original installer in the new .exe.

As for the error you get while using it in wpi, what line did you use to launch it from wpi ?

Link to comment
Share on other sites

I allmost have the silent installer working only 1 problem remains...

the installer has to "WAIT" so it can install all the files...after that is done i get a "REBOOT" screen in the installer, but I can't get the "WAIT" option to work in autoit. :(

Here is my old script (which installs fine, but lacks the 2 minute timeout, so I have to doing the reboot option MANUALLY still):

#region --- Au3Recorder generated code Start ---

fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup ","")

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}{TAB}{SPACE}{ENTER}")

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

Here is my BETA editted script (trying to get the WAIT option working), but it fails everytime sofar:

#region --- Au3Recorder generated code Start ---

fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","",timeout=120) <--- I also tried just "120" , but that didn't work either

Send("{TAB}{SPACE}{ENTER}")

WinWaitClose

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

( get errormessages now during install "error parsing function call LINE 14")

Edited by Godflesh
Link to comment
Share on other sites

Update....the silent installer script blow installs fine, but stil have to figure out the last bit where it gets at the "REBOOT OPTION" screen. Autoit and WPI have finished the "silent bricopack installer", but I am still stuck at the last screen of the Vista Inspirate installer... with the opties "reboot now" & reboot later. I still have do it manually

:(

#region --- Au3Recorder generated code Start ---

fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{TAB}{SPACE}{ENTER}") <-- these are the keyboard keys it should use in the REBOOT screen

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","",120)

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

Edited by Godflesh
Link to comment
Share on other sites

Ok, I got the installer working as it should...FINALLY :)

I only have 1 question...about this line "fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)

I noticed when I test the silent installer it unpacks VistaInspirate2Ultimate.exe in bricopacks dir...but what happens when I burned my "Windows Post installer" on DVD? It obviously can't extract it in that dir anymore...should I change that line to C;//Temp or something..so it can actually EXTRACT it etc?

besides that the installer works fine ....still on my hd etc. :)

Link to comment
Share on other sites

Yes if the %wpipath% will be read only, you need to replace it with %temp% (and modify the code) or remove it and put "VistaInspirate2Ultimate.exe" in the right folder (actually "%wpipath%\install\Bricopacks\VistaInspirate2Ultimate.exe" ).

Edited by allen2
Link to comment
Share on other sites

Hi Allen,

the VistaInspirate2Ultimate.exe is allready in "%wpipath%\install\Bricopacks\"...so I just removed: "fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1) ....and put the VistaInspirate2Ultimate_silent.exe in the same dir etc....everything works as it should now. :)

my final script:

#region --- Au3Recorder generated code Start ---

Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")

_WinWaitActivate("Installer Language","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Send("{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Sleep(2000)

Send("{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Sleep(2000)

Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Sleep(4000)

Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{RIGHT}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{TAB}{TAB}{ENTER}{ENTER}{ENTER}")

_WinWaitActivate("Vista Inspirat 2 1.0 Setup","")

Sleep(280000)

Send("{TAB}{SPACE}{ENTER}")

WinClose("Vista Inspirat 2 1.0 Setup","")

Exit

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

#endregion --- Au3Recorder generated code End ---

I understand how it works now a little bit better...thnx for answering my questions and your time invested in me....I really appreciate it. :)

Edited by Godflesh
Link to comment
Share on other sites

Hi Godflesh,

To make your script more reliable, try avoid Sleep(280000) code.

Try this modified code which will wait until the reboot prompt screen is out and it will select reboot later. I did not include any sleep command. Please add them if you need it. (During VM normal session test, it works ok w/o sleep command.)

$sVIM="Vista Inspirat 2 1.0 Setup"		;<==new line
#region --- Au3Recorder generated code Start ---
fileinstall("c:\bricopack\VistaInspirate2Ultimate.exe", EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe",1)
Run(EnvGet("wpipath") & "\install\Bricopacks\VistaInspirate2Ultimate.exe")
_WinWaitActivate("Installer Language","")
Send("{ENTER}")
_WinWaitActivate($sVIM,"")
Send("{ENTER}")
_WinWaitActivate($sVIM,"")
Send("{TAB}{SPACE}{ENTER}")
_WinWaitActivate($sVIM,"")
Send("{TAB}{TAB}{TAB}{SPACE}{ENTER}")
_WinWaitActivate($sVIM,"")
Send("{TAB}{DOWN}{SPACE}{DOWN}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{TAB}{RIGHT}{ENTER}{ENTER}{ENTER}")
_WinWaitActivate($sVIM,"")
Send("{TAB}{SPACE}{ENTER}"); <-- these are the keyboard keys it should use in the REBOOT screen
_WinWaitActivate($sVIM,"",120)

; wait for reboot prompt ;<==new section
$sVIS="Your computer must be restarted"
Winwait ($sVIM,$sVIS)
WinActivate ($sVIM,$sVIS)
ControlClick ($sVIM,$sVIS,1204) ; 1204 = I want to manually reboot later
ControlClick ($sVIM,$sVIS,1) ;1 = Finish button

#region --- Internal functions Au3Recorder Start ---
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---
#endregion --- Au3Recorder generated code End ---

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
  • Recently Browsing   0 members

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