Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

One Click Install - SetSetupType Error

2 replies to this topic


  • Full Members
  • 3 posts

Posted 21 June 2005 - 16:25

We are facing problem in running the Setup from One click Install we are reciving javascript error in Internet Explorer with followig details:

Line: 52
Error: "Invalid Procedure call or Argument"

Following code is generated by Installshield causing problem:

// App not installed, set TargetDir and setup type
if (!ether.IsInstalled()) {
    var strTargetDir = ether.GetTextSub("PROGRAMFILES") + ether.ProductName;
    ether.SetSetupType("Typical");    //Line 52

Error is caused by statement "ether.SetSetupType("Typical"); ". When we comment this statement We don't get javascript error but then setup does not run properly i.e. it does not installs the product.

What could be the solution?? Please Help !!!


Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 22 June 2005 - 17:19

I haven't used IS 6 in a while, but I think in later versions of InstallShield the SetTargetDir has been removed (replaced by some other means to set the directory). Therefore I suspect that your version of the ether object may not be correct (i.e. trying to run old script with new ether)


  • Full Members
  • 3 posts

Posted 28 June 2005 - 12:45

Thanks a Lot Stefan
My problem was with the line No. 52 ::: SetSetupType("Typical");
Default "Typical" Setup Type was not available in Project. So know this is working fine for know.