Jump to content

Recommended Posts

Posted

hi,

i only want to write a small script for these safeguard installations, that we dont have to confugrate it everytime new on the laptops.

i took the description from winmap and it works well with for example 7zip. but now, when i start the script i get this error:

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

function getWin(win, inc)

{

var cntr = 0;

while (!WshShell.AppActivate(win))

{

if (cntr==12) return true;

cntr++;

WScript.Sleep(inc);

}

return true;

}

var WshShell = new ActiveXObject("WScript.Shell");

var oExec = WshShell.Exec("setup.exe");

while (oExec.Status == 0)

{

WScript.Sleep(2000);

getWin("SafeGuard Easy Setup", 500);

}

WScript.quit();

and is it possible to give a long path like \setup1\setup.exe?

so, hope someone can help me

bse


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