Sign in to follow this  
Followers 0
slave2anubis

mass app instal over network

5 posts in this topic

#1 ·  Posted (edited)

hallo.

I am new here and i hope i obey the rules of this forum. So i want to make a script ( script's) that automate the instalation of applications on a computer over my home network. My buissnes is in reparing PC and offten in get to install windows, its kinda anoyng to install several applications over and over, so i have decided to make a script to automate this.

Well all that been sad, i have some Q and i need some help:

1. i need to know if ther is any way of making autoIt verify the windows version (x64 and x86) coz i want to make a 3 level system of script's the first level named master level should be a script that i launch and that verifies the version of windows of the target computer (i launch it from the target computer sure).

2. is there a way to automete the desable-ing the UAC on windows 7?

3. i have made the second level but i have bumpt into a problem one of my PAS (program automation script) wont execute corectly if i launch it from another PAS, what can be the problem? others work, i have disabeled UAC and the program starts but nothing happens.

sorry for my bad english. :graduated:

post-61427-0-25978700-1290529961_thumb.j

Edited by slave2anubis

Share this post


Link to post
Share on other sites



Hi!

1. Pleas have a look at the Help. Search for @OSArch This Macro returns the operating System Architecture.

2. There is a way over the registry. Use RegWrite to edit the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System and set the DWORD EnableLUA To "1" and the DWORD ConsentPromptBehaviorAdmin To "1" as well.

Regards,

Hannes


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

tanks for the help...

Share this post


Link to post
Share on other sites

still i have the problem with that PAS it wont work if i run it from another script, the PAS runs and opens the target app but no automation...? why is this happening its only this one others work but this not?

#region ---Au3Recorder generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)


Run('./Windows Loader.exe')
_WinWaitActivate("Windows Loader v1.9 - By Daz","Activation options")
Send("{ENTER}")
_WinWaitActivate("Notice","Cancel")
send("{ENTER}")
_WinWaitActivate("Installation Complete","Shutdown")
Send("{TAB}{TAB}{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 ---

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.6.1
 Author:         bujor dacian

 Script Function:
    instaleaza un pachet de aplicati in functie de arhitectura sisteului de operare;

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
$os = @OSVersion
$arch = @OSArch
$lang = @OSLang
$x64 = "./app-x64\install app-pack x64.exe"
$x86 = "./app-x64\install app-pack x86.exe"

if $os = "WIN_7" Then
    if $arch = "X64" Then
            MsgBox (0, "Install", "Se instaleaza pentru: "&$os)
            $success = RunWait( './app-x64/loader/windows loader start.exe' )
            #$success = RunWait( './app-x64/mse/mse start.exe' )
            #$success = Runwait( './app-x64/hw monitor/hw monitor start.exe')
            #$success = Runwait( './app-x64/adobe/933.exe')
            #$success = Runwait( './app-x64/deamon tools/dt start.exe')
            #$success = Runwait( './app-x64/irfan view/irfanview.exe')
            #$success = Runwait( './app-x64/adobe/933.exe')
            #$success = Runwait( './app-x64/adobe/933.exe')
            #$success = Runwait( './app-x64/adobe/933.exe')
            if $success = 0 Then
                MsgBox (0, 'App deployment', "All app's deployd succsessful!", 15)
            Else
                MsgBox (0, 'App deployment', "All app's deployd unsuccsessful!", 15)
            EndIf

        ElseIf $arch = "X86" Then
            RunWait ( $x86 )
        endif
    elseif $os = "WIN_XP" then
        MsgBox (0, "Erroare", "Windows XP nu este suportat" )
EndIf

Share this post


Link to post
Share on other sites

i have found the regkey that is responsibie for the "publisher cannot be veryfied...."...

insted of ".exe" you can add any extension that you want... i sugest that you delete the key after you are done with it...

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations\", "ModRiskFileTypes", "REG_SZ", ".exe")

Share this post


Link to post
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
Sign in to follow this  
Followers 0