Jump to content
Sign in to follow this  

mass app instal over network

Recommended Posts


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:


Edited by slave2anubis

Share this post

Link to post
Share on other sites


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[spoiler]If you can't convince them, confuse them![/spoiler]

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 ---

Run('./Windows Loader.exe')
_WinWaitActivate("Windows Loader v1.9 - By Daz","Activation options")
_WinWaitActivate("Installation Complete","Shutdown")

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

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

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

 AutoIt Version:
 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)
                MsgBox (0, 'App deployment', "All app's deployd unsuccsessful!", 15)

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...