This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: vbscript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2012
06:41 AM
vbscript
Hi,
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:
Dim sScriptName
sScriptName = WScript.ScriptFullName <- abort :mad:
Does anyone know of this problem?
regards cady_nu
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:
Dim sScriptName
sScriptName = WScript.ScriptFullName <- abort :mad:
Does anyone know of this problem?
regards cady_nu
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 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.ScriptFullName?
Or is there another solution?
Regards cady_nu
How can i create a new WScript Object to read the propertie
Or is there another solution?
Regards cady_nu
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 31, 2012
11:08 AM
Try the SETUPEXEDIR property. To get the value of the property, use the Property property of the Session object.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2012
11:07 AM
Thanks for the info!!