cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Vikram_Barche
Level 5

Urget : Error 1720

Hi

I am getting following error while running Basic MSI project in IS 2011.
This error msg is coming from Custom Action Vbscript.
and the statement causing issue is "Return = WshShell.Run(strCommand, 0, true)"

Well,the weired thing is that the msi file is working fine when i launch it from
"C:\Projectname\..\..\Product Configuration 1\Release 1\DiskImages\DISK1"

I am really frustrated due this error as I don't have answer why it is happening.

I found below blog at
http://forums.shoretel.com/forum/viewthread.do?postId=Post-284000

which says that need to do modification in registry but I am scared when things come to change registry info.
Please guide me on this.

Anuy additional information needed ,please tell me.

Thanks
Vikram
Labels (1)
0 Kudos
(7) Replies
Install_guy
Level 4

@Vikram

You are being a bit vague about your problem.

Based purely on the statement: "Return = WshShell.Run(strCommand, 0, true)"

Is "Return" a variable that you defined? or was it meant to be used as a keyword?
In which case, this: "Return = " will generate an error and should instead be "return [(][expression][)]; ". if "Return" is a variable, make sure it is declared and that what you are assigning it to is the same data type, also make sure that strCommand is declared.
0 Kudos
Vikram_Barche
Level 5

I may be not clear.
Here is the script:


Dim appPath
appPath = Session.Property("appPath
appPath")


Dim installDir
installDir = Session.Property("installDir
installDir")


Dim instanceName
instanceName = Session.Property("instanceName
instanceName")


Dim strCommand
' Create Event Log Source and Performance Counters


strCommand = """" + appPath + "xyz.exe""" + "/i /in:" + instanceName + " /l:""" + appPath + "SetupLog.txt"""


'MsgBox strCommand


'Run the application with no UI (no Command-Prompt screen)


Set WshShell = CreateObject ("WScript.Shell")
Return = WshShell.Run(strCommand, 0, true)


but i wonder how this script is working when i run it from Disk1 folder mentioned in my question.


Thanks
Vikram
0 Kudos
Vikram_Barche
Level 5

Hello Install_guy

if you need any information let me know.


Thanks
Vikram
0 Kudos
Install_guy
Level 4

Not yet sure why it works from your disk1.

But i would try removing the "Return= "

To just:

Set WshShell = CreateObject ("WScript.Shell")
WshShell.Run(strCommand, 0, true)
0 Kudos
Vikram_Barche
Level 5

Ok,I will try by removing Return.
0 Kudos
Vikram_Barche
Level 5

No Luck :mad:

still same error coming.
0 Kudos
Vikram_Barche
Level 5

Anyone from Installshield Team help me on this?
0 Kudos