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.
Photo

One Click Install - SetSetupType Error


2 replies to this topic

nitinmahajan10

nitinmahajan10
  • Full Members
  • 3 posts

Posted 21 June 2005 - 16:25

Hi
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:
CODE

// App not installed, set TargetDir and setup type
if (!ether.IsInstalled()) {
    var strTargetDir = ether.GetTextSub("PROGRAMFILES") + ether.ProductName;
    ether.SetTargetDir(strTargetDir);
    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 !!!

Thanks
Nitin

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • 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)

nitinmahajan10

nitinmahajan10
  • 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.


Nitin