Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

script error

- - - - -

  • Please log in to reply
21 replies to this topic

#1
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

I have install internet explore silent and then i want to reboot.
but in the same moment the reboot comes up that my pc
will reboot i get a script error

Line : 451
Sign: 2
Error : WScript is not defined
Code : 0
File : core.js

in the core.js stands thins

WScript.Sleep(duration);

prog[pn]=['Internet Explore 9'];
shortdesc[pn]=['Internet Explore 9'];
uid[pn]=['INTERNETEXPLORE9'];
ordr[pn]=[111];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['System'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\ie9\\IE9-Windows7-x64-dan.exe" /passive /no-default /closeprograms /norestart','{REBOOT} 10'];
desc[pn]=['Internet Explore 9'];
pn++;



How to remove advertisement from MSFN

#2
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,767 posts
  • OS:Windows 7 x64
  • Country: Country Flag
You last 2 threads lead me to think there is something wrong with your source image or your WPI folder...

#3
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

I have try to download wpi from new and only put explore in and another program
i get the error on USB and on CD rom and on image mount.

I could read something on the net about the wscript cannot be use in sleep mode or something
i dont know if this says anything or something with the error.

If you are trying to use WScript.Sleep in a CA. You are out of luck. I don't know any alternative method in VBScript either. Sorry.
 
It appears only CreateObject method in WScript object is supported in a VBScript CA.

example: the variable "WScript" is undefined, thus "WScript.Sleep 100"
 won't work! there's no way to call the Sleep function, directly.


#4
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

i Really need yours help....

no matter what i do i get that error when i use reboot in WPI script.

I have try with only one item and then see if it reboot.
at the moment i try to use a USB stik to test, i am little tired
to burn out and out and so on....

here you can see the wpi log. i try to install updates for windows i cant
slipstream into windows. when all is run trough i get the Error you can see in
top post and the my pc restart but the wpi stop to working after restart
and not run the next items on the list. i must CTRL+ALT+Delete to stop the
wpi.exe

10. september 2012 15:48:24
   Program: Windows 7 Updates
   Unique ID: WINDOWS7UPDATES
   Order: 000002
   Category: updates
   10. september 2012 15:51:12 - cmd1 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\Windows6.1-KB947821-v22-x64.msu" /quiet /norestart
   10. september 2012 15:51:16 - cmd2 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\windows6.1-kb976002-x64.msu" /quiet /norestart
   10. september 2012 15:51:26 - cmd3 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\Windows6.1-KB2533552-x64.msu" /quiet /norestart
   10. september 2012 15:51:37 - cmd4 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\Windows6.1-KB2695962-x64.msu" /quiet /norestart
   10. september 2012 15:51:49 - cmd5 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\Windows-KB890830-x64-V4.11.exe" /Q
   10. september 2012 15:51:57 - cmd6 Success (returned code 0): "G:\WPI\Install\updates\not_reboot\IE9-Windows6.1-LanguagePack-x64-dan.msu" /quiet /norestart
   10. september 2012 15:52:12 - cmd7 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB982018-v3-x64.msu" /quiet /norestart
   10. september 2012 15:52:22 - cmd8 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2507618-x64.msu" /quiet /norestart
   10. september 2012 15:52:33 - cmd9 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2529073-x64.msu" /quiet /norestart
   10. september 2012 15:52:44 - cmd10 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2552343-x64.msu" /quiet /norestart
   10. september 2012 15:53:02 - cmd11 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2677070-x64.msu" /quiet /norestart
   10. september 2012 15:53:17 - cmd12 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2709981-v2-x64.msu" /quiet /norestart
   10. september 2012 15:53:32 - cmd13 ** Warning ** (returned code 3010): "G:\WPI\Install\updates\reboot\Windows6.1-KB2732487-x64.msu" /quiet /norestart
   10. september 2012 15:53:32 - cmd14 Success (returned code undefined): TerminateProcess("wuaudt.exe")
   10. september 2012 15:53:33 - cmd15 Success (returned code 0): "C:\Windows\System32\shutdown.exe" /r /f /t 10


#5
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

... i try to install updates for windows i cant slipstream into windows


Why you can't slipstream updates into Windows ?
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#6
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

First i have put Services pack 1 and 74 others updates
and that works fine....

Then i would like to have the last ones in and try with DISMTOOL and RT 7 Seven lite x64
but when windows is install. then i can go to windows update and updated the same again.
like they cannot be applied to windows 7.

This is windows 7 ultimate 64bit danish. with licens key.
therefore i thought i could do it this way

#7
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
The trouble is to integrate IE9 when others updates for Windows 7 are already integrated!

The best way is to download a clean Windows 7 SP1:

http://www.msfn.org/...post__p__973012

At first integrate IE9 and updates needed for IE:
http://www.msfn.org/...ost__p__1007070

At last you can integrate all others updates.

Cheers
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#8
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

I wil try one more time. and follow what you says.

I have a retail of windows ultimate with out service pack 1.

1: unpack windows 7 DK

2: use RT 7 lite to import service pack 1 DK into windows 7 DK (chose ofcourse Ultimate) Apply and finish

3: Then start RT 7 Seven up again and Import IE9win7_ENG.MSU and Windows6.1-KB2484033-x64.msu, Windows6.1-KB2488113-x64.msu, Windows6.1-KB2505438-x64.msu
Apply and finish

4: Then start RT 7 Seven up again and Import The rest of the updates. and apply and finish.

Is this way correct.

P.S all updates is in danish, only IE9 is in english. but then i would later import the langauge pack

Edited by MitsuMan, 10 September 2012 - 10:31 AM.


#9
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Well, you try a new time but without some updates given trouble:

Windows6.1-KB947821-v22-x64.msu (System Update Readiness Tool)

Windows6.1-kb976002-x64.msu (Browser Choice)

IE9-Windows6.1-LanguagePack-x64-dan.msu (IE9)

HTH




For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#10
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts

Well, you try a new time but without some updates given trouble:

Windows6.1-KB947821-v22-x64.msu (System Update Readiness Tool)

Windows6.1-kb976002-x64.msu (Browser Choice)

IE9-Windows6.1-LanguagePack-x64-dan.msu (IE9)

HTH


Check. maybe there is my error

#11
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Hello

I wil try one more time. and follow what you says.

I have a retail of windows ultimate with out service pack 1.

1: unpack windows 7 DK

2: use RT 7 lite to import service pack 1 DK into windows 7 DK (chose ofcourse Ultimate) Apply and finish

3: Then start RT 7 Seven up again and Import IE9win7_ENG.MSU and Windows6.1-KB2484033-x64.msu, Windows6.1-KB2488113-x64.msu, Windows6.1-KB2505438-x64.msu
Apply and finish

4: Then start RT 7 Seven up again and Import The rest of the updates. and apply and finish.

Is this way correct.

P.S all updates is in danish, only IE9 is in english. but then i would later import the langauge pack


Please, don't edit your post after my answer!

Windows updates are language neutral!

Don't integrate IE9win7.msu, because some updates are already integrated and the installation will fails!

Cheers
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#12
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello


Sorry. just want to fast show how i would do it...

I thought the same thing after second time i had write.
i have now follow the link and make cab out of the Danish IE9 and put the 3 KB update
in also.

Now i am on the way to put the rest of the updates in. and i have delete these 3 you say could
be trouble

Else i have follow the way i wrote to you... :) this time i am just tro to
put the rest updates in with the way of DISM.

#13
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello



First i will say thank you very much for all the help.



I have manage to do all now, also with explore danish and all the updates.

these here i use in WPI because they dont need to reboot.

Windows6.1-KB947821-v22-x64
windows6.1-kb976002-x64
Windows6.1-KB2533552-x64
Windows-KB890830-x64-V4.11


Now i have search for update and these what update found.

can i now slipstream them into windows or dont it go....

Microsoft Visual C++ 2005 Service Pack 1 : KB2538242
Cumulative Security Update for Internet Explorer9 : KB2722913
security update for Visual C++ 2008 : KB2538243
Update for Microsoft Silverlight : KB2690729

#14
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
You can customize and add [AIO] Microsoft Visual B/C++/F#/J# Redistributable x86/x64

http://www.wincert.n...butable-x86x64/

About Silverlight I use this one:
Get Silverlight 5

Silent switch: Silverlight.exe /q

Edited by myselfidem, 10 September 2012 - 02:35 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#15
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

i have download the software but i dont complete understand how to make the AIO file. or how you do it.
no guiedes on the link

sorry if i ask stupid.

#16
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I used Visual AIO SFX Maker v3.6 (installer repacker).

Look at on the first post: Some tools and resources for (re)creating your own installer.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#17
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

Thank you very much for All the help. you have really learn me alot
and thank for the patience, Because i am testing still i have not put the licens key in
but so far i have only one update and that is this one

Windows Defender Definitions update KB15597 but that is jut to update trough
windows update....

I have these few here in WPi and that works fine.
but is there not a way to make a SFX file so
all run in one time and not in WPI where it show
updates that is a little little long list..


KB947821v2264.msu /quiet norestart
kb97600264.msu /quiet norestart
KB253355264.msu /quiet norestart
KB89083064V411.exe /Q
Silverlightx64.exe /q

I know how to make it like this so it unpack to a folder..
but how to make 5 program run in one i dont know


;The comment below contains SFX script commands

Path=C:\Users\Default\Desktop\
SavePath
Silent=1
Overwrite=1


#18
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I think there is various methods and you can, for example, create a batch file and use {BATCH} with WPI to execute the file. Or using Options Features with "Execute after" to install these updates with your customized batch file at the end of your silent installation (or at first if you want)!

Silent switches for some updates: /quiet /norestart

I think it's not really useful to integrate this update, because waste time and this one is updated each month: KB89083064V411.exe
Let WU install this update!

However if you want some help about creating an SFX file you can ask at this topic:
http://www.msfn.org/...post__p__675721

Edited by myselfidem, 11 September 2012 - 07:11 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#19
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
Hello

Again thank you very much. I think i have mange all now.

one last question. is it possbile for wpi to run a .vbs script like with install.bat.

%wpipath%\Install\test\start.vbs

#20
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Yes! :)
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#21
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
hello

i must ask one more time sorry........

my vbs script is this
CreateObject("Wscript.Shell").Run "install.bat",0,True

How do i make the vbs script wait for the install.bat to finish.

My plan was to hide the cmd window and that make this script but when the script has start
the vbs script is finish. but then wpi will go to next one even the install.bat is not finish.

#22
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
As example I use a vbs file like this (active.cmd is set inside: %Windir%\Setup\scripts):

active.vbs
' To hide the 'active.cmd' batch execution

Set WshShell = WScript.CreateObject("WScript.Shell" )
WshShell.Run "%SystemRoot%\Setup\scripts\active.cmd" ,SH_WIDE ,true




For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN