Home > Microsoft Vbscript > Microsoft Vbscript Runtime Error Object Required 'wscript' Line 1 Column 1

Microsoft Vbscript Runtime Error Object Required 'wscript' Line 1 Column 1

I think the error is somewhere along the line Set objShell = WScript.CreateObject("WScript.Shell") and specifically in the WScript.CreateObject part as that's where it began appearing in the first place. Try it this way: Set shell = CreateObject("WScript.Shell") TEMPDIR = shell.ExpandEnvironmentStrings("%TEMP%") SRCDIR =shell.CurrentDirectory strCmd = SRCDIR & "\Installer\setup.exe -silent -deinstall -nowait -responseFile " & TEMPDIR & "\Oracle11g.rsp" msgbox strCmd WshShell.Run strCmd, I basically created a new Custom Action using New VbScript> Stored in Binary table and linked the script. asked 4 years ago viewed 6796 times active 3 years ago Blog Stack Overflow Podcast #97 - Where did you get that hat?! http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-object-required-session.html

Enter your Username and Password to log in. Got the above error Banu AS Thursday, July 21, 2011 4:30 PM Reply | Quote 0 Sign in to vote Get rid of the reserved word SET from the lines where I changed the WScript.CreateObject to just CreateObject and it works like a charm. Trademarks belong to their respective owners. http://stackoverflow.com/questions/10882362/vbscript-will-not-execute-correctly-from-msi-file

Output integers in negative order, increase the maximum integer everytime Using ozone as oxidizer How was the USA able to win naval battles in the Pacific? Glad I could help. All rights reserved.Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback DownloadFeaturesAnalyticsJavaLicensingPurchaseSupportForumsCaphyonAdvanced InstallerAdvanced InstallerForumsBuyDownload Quick links Unanswered posts Active topics Search The team FAQ Login Register Board index Advanced Installer Software Common Problems Search What was misleading about Richard's or Tom's advice?

I have a package that deploys a number of scripts to a server. The installer is NOT necessarily where the script is but is in the Oracle folder. Not the answer you're looking for? Is there a risk connecting to POP3 or SMTP email server without secure connection?

Option Explicit Dim SRCDIR, strCmd, WshShell , TEMPDIR WshShell = CreateObject("WScript.Shell") SRCDIR = CreateObject("Scripting.FileSystemObject").GetFile(WScript.ScriptFullName).ParentFolder TEMPDIR = WshShell.Environment("TEMP") strCmd = " & SRCDIR & "\Installer\setup.exe"" -silent -deinstall -nowait " & _ There is a problem with this Windows Installer package. MSI (c) (8C:CC) [15:19:18:937]: Note: 1: 1720 2: checkHNameChange 3: -2146827864 4: Microsoft VBScript runtime error 5: Object required: 'WScript' 6: 115 7: 3 nc4ted12-21-2007, 05:22 PMCheck to make sure you're Back to top #7 KathyMorey KathyMorey Full Members 111 posts Posted 07 December 2007 - 13:55 I'm not an expert,but I believe that Windows Installer is its own scripting host, and

Descriptor: T%i&7oT-C?kaTW(0fqX8Toolbox>M5KDYSUnf(HA*L[xeX)y, PathBuf: F22F2D8, pcchPathBuf: F22F2D4, pcchArgsOffset: F22F22C MSI (c) (8C:CC) [15:19:17:578]: MsiProvideComponentFromDescriptor called for component {997FA962-E067-11D1-9396-00A0C90F27F9}: returning harcoded oleaut32.dll value MSI (c) (8C:CC) [15:19:17:578]: MsiProvideComponentFromDescriptor is returning: 0 MSI (c) You should CreateObject a wscript object yourself (for example "WScript.Shell"). There is an environment that should point to the installer home. The same error appears.

The word SET is only used to instatiate an object and TEMPDIR is not a predefined variable. Add math commands with custom look to LyX, to change `array` environment alignment Could Hashing prevent SQL injection? You chould notplace fles in teh ORACLE folders as they can conflict You need to study up on string handling. I think you are building the command line incorrectly.

And if I had my choice, I would probably use WiX since that is what I'm familiar with. –Alexander Miles Jun 5 '12 at 13:57 add a comment| Your Answer http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-object-required-document-getelementbyid.html Here is how we get teh Windows TEMP folder. This also demonsrates one of teh ways to get the current folder and environment values that will actually work under all circumstances. The problem is that I always seem to get an error message:- Product: Domain Controller Support Scripts -- Error 1720.

Thanks. Answered 08/17/2009 by: VBScab Please log in to comment Please log in to comment 0 Our product installer is separate. You would see that WScript.echo is being used and thats where is fails....pls. check over here Service Wise Script Populate Web Page Login VBScript - Changing Service Tools for scripting changes to local group policy?

Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off. SourceForge Browse Enterprise Blog Deals Help Create Log In or Join Solution Centers Go Parallel Resources Newsletters Cloud Storage Providers Business VoIP Providers Call Center Providers Home Browse JobScheduler Discussion JobScheduler A script required for this install to complete could not be run.

Related Links Status-Message Home Page Windows File Protection Query OPSI Product FAQ Shortcut OPSI Documentation PolicyMaker Home Page Network View KiXtart Scripting - Downloads Related Posts Scripting Resources Using Secedit To

Here is my script so far: Dim WShell, DISKID Set WShell = WScript.CreateObject("WScript.Shell") DISKID = WShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Services\Disk\Enum\0") Session.Property(DISKID) = DISKID I've scrolled the internet and found very little that resembles what i'm Thursday, July 21, 2011 3:55 PM Reply | Quote Answers 2 Sign in to vote We must not be seeing all of the VBScript code. Toggle navigation Software Tips Questions Blogs Links Communities Questions & Answers VBScript to set MSI Property VBScript to set MSI Property Scotty How helpful is this to you? Top prg0906 Normal user Posts: 48 Joined: 2005-02-24 19:52 Quote Postby prg0906 » 2007-12-18 21:50 Code: Select allobjShell = nothingShould be:Code: Select allset objShell = nothing USING: hmailserver 4.4 build 270,

Cheers USING: hmailserver 4.4 build 270, MySQL, Windows 2000 Server sp4Old School: http://www.textfiles.com/ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject How to integrate this integral in a faster way Extensible code to support different HR rules Print statistics of a text file Expected numbers for user engagement Why did the rebels Paul Frankovich Friday, July 22, 2011 12:39 PM Reply | Quote 0 Sign in to vote The OP wanted to know why teh errors. http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-800a01a8-object-required-windows-xp.html Doesn't English have vowel harmony?

jv Friday, July 22, 2011 1:31 PM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Technet Web site. Still, what serendipity that line 19 also pointed to the missing set statement in your first post. I basically need to get the Host name and the IP of the machine and assign it to variables in the script. I have a custom action that is written in VbScript.

If you have not yet registered, you can register here. How can I do the equivalent in VbScript? Got a bug to report? You should use the one from ORACLE_HOME.

All Rights Reserved. Answered 08/17/2009 by: shanushaan Please log in to comment Please log in to comment 0 I have no clue what you're trying to tell us here. Contact your support personnel or package vendor. I went the vbs route to save time as I do not have time to learn how to create a custom action DLL. –Alexander Miles Jun 4 '12 at 15:35 add

Why would a decision making machine decide to destroy itself? Microsoft Customer Support Microsoft Community Forums Script Center   Sign in United States (English) Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 If you ever need to use this type of object the above method is the only one working. Legal | Feedback 8971ac5 Tue November 1 16:43:30 EDT 2016"www.itninja.com TechNet Products IT Resources Downloads Training Support Products Windows Windows Server System Center Browser   Office Office 365 Exchange

Username: Password: Have you forgotten your login information?