Hi,
I am getting below error while adding VBscript in wise studio 5.1

Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor

below script i am using could you plz any one help me

Option Explicit
Dim objFSO, objFolder, strDirectory
strDirectory = "c:\logs"
Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objFolder = objFSO.CreateFolder(strDirectory)
WScript.Echo "Just created " & strDirectory


Reg
Haneef
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
WScript.Echo "Just created " & strDirectorythis line is causing the issues. When running in an MSI you're not running inside the WScript hosting object mode. Either drop the line or just use Echo (do you really need to echo something??).
Answered 11/08/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
If u need something to be displyed u ca use MsgBox

MsgBox "Just created " & strDirectory
Answered 11/08/2010 by: Hussi
Purple Belt

Please log in to comment
0
Hey
Thanks a lot it's working :)

Reg
Haneef
Answered 11/08/2010 by: honeyslim
Senior Yellow Belt

Please log in to comment
0
Scenario Like this - when user will try to uninstall app from Add/Remove programs P/w should promote to user.

for that i create a Dialog and set condition as below but it’s not working :(
in Wise Package 5.1

Event : NewDialog
Argument ; Select_Feature_Dialog
Condition – MaintenanceMode =”Modify”AND PASSWORD = "fd@123”

can you please help me
Answered 11/08/2010 by: honeyslim
Senior Yellow Belt

Please log in to comment
0
For one, uninstalling doesn't qualify as maintenance. Try:

Condition – REMOVE ~=”ALL" AND PASSWORD = "fd@123”

The '~' character in front of the 'equals' sign indicates to the engine that the case of the word can be ignored. Thus setting the REMOVE property to "all", "ALL", "aLl" and so on would be accepted. Without it, the property's value would have to exactly match your test.I haven't applied the same to the PASSWORD property because you may want to test its value more thoroughly.
Answered 11/09/2010 by: VBScab
Red Belt

Please log in to comment
0
Hi
Above your condition I tried not getting result L
While installing it’s self it’s asking P/w dialog, I put P/w it’s not moving next process
Could plz help out of this issue.
Answered 11/15/2010 by: honeyslim
Senior Yellow Belt

Please log in to comment
0
Firstly, this is your dialog, not a standard one:i create a DialogSecondly, the condition is testing a) for uninstall, whereas you're now saying that you are seeing a password prompt when installing and b) there must be a password dialog somewhere which populates the PASSWORD property. Clearly, the testing that THAT dialog is doing isn't being satisfied and thus the dialog is re-displayed.
Answered 11/15/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity