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: Urget : Error 1720
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
‎Jul 21, 2011
04:35 AM
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
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
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
05:01 AM
@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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
05:10 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
05:19 AM
Hello Install_guy
if you need any information let me know.
Thanks
Vikram
if you need any information let me know.
Thanks
Vikram
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
06:27 AM
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)
But i would try removing the "Return= "
To just:
Set WshShell = CreateObject ("WScript.Shell")
WshShell.Run(strCommand, 0, true)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
07:00 AM
Ok,I will try by removing Return.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
07:23 AM
No Luck :mad:
still same error coming.
still same error coming.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
08:05 AM
Anyone from Installshield Team help me on this?