View Full Version : vbscript
05-30-2012, 06:41 AM
When i run a vbscript in Custom Actions "After Install Welcome dialog", installation will be aborted.
Vbscrip running in debug mode but abort in Installation mode.
In the following line terminates the installation:
sScriptName = WScript.ScriptFullName <- abort :mad:
Does anyone know of this problem?
05-30-2012, 03:26 PM
The Windows Installer runs script custom actions directly and does not use the Windows Script Host. The WScript object cannot be used inside a script custom action because this object is provided by the Windows Script Host. Objects in the Windows Script Host object model can only be used in custom actions if Windows Script Host is installed on the computer by creating new instances of the object, with a call to CreateObject, and providing the ProgId of the object (for example "WScript.Shell"). Depending on the type of script custom action, access to some objects and methods of the Windows Script Host object model may be denied for security reasons.
05-31-2012, 02:15 AM
I would like to find out via VBScript the run path of the setup.exe.
How can i create a new WScript Object to read the propertie <New Object>.ScriptFullName?
Or is there another solution?
05-31-2012, 11:08 AM
Try the SETUPEXEDIR (http://helpnet.flexerasoftware.com/installshield19helplib/Default.htm#StartTopic=helplibrary/SETUPEXEDIR.htm) property. To get the value of the property, use the Property (http://msdn.microsoft.com/en-us/library/windows/desktop/aa371681(v=vs.85).aspx) property of the Session object.
06-25-2012, 11:07 AM
Thanks for the info!!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.